[REBOL] Reading REBOL header Re:(2)
Excellent! thanks :>) tj At 03:32 PM 4/9/00 +0200, you wrote: > > >[EMAIL PROTECTED] a écrit : > >> According to rebol documentation, the >> rebol header is an object. > > True ! It can be access by the system/script/header not by REBOL >object !! > You need REBOL for filling values of the object system/script/header >only ! > try this : > probe system/script/header > > and now try this >probe REBOL ... to make sleep REBOL/core ;-) ! > >> >> >> If so, how does the rest of the script file >> access the header? >> >> Given the following code: >> >> REBOL >> [ >> Title: "Scan Web Sites" >> Date: 12-Nov-1997 >> Author: ["Ema User" "Wasa Writer"] >> ] >> > >Your example becomes : >header-script: system/script/header >print ["Title : " header-script/Title] >print ["Date : " header-script/Date] >foreach person header-script/Author [ print person ] > >> what would be the correct syntax. >> Thanks >> Tim > >
[REBOL] Reading REBOL header Re:
[EMAIL PROTECTED] a écrit : > According to rebol documentation, the > rebol header is an object. True ! It can be access by the system/script/header not by REBOL object !! You need REBOL for filling values of the object system/script/header only ! try this : probe system/script/header and now try this probe REBOL ... to make sleep REBOL/core ;-) ! > > > If so, how does the rest of the script file > access the header? > > Given the following code: > > REBOL > [ > Title: "Scan Web Sites" > Date: 12-Nov-1997 > Author: ["Ema User" "Wasa Writer"] > ] > Your example becomes : header-script: system/script/header print ["Title : " header-script/Title] print ["Date : " header-script/Date] foreach person header-script/Author [ print person ] > what would be the correct syntax. > Thanks > Tim
[REBOL] [REBOL] Reading REBOL header Re:
Hi, try: >> print mold system/script/header The objects fields will all be set to none, unless you do a script first. At 04:37 PM 4/8/00 -0800, you wrote: >According to rebol documentation, the >rebol header is an object. > >If so, how does the rest of the script file >access the header? > >Given the following code: > >REBOL >[ >Title: "Scan Web Sites" >Date: 12-Nov-1997 >Author: ["Ema User" "Wasa Writer"] >] >print REBOL/Title >; the line above generates the error message: >** Script Error: Invalid path value: Title. >** Where: print REBOL/Title > >what would be the correct syntax. >Thanks >Tim > > > ;- Elan >> [: - )]