defining and using globals in an application

Chipp Walters chipp at chipp.com
Sat Jul 9 11:27:07 EDT 2011


Hi Francis,

I suspect what Andre does is create globals thusly:

global gMyGlobalA
put "red" into gMyGlobalA["color"]
put "Francis" into gMyGlobalA["name"]
etc..

On Sat, Jul 9, 2011 at 5:05 AM, Francis Nugent Dixon <effendi at wanadoo.fr>wrote:

> Hi from Beautiful Brittany,
>
> Andre Garzia wrote :
>
>
>  I will have a global called
>> gRecipeAppA and that will be an array, values will be inserted, queried
>> for
>> and deleted from this single shared array and collision will be avoided by
>> naming it something almost unique.
>>
>
> Hmmmm ! - Never thought of that !
>
> But doesn't that make your coding more obtuse, as you refer
> to an element of the array by a number, and not by a name ?
> (I never use arrays, as I can only think in one dimension,
> which is why I have so many problems with "time". Arrays,
> and other multi-dimensional concepts are way over my head !)
>
> Of course, I begin to grab arrays when I have another (Irish)
> Whiskey !
>
>
> -Francis
>
> "Nothing should ever be done for the first time !"
>
> ______________________________**_________________
> 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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.



More information about the use-livecode mailing list