Hi
This is what I have experimented on the console. HTH
>> test: get to-word userdata
>> probe test
make object! [
field1: 1
field2: 2
]
Patrick
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 1:02 AM
Subject: [REBOL] From string to object
> Hi all,
>
> I'm having a bit of trouble getting from a string to the
> contents of the object that the string names. I've tried
> an embarrassing combinations of 'set and 'load and
> wotnot, without finding the right magic.
>
> Can anyone help, please?
>
> An example to try to make sense of what I am asking ....
>
> =======
> fred: make object! [field1: 1 field2: 2]
> Doris: make object! [field1: 3 field2: 4]
>
> userdata: ask "Which object?"
> print mold :userdata
> =========
>
> What should the 'Print statement be to print object Fred if the user types
> "fred"?
>
> Thanks!
> Colin.
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.