[Gambas-user] Help getting error I cant find why
Stephen Bungay
sbungay at ...981...
Thu Apr 10 04:34:01 CEST 2008
Or use a MySQL table, and to heck with messing around with text
files, strings, and splitting things into arrays. Generate the random
number and fetch a result set from the table for the record that has
the cooresponding unique ID.
Steve.
skaggs wrote:
> I had written this before in another program and was just reusing the
> code. And did not feel like going back and rewriting it all again.
> Later on I will probably change it.
>
>
> JB SKaggs
> On Wed, 2008-04-09 at 15:55 -0400, Rob wrote:
>> On Wednesday 09 April 2008 15:46, jbskaggs wrote:
>>> Is there a limitation to the number of lines that Gambas can run in
>>> a class? This class has nearly 10000 lines when all of the items
>>> are present.
>> Is there a reason you're hardcoding all these names into a class? You
>> could just put them into a text file, read them in with File.Load,
>> split on "\n" into an array, and use the random number as an index
>> into that array rather than doing thousands of comparisons.
>>
>> Rob
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Don't miss this year's exciting event. There's still time to save $100.
>> Use priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list