variable trouble

Peter Haworth pete at lcsql.com
Thu Sep 25 20:20:20 EDT 2014


> I want to put the value of thisKey into a variable when it matches.
> > So I tried a few iterations of:
> >
> > put value(thisVar[thisKey]) & space after newVar
>

Little confused about what you want to do but let's say thisKey
contains"abc" and the array element thisVar["abc"] contains 123.

If you want to put "abc" into your other variable:

put thiskey & space newVar.

If you want to put 123 into your other variable:

put thisVar[thisKey] & space after newVar

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>



More information about the use-livecode mailing list