From karl.reinl at ...9... Sun Sep 1 01:20:43 2002 From: karl.reinl at ...9... (Charlie) Date: Sat, 31 Aug 2002 23:20:43 +0000 Subject: [Gambas-user] Test References: Message-ID: <3D714F4B.80705@...9...> > > >>Salut Benoit, >> >>my test has troubles. >> >>1. from WAIT >> >>2. from CFloat >> >>3. from Button_Click 237 times >> >>see inside *.class >> >>Attachement is a 'zip' file >> >> > >WAIT does not work as expected. I will correct it ! > >There was a bug in CStr, not in CFloat. >CStr(CFloat("0")) returns "0.E+" ! I have corrected it. > >What's the problem with Button_Click 237 times ? > the program chrashs, but only if the ping pong runs and you click 237 times to raise the amount. > >--=20 >Beno=EEt Minisini >mailto:gambas at ...1... > > > > > >--__--__-- > >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >End of Gambas-user Digest > > > > From Abidoo.too at ...11... Sun Sep 1 18:21:27 2002 From: Abidoo.too at ...11... (Fabien BODARD) Date: Sun, 01 Sep 2002 18:21:27 +0200 (MET DST) Subject: [Gambas-user] problem With my combobox References: Message-ID: <3D6EE88E001064FF@...12...> (added by postmaster@...11...) 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? ??? Fabien From karl.reinl at ...9... Tue Sep 3 00:20:38 2002 From: karl.reinl at ...9... (Charlie) Date: Mon, 02 Sep 2002 22:20:38 +0000 Subject: [Gambas-user] Re: problem With my combobox References: Message-ID: <3D73E436.8030302@...9...> > > >Message: 2 >Date: Sun, 01 Sep 2002 18:21:27 +0200 (MET DST) >From: "Fabien BODARD" >To: >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 > > From benoit.minisini at ...2... Wed Sep 4 23:17:07 2002 From: benoit.minisini at ...2... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 4 Sep 2002 23:17:07 +0200 Subject: [Gambas-user] New release Message-ID: <200209042317.07420.benoit.minisini@...2...> Hello everybody, I have just released the 0.38 version. You will find a lot of visual changes in the development environment, and a lot of less visual ones in the Qt component. Have fun ! -- Beno?t Minisini mailto:benoit.minisini at ...2... From gambas at ...1... Thu Sep 5 08:06:52 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Thu, 5 Sep 2002 08:06:52 +0200 Subject: [Gambas-user] Tips of the day Message-ID: <200209050806.52462.gambas@...1...> 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 IDE sources. The format of a tip is reduced HTML text between marks, ala XML. If you have tips of your own, send them me, and I will add them to this file. Thanks in advance ! -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sat Sep 7 19:22:21 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 7 Sep 2002 19:22:21 +0200 Subject: [Gambas-user] A bug in qt 3.0.3 Message-ID: <200209071922.21758.gambas@...1...> 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 forgets to free an internal mutex. This bug is not serious, and there is a workaround I will use in the next version of Gambas. http://lists.trolltech.com/qt-interest/2002-05/msg00381.html I thank Juergen (NN ) for his search in the Qt list and for having solved the problem. -- Beno?t Minisini mailto:gambas at ...1... From parka at ...15... Mon Sep 9 14:50:01 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Mon, 9 Sep 2002 14:50:01 +0200 Subject: [Gambas-user] Documentation In-Reply-To: References: Message-ID: <200209091248.g89CmpI22259@...16...> 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 From gambas at ...1... Tue Sep 10 20:26:10 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 10 Sep 2002 20:26:10 +0200 Subject: [Gambas-user] Documentation In-Reply-To: <200209091248.g89CmpI22259@...16...> References: <200209091248.g89CmpI22259@...16...> Message-ID: <200209102026.10252.gambas@...1...> Le Lundi 9 Septembre 2002 14:50, Laszlo Parkanyi a ?crit : > 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 Laszlo, Variable scope in Gambas is in fact like the Java one, or any good object-oriented language. Not Visual-Basic ! So, there is no project global variables in Gambas like in VB. A global variable is global to a class or a module. And if you want to access a 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 access it via the name of the module. For example, Module MGlobal.module: ' Gambas module PUBLIC BirthYear AS Integer ... Module MMain.module (startup module): ' Gambas module ... PUBLIC SUB Main() PRINT "BirthYear is"; MGlobal.BirthYear END Got it ? :-) -- Beno?t Minisini mailto:gambas at ...1... From karl.reinl at ...9... Tue Sep 10 23:49:30 2002 From: karl.reinl at ...9... (Charlie) Date: Tue, 10 Sep 2002 21:49:30 +0000 Subject: [Gambas-user] Documentation References: <200209091248.g89CmpI22259@...16...> <200209102026.10252.gambas@...1...> Message-ID: <3D7E68EA.9000000@...9...> > > >>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 From parka at ...15... Wed Sep 11 12:48:33 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Wed, 11 Sep 2002 12:48:33 +0200 Subject: [Gambas-user] Global variables: now with forms In-Reply-To: References: Message-ID: <200209111047.g8BAlMI22331@...16...> 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 From gambas at ...1... Wed Sep 11 18:25:07 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 11 Sep 2002 18:25:07 +0200 Subject: [Gambas-user] Global variables: now with forms In-Reply-To: <200209111047.g8BAlMI22331@...16...> References: <200209111047.g8BAlMI22331@...16...> Message-ID: <200209111825.07581.gambas@...1...> Le Mercredi 11 Septembre 2002 12:48, Laszlo Parkanyi a ?crit : > 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 > Your next problem is not very clear :-) If Gambas says "unable to load class file" in that case, it means that there is no form named "fForm" in your project. Have you defined it ? -- Beno?t Minisini mailto:gambas at ...1... From Abidoo.too at ...11... Wed Sep 11 23:41:30 2002 From: Abidoo.too at ...11... (abid) Date: Wed, 11 Sep 2002 23:41:30 +0200 Subject: [Gambas-user] Global variables: now with forms Message-ID: <200209112341.30759.Abidoo.too@...11...> 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 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. fabien ('humm do you understand what i say ;)' ) From schumacher-k at ...20... Fri Sep 20 18:17:47 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Fri, 20 Sep 2002 18:17:47 +0200 Subject: [Gambas-user] no compiling Message-ID: <200209201817.47356.schumacher-k@...20...> Hi I've just started to play a little bit with gambas 0.38 The installing seemed to be ok But I'm not able to compile one of the examples, which are coming with gambas - Compile, Run or Debug .... none of them works. The Debug-Window opens and the status line says "Compiling project Notepad...." but nothing happens. I have to kill gambas because it's 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 Klaus From Abidoo.too at ...11... Fri Sep 20 22:18:14 2002 From: Abidoo.too at ...11... (Fabien BODARD) Date: Fri, 20 Sep 2002 22:18:14 +0200 (MET DST) Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #35 - 1 msg References: Message-ID: <3D80120800570F9C@...12...> (added by postmaster@...11...) Argh Suse!!! there is some probleme with this distribution !!! you must to use Gambas 0.37a i think it still work fabien ;?) From schumacher-k at ...20... Sat Sep 21 00:44:45 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Sat, 21 Sep 2002 00:44:45 +0200 Subject: [Gambas-user] no compiling 2 Message-ID: <200209201817.47356.schumacher-k@...20...> 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 with: - loading the project - opening the debug window - choosing first 'step into' and than 'run' Any idea ? Thanks Klaus From schumacher-k at ...20... Sat Sep 21 12:42:52 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Sat, 21 Sep 2002 12:42:52 +0200 Subject: [Gambas-user] no compiling 2 Message-ID: <200209201817.47356.schumacher-k@...20...> 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 with: - loading the project - opening the debug window - choosing first 'step into' and than 'run' Any idea ? Thanks Klaus From gambas at ...1... Sat Sep 21 14:14:08 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 21 Sep 2002 14:14:08 +0200 Subject: [Gambas-user] no compiling 2 In-Reply-To: <200209201817.47356.schumacher-k@...20...> References: <200209201817.47356.schumacher-k@...20...> Message-ID: <200209211414.08324.gambas@...1...> Le Samedi 21 Septembre 2002 12:42, Klaus Schumacher a ?crit : > 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 with: > - 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 0.38. Does-it work when you do "compile all" instead of a single "compile" ? -- Beno?t Minisini mailto:gambas at ...1... From parka at ...15... Fri Sep 27 13:08:05 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Fri, 27 Sep 2002 13:08:05 +0200 Subject: [Gambas-user] gambas cannot load class file In-Reply-To: References: Message-ID: <200209271106.g8RB6mR10621@...16...> 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 From karl.reinl at ...9... Sun Sep 1 01:20:43 2002 From: karl.reinl at ...9... (Charlie) Date: Sat, 31 Aug 2002 23:20:43 +0000 Subject: [Gambas-user] Test References: Message-ID: <3D714F4B.80705@...9...> > > >>Salut Benoit, >> >>my test has troubles. >> >>1. from WAIT >> >>2. from CFloat >> >>3. from Button_Click 237 times >> >>see inside *.class >> >>Attachement is a 'zip' file >> >> > >WAIT does not work as expected. I will correct it ! > >There was a bug in CStr, not in CFloat. >CStr(CFloat("0")) returns "0.E+" ! I have corrected it. > >What's the problem with Button_Click 237 times ? > the program chrashs, but only if the ping pong runs and you click 237 times to raise the amount. > >--=20 >Beno=EEt Minisini >mailto:gambas at ...1... > > > > > >--__--__-- > >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >End of Gambas-user Digest > > > > From Abidoo.too at ...11... Sun Sep 1 18:21:27 2002 From: Abidoo.too at ...11... (Fabien BODARD) Date: Sun, 01 Sep 2002 18:21:27 +0200 (MET DST) Subject: [Gambas-user] problem With my combobox References: Message-ID: <3D6EE88E001064FF@...12...> (added by postmaster@...11...) 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? ??? Fabien From karl.reinl at ...9... Tue Sep 3 00:20:38 2002 From: karl.reinl at ...9... (Charlie) Date: Mon, 02 Sep 2002 22:20:38 +0000 Subject: [Gambas-user] Re: problem With my combobox References: Message-ID: <3D73E436.8030302@...9...> > > >Message: 2 >Date: Sun, 01 Sep 2002 18:21:27 +0200 (MET DST) >From: "Fabien BODARD" >To: >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 > > From benoit.minisini at ...2... Wed Sep 4 23:17:07 2002 From: benoit.minisini at ...2... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 4 Sep 2002 23:17:07 +0200 Subject: [Gambas-user] New release Message-ID: <200209042317.07420.benoit.minisini@...2...> Hello everybody, I have just released the 0.38 version. You will find a lot of visual changes in the development environment, and a lot of less visual ones in the Qt component. Have fun ! -- Beno?t Minisini mailto:benoit.minisini at ...2... From gambas at ...1... Thu Sep 5 08:06:52 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Thu, 5 Sep 2002 08:06:52 +0200 Subject: [Gambas-user] Tips of the day Message-ID: <200209050806.52462.gambas@...1...> 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 IDE sources. The format of a tip is reduced HTML text between marks, ala XML. If you have tips of your own, send them me, and I will add them to this file. Thanks in advance ! -- Beno?t Minisini mailto:gambas at ...1... From gambas at ...1... Sat Sep 7 19:22:21 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 7 Sep 2002 19:22:21 +0200 Subject: [Gambas-user] A bug in qt 3.0.3 Message-ID: <200209071922.21758.gambas@...1...> 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 forgets to free an internal mutex. This bug is not serious, and there is a workaround I will use in the next version of Gambas. http://lists.trolltech.com/qt-interest/2002-05/msg00381.html I thank Juergen (NN ) for his search in the Qt list and for having solved the problem. -- Beno?t Minisini mailto:gambas at ...1... From parka at ...15... Mon Sep 9 14:50:01 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Mon, 9 Sep 2002 14:50:01 +0200 Subject: [Gambas-user] Documentation In-Reply-To: References: Message-ID: <200209091248.g89CmpI22259@...16...> 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 From gambas at ...1... Tue Sep 10 20:26:10 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Tue, 10 Sep 2002 20:26:10 +0200 Subject: [Gambas-user] Documentation In-Reply-To: <200209091248.g89CmpI22259@...16...> References: <200209091248.g89CmpI22259@...16...> Message-ID: <200209102026.10252.gambas@...1...> Le Lundi 9 Septembre 2002 14:50, Laszlo Parkanyi a ?crit : > 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 Laszlo, Variable scope in Gambas is in fact like the Java one, or any good object-oriented language. Not Visual-Basic ! So, there is no project global variables in Gambas like in VB. A global variable is global to a class or a module. And if you want to access a 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 access it via the name of the module. For example, Module MGlobal.module: ' Gambas module PUBLIC BirthYear AS Integer ... Module MMain.module (startup module): ' Gambas module ... PUBLIC SUB Main() PRINT "BirthYear is"; MGlobal.BirthYear END Got it ? :-) -- Beno?t Minisini mailto:gambas at ...1... From karl.reinl at ...9... Tue Sep 10 23:49:30 2002 From: karl.reinl at ...9... (Charlie) Date: Tue, 10 Sep 2002 21:49:30 +0000 Subject: [Gambas-user] Documentation References: <200209091248.g89CmpI22259@...16...> <200209102026.10252.gambas@...1...> Message-ID: <3D7E68EA.9000000@...9...> > > >>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 From parka at ...15... Wed Sep 11 12:48:33 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Wed, 11 Sep 2002 12:48:33 +0200 Subject: [Gambas-user] Global variables: now with forms In-Reply-To: References: Message-ID: <200209111047.g8BAlMI22331@...16...> 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 From gambas at ...1... Wed Sep 11 18:25:07 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Wed, 11 Sep 2002 18:25:07 +0200 Subject: [Gambas-user] Global variables: now with forms In-Reply-To: <200209111047.g8BAlMI22331@...16...> References: <200209111047.g8BAlMI22331@...16...> Message-ID: <200209111825.07581.gambas@...1...> Le Mercredi 11 Septembre 2002 12:48, Laszlo Parkanyi a ?crit : > 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 > Your next problem is not very clear :-) If Gambas says "unable to load class file" in that case, it means that there is no form named "fForm" in your project. Have you defined it ? -- Beno?t Minisini mailto:gambas at ...1... From Abidoo.too at ...11... Wed Sep 11 23:41:30 2002 From: Abidoo.too at ...11... (abid) Date: Wed, 11 Sep 2002 23:41:30 +0200 Subject: [Gambas-user] Global variables: now with forms Message-ID: <200209112341.30759.Abidoo.too@...11...> 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 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. fabien ('humm do you understand what i say ;)' ) From schumacher-k at ...20... Fri Sep 20 18:17:47 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Fri, 20 Sep 2002 18:17:47 +0200 Subject: [Gambas-user] no compiling Message-ID: <200209201817.47356.schumacher-k@...20...> Hi I've just started to play a little bit with gambas 0.38 The installing seemed to be ok But I'm not able to compile one of the examples, which are coming with gambas - Compile, Run or Debug .... none of them works. The Debug-Window opens and the status line says "Compiling project Notepad...." but nothing happens. I have to kill gambas because it's 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 Klaus From Abidoo.too at ...11... Fri Sep 20 22:18:14 2002 From: Abidoo.too at ...11... (Fabien BODARD) Date: Fri, 20 Sep 2002 22:18:14 +0200 (MET DST) Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #35 - 1 msg References: Message-ID: <3D80120800570F9C@...12...> (added by postmaster@...11...) Argh Suse!!! there is some probleme with this distribution !!! you must to use Gambas 0.37a i think it still work fabien ;?) From schumacher-k at ...20... Sat Sep 21 00:44:45 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Sat, 21 Sep 2002 00:44:45 +0200 Subject: [Gambas-user] no compiling 2 Message-ID: <200209201817.47356.schumacher-k@...20...> 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 with: - loading the project - opening the debug window - choosing first 'step into' and than 'run' Any idea ? Thanks Klaus From schumacher-k at ...20... Sat Sep 21 12:42:52 2002 From: schumacher-k at ...20... (Klaus Schumacher) Date: Sat, 21 Sep 2002 12:42:52 +0200 Subject: [Gambas-user] no compiling 2 Message-ID: <200209201817.47356.schumacher-k@...20...> 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 with: - loading the project - opening the debug window - choosing first 'step into' and than 'run' Any idea ? Thanks Klaus From gambas at ...1... Sat Sep 21 14:14:08 2002 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt=20Minisini?=) Date: Sat, 21 Sep 2002 14:14:08 +0200 Subject: [Gambas-user] no compiling 2 In-Reply-To: <200209201817.47356.schumacher-k@...20...> References: <200209201817.47356.schumacher-k@...20...> Message-ID: <200209211414.08324.gambas@...1...> Le Samedi 21 Septembre 2002 12:42, Klaus Schumacher a ?crit : > 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 with: > - 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 0.38. Does-it work when you do "compile all" instead of a single "compile" ? -- Beno?t Minisini mailto:gambas at ...1... From parka at ...15... Fri Sep 27 13:08:05 2002 From: parka at ...15... (Laszlo Parkanyi) Date: Fri, 27 Sep 2002 13:08:05 +0200 Subject: [Gambas-user] gambas cannot load class file In-Reply-To: References: Message-ID: <200209271106.g8RB6mR10621@...16...> 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