Declare a Variable from a Variable?

Jan Schenkel janschenkel at yahoo.com
Sun Jun 13 17:46:05 EDT 2004


--- Derek Bump <webmaster at dreamscapesoftware.com>
wrote:
> Can you declare a variable from a variable in
> Transcript?  Like the
> following...
> 
> put "randomVariableName" into newVariableToCreate
> create variable newVariableToCreate
> 
> 
> Derek Bump
> 

Hi Derek,

You can use the "do" command to create a local
variable :
--
put "randomVariableName" into newVariableToCreate
do ("local" && newVariableToCreate)
do ("put 12345 into" && newVariableToCreate)
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list