[Gambas-user] Arrays !, Sighhhhhh

Steven Lobbezoo steven at ...1652...
Tue Jan 22 12:27:43 CET 2008


Le Monday 21 January 2008 23:02:31 Benoit Minisini, vous avez écrit :
> 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...
Of course, ......

>
> > 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.
As you know, I cannot send you the project because your mailbox will not 
accept it's filesize.

However,.....
I tried the latest trunk :
 svn checkout 
https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0/

And reconf-all and ./configure are ok , but make ends with :

Making all in gbx
make[4]: entrant dans le répertoire « /home/steven/2.0/main/gbx »
gcc -DHAVE_CONFIG_H -I. -I.. -I../share    -I../libltdl    -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unus
ed-value -fvisibility=hidden -g -Os  -MT 
gbx2-gbx_extern.o -MD -MP -MF .deps/gbx2-gbx_extern.Tpo -c -o gbx2-gbx_ext
ern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c
gbx_extern.c:30:17: error: ffi.h: Aucun fichier ou répertoire de ce type
gbx_extern.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘*’ token
gbx_extern.c: In function ‘EXTERN_call’:
gbx_extern.c:244: error: ‘ffi_cif’ undeclared (first use in this 
function)gbx_extern.c:244: error: (Each undeclared identifier is reported 
only oncegbx_extern.c:244: error: for each function it appears 
in.)gbx_extern.c:244: error: expected ‘;’ before ‘cif’gbx_extern.c:245: 
error: ‘ffi_type’ undeclared (first use in this function)gbx_extern.c:245: 
error: ‘types’ undeclared (first use in this function)gbx_extern.c:246: 
error: ‘rtype’ undeclared (first use in this function)gbx_extern.c:282: 
error: ‘_to_ffi_type’ undeclared (first use in this 
function)gbx_extern.c:338: warning: implicit declaration of 
function ‘ffi_prep_cif’gbx_extern.c:338: error: ‘cif’ undeclared (first use 
in this function)gbx_extern.c:338: error: ‘FFI_DEFAULT_ABI’ undeclared (first 
use in this function)gbx_extern.c:338: error: ‘FFI_OK’ undeclared (first use 
in this function)gbx_extern.c:341: warning: implicit declaration of 
function ‘ffi_call’make[4]: *** [gbx2-gbx_extern.o] Erreur 1make[4]: quittant 
le répertoire « /home/steven/2.0/main/gbx »make[3]: *** [all-recursive] 
Erreur 1make[3]: quittant le répertoire « /home/steven/2.0/main »make[2]: *** 
[all] Erreur 2make[2]: quittant le 
répertoire « /home/steven/2.0/main »make[1]: *** [all-recursive] Erreur 
1make[1]: quittant le répertoire « /home/steven/2.0 »make: *** [all] Erreur 2

I'll keep searching, but maybe it's a known problem ?

Regards,
Steven



>
> Regards,






More information about the User mailing list