Hi,
A rather bad thing happened: a previously saved (rather complex) project
cannot load one of its class files. It is there, editable, name not mistyped.
Under the .gambas subdirectory its name does not appear. Any idea what may
have happened to this file?
Any idea of recovery is welcome.
Laszlo Parkanyi

Le Samedi 21 Septembre 2002 12:42, Klaus Schumacher a =E9crit :
> Thanks for help ....
> .. but the situation with 0.37a is exactly the same !
>
> Meanwhile I found out, that it's possible to get the programs running w=
ith:
> - loading the project
> - opening the debug window
> - choosing first 'step into' and than 'run'
>
> Any idea ?
>
>
> Thanks
> Klaus
>
Very strange, I have no problem here to compile Notepad and run it, with =
the=20
0.38. Does-it work when you do "compile all" instead of a single "compile=
" ?
--=20
Beno=EEt Minisini
mailto:gambas@...

Hi
I've just started to play a little bit with gambas 0.38
The installing seemed to be ok=20
But I'm not able to compile one of the examples, which are coming with ga=
mbas=20
- Compile, Run or Debug .... none of them works.=20
The Debug-Window opens and the status line says "Compiling project=20
Notepad...." but nothing happens. I have to kill gambas because it's=20
completely frozen.
My configuration :
SuSe Linux 8.0
kernel 2.4.18
KDE 3.0.0
QT 3.0.3
Is there a something special install ?
Can anybody help ?
Thanks=20
Klaus

Le Mercredi 11 Septembre 2002 12:48, Laszlo Parkanyi a =3DE9crit :
> Hi Benoit,
>
> I gotcha. I see the same applies to subs/functions. Sticking to the
> example you gave I tried to call a sub placed in MGlobal to add a valu=
=3D
e to
> BirthYear:
>
> PUBLIC BirthYear AS Integer
>
> PUBLIC SUB Birth()
>
> BirthYear =3D3D 1940
>
> END
>
> Calling this sub from MMain Main:
> MGlobal.Birth
> PRINT "BirthYear is"; MGlobal.BirthYear
>
> This works just fine.
>
> I may be stupid as I failed to make a Form on which to present the
> retrieved BirthYear (I miss some of the basics). Putting in PUBLIC SUB
> MAIN():
>
> DIM hForm as Form
> hForm =3D3D NEW fForm <--- gambas stops here saying unable to load cla=
ss=3D
file
>
> Now there is another question: if a Form is present that should be the
> startup class?
>
> Laszlo
>
Your next problem is not very clear :-)
If Gambas says "unable to load class file" in that case, it means that th=
=3D
ere=3D20
is no form named "fForm" in your project. Have you defined it ?
--=3D20
Beno=3DEEt Minisini
And Replace your Class name fForm by FForm because it can make error.
Gambas reconnize the class file when its first letter is an upcase letter=
=2E
fabien
('humm do you understand what i say ;)' )

Le Mercredi 11 Septembre 2002 12:48, Laszlo Parkanyi a =E9crit :
> Hi Benoit,
>
> I gotcha. I see the same applies to subs/functions. Sticking to the
> example you gave I tried to call a sub placed in MGlobal to add a valu=
e to
> BirthYear:
>
> PUBLIC BirthYear AS Integer
>
> PUBLIC SUB Birth()
>
> BirthYear =3D 1940
>
> END
>
> Calling this sub from MMain Main:
> MGlobal.Birth
> PRINT "BirthYear is"; MGlobal.BirthYear
>
> This works just fine.
>
> I may be stupid as I failed to make a Form on which to present the
> retrieved BirthYear (I miss some of the basics). Putting in PUBLIC SUB
> MAIN():
>
> DIM hForm as Form
> hForm =3D NEW fForm <--- gambas stops here saying unable to load class=
file
>
> Now there is another question: if a Form is present that should be the
> startup class?
>
> Laszlo
>
Your next problem is not very clear :-)
If Gambas says "unable to load class file" in that case, it means that th=
ere=20
is no form named "fForm" in your project. Have you defined it ?
--=20
Beno=EEt Minisini
mailto:gambas@...

Hi Benoit,
I gotcha. I see the same applies to subs/functions. Sticking to the example
you gave I tried to call a sub placed in MGlobal to add a value to
BirthYear:
PUBLIC BirthYear AS Integer
PUBLIC SUB Birth()
BirthYear = 1940
END
Calling this sub from MMain Main:
MGlobal.Birth
PRINT "BirthYear is"; MGlobal.BirthYear
This works just fine.
I may be stupid as I failed to make a Form on which to present the retrieved
BirthYear (I miss some of the basics). Putting in PUBLIC SUB MAIN():
DIM hForm as Form
hForm = NEW fForm <--- gambas stops here saying unable to load class file
Now there is another question: if a Form is present that should be the
startup class?
Laszlo

