Re Problem with counting numbers of groups in a stack
Richard Gaskin
ambassador at fourthworld.com
Thu Jan 1 13:19:32 EST 2004
Stephen King wrote:
>> Stephen King wrote:
>>> I have a small stack that has 20 groups (listed in the App browser). It
>>> has a main and sub stack with no groups on the substack.
...
>>> When I use "put the number of groups into NumF"
>>>
>>> In the IDE I get 20, as expected and the App runs fine, but when built I
>>> get 21 groups reported. This crashes my App as there is no group 21 for
>>> it to reference.
...
>> I think what's happening is that the Distribution Builder is adding a
>> hidden group for Rev libraries, so if this is the first card of the
>> maintStack there is very likely a 21st group.
...
> I know its the 21st group thats the problem because part of the code
> randomises the order of the groups and I traced via a log file the location
> of group 21 in the order and the point at which that button script stopped
> working. It always stopped when it hit the position of group 21. It is the
> first card of the mainstack.
>
> If it's normal for dist builder to add a group for libraries, then my
> workaround is robust. My concern was whether this added group was always
> added.
Yes, when including Rev libraries the addition of the hidden group is
normal.
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list