declaring arrays?
Charles Hartman
charles.hartman at conncoll.edu
Sat Jul 23 21:32:33 EDT 2005
It does. Stupid me. VarWatcher does show the values after my
initialization. What isn't working, rather, is that the openCard
handler that needs to check these values is not being called at all,
for some reason. Which is probably something else small that I'm
missing. I'll keep staring at it. No spelling erorr, as far as I can
see.
Thanks.
Charles Hartman
On Jul 23, 2005, at 8:29 PM, Dennis Brown wrote:
> Charles,
>
> What version of Rev are you running?
> The ability to see array contents was added in 2.6, but you have to
> click on it to see the contents in the lower frame.
> Arrays are not initialized or declared any different than any other
> variable.
> When you put something into a variable with a [key], Rev creates
> the key and element.
> If you ask for a [key] that does not yet exist, Rev hands you back
> an empty.
> What you wrote should work.
>
> Dennis
>
> On Jul 23, 2005, at 7:34 PM, Charles Hartman wrote:
>
>
>> I'm sure I'm missing something simple here. (Still learning
>> Transcript-speak.) I need to have a global array, just eight
>> elements, all initialized to false, set to true one by one in
>> various scripts to measure progress toward a goal. In my main
>> stack's script I have
>>
>> global gInteractLineDone
>>
>> and in its openStack handler,
>>
>> repeat with n = 1 to 8
>> put false into gInteractLineDone[n]
>> end repeat
>>
>> But when I check in variableWatcher, I can't see any value in
>> gInteractLineDone at all. (And my later scripts don't seem to do
>> anything to it; yes, it's declared global in those scripts.) Do I
>> need to declare the variable as an array somehow? Is there a way,
>> that I've just plain missed, of initializing a variable at the
>> same time as declaring its scope?
>>
>> Sorry, I'm just getting started with arrays here.
>>
>> Charles Hartman
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list