|
Agroamar Beginner
Joined: 09 Feb 2002 Posts: 10 Location: USA
|
Posted: Sun Feb 24, 2002 3:32 pm
Question about Expanding Variables |
Ok, I want to make a variable expand when written to a file, for instance
#FILE 1 "stuff.txt";
#WRITE 1 "blah ~[ ~[ @thing ~] ~] blah";
#CLOSE 1
But when I look at the file, The variable hasn't expanded, its just as is. Any help would be appreciated. Thanks. |
|
|
|
gyropump Newbie
Joined: 07 Feb 2002 Posts: 6 Location: USA
|
Posted: Sun Feb 24, 2002 3:38 pm |
option 1 i can think of :
#FILE 1 "stuff.txt";
#WRITE 1 "blah ~[ ~[ %eval(@thing) ~] ~] blah";
#CLOSE 1
Option 2 :
#FILE 1 "stuff.txt";
#VA Templine "blah ~[ ~[ %eval(@thing) ~] ~] blah";
#WRITE 1 @Templine
#CLOSE 1
Option 3 : just noticed this one , perhaps it's because you're making it a part of a string
#FILE 1 "stuff.txt";
#WRITE 1 "blah ~[ ~[ "@thing" ~] ~] blah";
#CLOSE 1
hope they help
.*^*. If at first you dont succeed, your sky diving days are over .*^*. |
|
|
|
Agroamar Beginner
Joined: 09 Feb 2002 Posts: 10 Location: USA
|
Posted: Sun Feb 24, 2002 3:42 pm |
Ah Nicely done! I tried the third option first, and it worked perfectly. Thank you very much gyropump!
|
|
|
|
|
|