>
>
>>Though the "Gambas Language Encyclopedia" is a useful resource, it would
>>be nice to have some further documentation.
>>
Salut Benoit,
you wrote samwhere you started with a Amstrat 464 Basic, right!
Do you remember, im the manual for Basic Instructions, after every
Instruction/Function there where a very usefull Line.
See also:
for examble:
*Asc*
returns .....
.........
See also: chr$
I found this in every time very usefull. (It got lost in the middle of
the 90, in all manualls)
amicalement
Charlie

Le Lundi 9 Septembre 2002 14:50, Laszlo Parkanyi a =E9crit :
> Hi,
> Though the "Gambas Language Encyclopedia" is a useful resource, it woul=
d
> be nice to have some further documentation. In fact I'm having trouble =
with
> some of the basics, like scope of variables, for example. I Simply coul=
d
> not figure out how one can declare a variable that is global for the w=
hole
> application. I declared it in a Modules block, but apparently did not w=
ork.
> Modules pose another problem: what functions can be put in a module and=
how
> can they access variables?
>
> And things like that. I know it is a lot of work, and Gambas is not yet
> complete.
>
> Cheers,
> Laszlo Parkanyi
>
Hi Laszlo,
Variable scope in Gambas is in fact like the Java one, or any good=20
object-oriented language. Not Visual-Basic !
So, there is no project global variables in Gambas like in VB. A global=20
variable is global to a class or a module. And if you want to access a=20
variable outside of its class or module, you must decalre it public.
To do the same thing as VB, declare your global variable in a module, and=
=20
access it via the name of the module. For example,
Module MGlobal.module:
' Gambas module
PUBLIC BirthYear AS Integer
=2E..
Module MMain.module (startup module):
' Gambas module
=2E..
PUBLIC SUB Main()
PRINT "BirthYear is"; MGlobal.BirthYear
END
Got it ? :-)
--=20
Beno=EEt Minisini
mailto:gambas@...

Hi,
Though the "Gambas Language Encyclopedia" is a useful resource, it would
be nice to have some further documentation. In fact I'm having trouble with
some of the basics, like scope of variables, for example. I Simply could not
figure out how one can declare a variable that is global for the whole
application. I declared it in a Modules block, but apparently did not work.
Modules pose another problem: what functions can be put in a module and how
can they access variables?
And things like that. I know it is a lot of work, and Gambas is not yet
complete.
Cheers,
Laszlo Parkanyi

Hi Gambas users,
Sometimes the Gambas interpreter prints the following error message :
"Mutex destroy failure: device or resource busy"
As you can read in the following link, it is a bug in the Qt library that=
=20
forgets to free an internal mutex. This bug is not serious, and there is =
a=20
workaround I will use in the next version of Gambas.
http://lists.trolltech.com/qt-interest/2002-05/msg00381.html
I thank Juergen (NN <heinpol@...>) for his search in the Qt list and =
for=20
having solved the problem.
--=20
Beno=EEt Minisini
mailto:gambas@...

I have added in the development environment tips of the day.
These tips are stored in the file data/tips in the directory of gambas ID=
E=20
sources. The format of a tip is reduced HTML text between <tip> </tip> ma=
rks,=20
ala XML.
If you have tips of your own, send them me, and I will add them to this f=
ile.
Thanks in advance !
--=20
Beno=EEt Minisini
mailto:gambas@...

Hello everybody,
I have just released the 0.38 version.
You will find a lot of visual changes in the development environment, and=
a=20
lot of less visual ones in the Qt component.
Have fun !
--=20
Beno=EEt Minisini
mailto:benoit.minisini@...

>
>
>Message: 2
>Date: Sun, 01 Sep 2002 18:21:27 +0200 (MET DST)
>From: "Fabien BODARD" <Abidoo.too@...>
>To: <gambas-user@...>
>Subject: [Gambas-user] problem With my combobox
>
>salut benoit
>
>
Salut Fabien,
>First i try to speak english
>
great, so everbody can talk with you.
bien , comme ca tout le mounde peux te repondre.
>
>second i 'want to say you to remake the mailing list
>
>third what event can i use with a combobox for change something when i =
>change select with the mouse=3F
>
>
is that what you looking for ?,
- in the IDE, open your *.form
- have a right mouse-click on the element (in your case the
combo-box)
- a Context-menu pops up
- go with the mouse-pointer to Event
- a second Context-menu pops up and shows you the events
- a click on one of them opens the / or change to editor-window
and goes/ creates the event sub.
Charlie
>=3F=3F=3F
>
>Fabien
>
>

salut benoit
First i try to speak english
second i 'want to say you to remake the mailing list
third what event can i use with a combobox for change something when i =
change select with the mouse=3F
=3F=3F=3F
Fabien