Replacing GlobalNames with Global Values
Roger Guay
irog at mac.com
Tue Feb 12 09:44:45 EST 2019
Of course!! I should have thought of this, but was making it too hard. Thanks, Herman!
And thanks to Monte, Terry and Mark for teaching me something new.
Roger
> On Feb 11, 2019, at 9:08 PM, hh via use-livecode <use-livecode at lists.runrev.com> wrote:
>
>> Roger G. wrote:
>> Let’s say that I have 3 globals:
>> gGlobal1 = 10.1, gGlobal2 = 20.2 and gGlobal3 = 30.3
>> I have an expression like gGlobal1*gGlobal2/gGlobal3
>> I want to transform this to the expression 10.1*20.2/30.3.
>
> As everything in LC is a string:
>
> put gGlobal1 &"*"& gGlobal2 &"/"& gGlobal3
> _______________________________________________
> 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