Indirect reference

Pete pete at mollysrevenge.com
Fri Nov 18 01:30:18 EST 2011


If your variable did not contain the word "field", you could do:

put "10:00 AM" into field tfield

or leave the variable as it is and:

put "10:00 AM" into field (word 2 to -1 of tfield)


Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Thu, Nov 17, 2011 at 9:39 PM, Howard Bornstein <bornstein at designeq.com>wrote:

> I know I've done this before but I can't seem to remember how at this
> point.
>
> I want to make an indirect reference through a variable. For example, I
> have a variable, tField, that contains this string: field "Time" of card 1
>
> I want to put something into field "Time" via this variable. So I want to
> say something like put "10:00 AM" into tField, but rather than have it go
> into tField (in which case, tField would contain "10:00 AM") I want it to
> go *through* tField so that the value goes into field "Time".
>
> Any reminders on how to do this?
>
> --
> Regards,
>
> Howard Bornstein
> -----------------------
> www.designeq.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>



More information about the use-livecode mailing list