Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Reverse (get to-word string!)

 [1/4] from: ammoncooke:yah:oo at: 28-Sep-2001 4:52


Hi, Now that I have the ability reference an object from a string, is it possible to make an object reference into a string? Like this:
>>a: layout [
[ text "this is an object" []
>>to-string a
== "?object?" But have it return "a" Is this possible? Did I just miss something simple? ;-/ Thanks!! ;D Ammon

 [2/4] from: chris::ross-gill::com at: 28-Sep-2001 6:20


Hi Ammon,
> Now that I have the ability reference an object from a string, is it > possible to make an object reference into a string? Like this:
<<quoted lines omitted: 4>>
> == "?object?" > But have it return "a"
Try:
>> a: layout [
[ text "this is an object" [ ]
>> mold a
== { make object! [ type: 'face offset: 25x25 size: 132x59 span: none pane: [ make object! [ ...
>>
- Chris

 [3/4] from: carl:cybercraft at: 28-Sep-2001 22:31


On 28-Sep-01, Christopher Ross-Gill wrote:
> Hi Ammon, >> Now that I have the ability reference an object from a string, is
<<quoted lines omitted: 21>>
>>> > - Chris
Or...
>> to-string 'a
== "a" if that was what you were after. (: -- Carl Read

 [4/4] from: ammoncooke:ya:hoo at: 28-Sep-2001 5:55


Doh! Doh! Doh! I very much dislike overlooking things. to-string 'a is what I was looking for. Thanks!! Ammon

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted