On Dec 20, 2010, at 6:46 AM, Josep M Yepes wrote:
Hi,
Why this code don't run?
I want to assign the value of tX[tKey] to the fields that have the
same name of the value.
pLanguage is passed by the user.
put "u" & pLanguage into tX
repeat for each key tKey in the customproperties["u" & pLanguage]
of this stack
set the text of fld tKey to tX[tKey]
end repeat
I think you have to put the customprop into a variable first:
put "u" & pLanguage into cSet
put the customproperties[cSet] of this stack into tPropArray
put the keys of tPropArray into keysList
repeat for each item tKey in keysList
set the text of fld tKey to tX[tKey]
end repeat
-- Peter
Peter M. Brigham
[email protected]
http://home.comcast.net/~pmbrig
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode