Hi Richard, Thanks for the quick reply. I think an error rather than a crash as the app doesn't fall over completely. Should have been clearer on this.
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. Cheers Steve > > Stephen King wrote: > > > Hi all, > > > > I have just come across a problem with counting the number of groups, between > > the IDE and built application. > > 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. There are no plugins in use > > (according to the App browser). > > > > 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. Debugging the built app shows this is the reason for the crash. > > 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. > > If so, I don't think it's the attempt to reference the 21st group that's > causing the crash. What exactly are you doing with the groups, and is it a > true crash or an error? > > -- > Richard Gaskin > Fourth World Media Corporation > Developer of WebMerge: Publish any database on any Web site > ___________________________________________________________ > [EMAIL PROTECTED] http://www.FourthWorld.com > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
