Replacing GlobalNames with Global Values
monte at appisle.net
Mon Feb 11 16:53:54 EST 2019
Do you mean as a string?
put format(“%f*%f/cos(%f) = %f”, gGlobal1, gGlobal2, gGlobal3, gGlobal1*gGlobal2/cos(gGlobal3))
> On 12 Feb 2019, at 8:43 am, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote:
> Hi all,
> I can’t seem to come up with a succinct way of doing this:
> I have a mathematical expression such as
> gGlobal1*gGlobal2/cos(gGlobal3) = SomeValue
> and I want to replace the global names with the values previously saved to those Globals so as to show the entire expression with individual global values filled in, e.g.
> number1*number2/cos(number3) = SomeValue
> I would appreciate your help.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode