I just tried your example below.  Works fine here.
I get "Script 2" from the print. What REBOL are you
using?

-Carl

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Ingo Hohmann
Sent: Monday, April 09, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] How to best access a scripts header?


Hi all,

what is the best way to access the header of a script? Of
course, I can use, e.g. system/script/header/title , but 
assume you have two scripts ...

; ---- first script ----
REBOL [
  Title: "Script 1"
  File:  %script1.r
]

; do something

; ---- second script ----
REBOL [
  Title: "Script 2"
  File:  %script2.r
]

do %script1.r

print system/script/header/title

; ---- end of scripts ----

You'll get "Script 1", because this script has been loaded
last ...


Kind regards,

Ingo
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to