Array name from a variable
zryip.theslug at gmail.com
Tue Jan 5 10:18:01 CST 2010
Happy new year to you too ;)
do "put" && quote & "data 0001" & quote && "into" && tNewArrayName &
"["& quote & "uno" & quote &"]"
Hope this helps.
-Zryip the Slug- wish you the best! 8)
2010/1/5 Alejandro Tejada <capellan2000 at gmail.com>:
> Hi all,
> Yesterday, i was looking for a way to
> create an array using a name stored
> in a variable. But i was unable to found
> a way to do this.
> Look at this example:
> put word 2 to 4 of tInput into tNewArrayName
> replace space with "_" in tNewArrayName
> -- Word 2 to 4 could be, for example: (First data container)
> -- These 4 words become 1 word, like this: (First_data_container)
> -- This is the name that i need to use as an array name
> -- but the following line fails and overwrite array name
> put "data 0001" into tNewArrayName["uno"]
> -- Now the variable tNewArrayName is an array but,
> -- i want to convert the content of tNewArrayName
> -- in this example, (First_data_container), in an array name
> Thanks in advance.
> Happy 2010 for each one! :-)
> View this message in context: http://n4.nabble.com/Array-name-from-a-variable-tp999105p999105.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode