Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH:Strig literal--expression difference!
From: Cheri Harder
Date: Sat, 8 Apr 2000 18:43:53 +0100

I know it's not part of the question, here, but you don't need that "tell
target" - you can set the proprety without a tell target.

I always think of the difference between "expression" and "string literal"
this way:

use expression when you want to work with the "value" of your variable
use string when you want to work with the "literal name" of the variable.

> > Like here for example(not working)
> > Set Variable: "myboxes" = random(3)+1
> > Begin Tell Target ("mcblackmask&myboxes")
> > Set Property ("mcblackmask&myboxes", Visibility) = "0"
> > End Tell Target

In the above, when you set the variable you are setting the literal string
"myboxes" to a random number (correctly.) Then you are concatenating a
literal name "mcblackmask" with the variable value, so it should be
"mcblackmask" & myboxes (the & is the function, so it is also outside of the
quotes)

HTH

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
www.awsolution.com



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH:Strig literal--expression diff, Helen Triolo

Replies
  FLASH:Strig literal--expression differen, Ilia Pasymansky
  Re: FLASH:Strig literal--expression diff, Helen Triolo

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]