Replacing GlobalNames with Global Values

Kaveh Bazargan kaveh at rivervalleytechnologies.com
Tue Feb 12 10:04:30 EST 2019


That's the beauty of LiveCode. We have all been taught that things are
hard, but LiveCode shows they need not be! I still haven't leaned!!!

On Tue, 12 Feb 2019 at 14:45, Roger Guay via use-livecode <
use-livecode at lists.runrev.com> wrote:

> 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
>
> _______________________________________________
> 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



-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>



More information about the Use-livecode mailing list