[Gambas-user] Arrays !, Sighhhhhh
Benoit Minisini
gambas at ...1...
Mon Jan 21 23:02:31 CET 2008
On lundi 21 janvier 2008, Steven Lobbezoo wrote:
> Hi,
>
> In a form class i do :
> ColTable[20] AS String[]
> '21 times 6 strings to define a maximum of 20 columns for the
> grid
No, 20 times 6 strings...
>
> The global variable is used in different ways in different modules in the
> class file.
> So far so good, all works as expected .
>
> I put, for exaple this in it :
> ColTable[0] = ["No", "No", "32", "Right", "", ""]
> ColTable[1] = ["Prenom", "Prenom", "96", "Left", "", ""]
> ColTable[2] = ["Nom", "Nom", "150", "Left", "", ""]
> ColTable[3] = ["Adresse", "Adresse", "160", "Left", "", ""]
> ColTable[4] = ["Ville", "Ville", "160", "Left", "", ""]
> ColTable[5] = ["Pays", "Pays", "150", "Left", "", ""]
>
> But, as soon as i activate a modal form to do some work, the first string
> of all string[]'s are erased!
> So, i get for instance in ColTable[1] : ["", "Prenom", "96", "Left", "",
> ""]
>
> The modal form does not manipulate ColTable in any way !
>
> Any ideas ?
>
> Steven
>
> Suse 10.3, Gambas 1.9.91, Under Gnome 2
>
Please send your project, and try to use the latest version.
Regards,
--
Benoit Minisini
More information about the User
mailing list