Looping over all buttons
Mark Smith
Mark_Smith at cpe.umanitoba.ca
Thu Feb 23 14:38:42 EST 2012
Thanks Ken... I suppose one of those would work but I'd have to think about
it :) The goal was the construction of a parameter list for revExecuteSQL
that would look something like:
revExecuteSQL gConnectID, tCmd, "tvar1", "tvar2", "tvar3", "tvar4", "tvar5",
"tvar6", "tvar7", "tvar8", "tvar9"
Actually there was suggestion that an array would work (and revExecuteSQL
does document that, if confusingly) so:
revExecuteSQL gConnectID, tCmd, "myArray"
Initially I thought myArray would hold the variable names AND I would have
to put the field values into each of the variables. Turns out it wants the
values not the variable names so the whole thing has tremendously simplified
itself:
put the text of field fieldname into myArray[x] -- put the field VALUE into
myarray
and I don't even need the temporary variables anymore. Appreciate the
suggestions though and have tucked 'em away for the next time I need them.
-- Mark
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Looping-over-all-buttons-tp4410980p4414980.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list