Whoops -- another problem, maybe the chief problem: it's the
customproperty[cSet], not the customproperties[cSet], see below
-- Peter
Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig
On Dec 20, 2010, at 8:29 AM, Peter Brigham MD wrote:
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 customproperty[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
pmb...@gmail.com
http://home.comcast.net/~pmbrig
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode