Array name from a variable
Alejandro Tejada
capellan2000 at gmail.com
Tue Jan 5 10:56:08 EST 2010
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! :-)
Alejandro
--
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.
More information about the use-livecode
mailing list