Hi Everyone,
I'm sure this has been addressed before, but I couldn't find it searching through the forums. How can I create a table index using a variable? Here's an example:
will result in "arrNames.sIndex" rather than "arrNames.Anderson"
I thought I could get away with Table.Insert, but it only works for numeric arrays.
How can I dynamically create an associative array using variables?
I'm sure this has been addressed before, but I couldn't find it searching through the forums. How can I create a table index using a variable? Here's an example:
Code:
sIndex = "Anderson"; sValue = "Jason"; arrNames.sIndex = sValue; [I]or[/I] arrNames = {sIndex=sValue};
I thought I could get away with Table.Insert, but it only works for numeric arrays.
How can I dynamically create an associative array using variables?
Comment