From Karl.Reinl at ...9... Sat May 1 10:17:33 2004 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 1 May 2004 10:17:33 +0200 Subject: [Gambas-user] for Ron (tblview with xTableView) Message-ID: <200405011017.33907.Karl.Reinl@...9...> Salut Ron, made a version of your tblview using xTableView Amicalement Charlie From Karl.Reinl at ...9... Sat May 1 10:15:28 2004 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 1 May 2004 10:15:28 +0200 Subject: [Gambas-user] BUG (or not nice) MakePackage Message-ID: <200405011015.28356.Karl.Reinl@...9...> Salut , if you make a Package, the .lock is packed also . Shouldn't. Amicalement Charlie From karl.reinl at ...9... Sat May 1 12:28:38 2004 From: karl.reinl at ...9... (Charlie) Date: Sat, 01 May 2004 12:28:38 +0200 Subject: [Gambas-user] for Ron tblview (now with attachment) Message-ID: <40937BD6.80804@...9...> Salut Ron, made a version of your tblview using xTableView Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: tblview-ch.tar.gz Type: application/x-tar Size: 5160 bytes Desc: not available URL: From daniel.campos at ...338... Sat May 1 12:46:20 2004 From: daniel.campos at ...338... (Daniel) Date: Sat, 01 May 2004 12:46:20 +0200 Subject: [Gambas-user] Let's iconize! In-Reply-To: <4092A66C.8070509@...184...> References: <1083339979.6271.20.camel@...40...> <4092A66C.8070509@...184...> Message-ID: <1083408379.3620.0.camel@...40...> El vie, 30-04-2004 a las 21:18, Nelson Ferraz escribi?: > Daniel Campos wrote: > > So, If anybody of you wants to draw beautiful icons for this component, > > it's time to do it. You'll have to create icons for: > > What's the proper icon size? 64x64 pixels? 128x128px? > They are 32x32 PNG icons Regards, Daniel Campos > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From grahame at ...307... Sat May 1 13:36:08 2004 From: grahame at ...307... (Grahame White) Date: Sat, 1 May 2004 12:36:08 +0100 Subject: [Gambas-user] A bug with debugging? Message-ID: <200405011236.08497.grahame@...307...> I'm using gambas 0.92a on my debian box I was doing some debugging of a program using watches and I forgot to close the watch window before ending the program from the debug-bar. The next time I started my program the debug-bar disappeared and the only way to get it back was to restart gambas. I have since been able to reproduce this in the same way. From grahame at ...307... Sat May 1 18:40:15 2004 From: grahame at ...307... (Grahame White) Date: Sat, 1 May 2004 17:40:15 +0100 Subject: [Gambas-user] A bug with debugging? In-Reply-To: <200405011236.08497.grahame@...307...> References: <200405011236.08497.grahame@...307...> Message-ID: <200405011740.15370.grahame@...307...> On Saturday 01 May 2004 12:36, Grahame White wrote: > I'm using gambas 0.92a on my debian box > > I was doing some debugging of a program using watches and I forgot to > close the watch window before ending the program from the debug-bar. The > next time I started my program the debug-bar disappeared and the only > way to get it back was to restart gambas. I have since been able to > reproduce this in the same way. > Playing with this some more I found that if I run my program, close the watch window, stop my program and then restart my program then I get the debugging toolbar back without having to restart gambas. The same happens if I don't close the local variables window before stopping my program. The same workaround as above works for this too. Grahame From danielcampos at ...282... Sun May 2 10:57:06 2004 From: danielcampos at ...282... (Daniel Campos) Date: Sun, 02 May 2004 10:57:06 +0200 Subject: [Gambas-user] Old BASIC Message-ID: <1083488226.3283.1.camel@...40...> Today BASIC's is 40 years old: http://slashdot.org/article.pl?sid=04/04/29/1932227&mode=thread&tid=126&tid=156 Happy Birthday -- Daniel Campos From sourceforge-raindog2 at ...94... Sun May 2 18:55:26 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 2 May 2004 12:55:26 -0400 Subject: [Gambas-user] Fwd: Config File Message-ID: <200405021255.26075.sourceforge-raindog2@...94...> Looks like maybe a problem with Benoit's sourceforge address or the list. Please reply to jhalstead at ...449... and not me. Thanks! ---------- Forwarded Message ---------- Subject: Config File Date: Sunday 02 May 2004 11:39 From: To: sourceforge-raindog2 at ...94... This may be a simple question but I do not see it anywhere in the docs. I am writing a program where the location of the database is different. IE Local IP and Remote IP so I want to save it in a config. I am unsure how to do this. Do I use an INI style file or is there a "registry" that Gambas implements? Where or how would be the best solution to storing configuration information? I am sorry to email this you but gambas at ...1... failed saying unknown user. ------------------------------------------------------- From Karl.Reinl at ...9... Sun May 2 22:41:07 2004 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 2 May 2004 22:41:07 +0200 Subject: [Gambas-user] Same Name Picture 3 times Message-ID: <200405022241.07755.Karl.Reinl@...9...> Salut, I'm writing a class called XTableView.class who INHERITS TableView.class from gb.qt.ext both have Picture XTableView as Function who returns or sets the Property Picture from TableView. I ditn't use Property, while I return it out of an Array. But now I need from gb.qt Picture, actually I solved the problem by adding a Module which loads that Picture, but I would like to to it in the XTableView.class. Is there a way to call the Picture from gb.qt ( gb.qt.Picture don't work) ? Amicalement Charlie From adrianleiro at ...397... Sun May 2 23:31:09 2004 From: adrianleiro at ...397... (=?iso-8859-1?q?Adrian=20Leiro?=) Date: Sun, 2 May 2004 23:31:09 +0200 (CEST) Subject: [Gambas-user] Loading Animations Message-ID: <20040502213109.76530.qmail@...450...> How can I do to load an animated gif?? I tried with picture box and drawing area but it doesn't moves, it's only the first frame. Thank's. Sorry if I dont write a good english, I'm spanish... ______________________________________________________________________ Correo Yahoo! - 6MB, m?s protecci?n contra el spam ?Gratis! http://correo.yahoo.es From Karl.Reinl at ...9... Sun May 2 23:12:49 2004 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 2 May 2004 23:12:49 +0200 Subject: [Gambas-user] Where I can ind the last Filter from Dialog Message-ID: <200405022312.49126.Karl.Reinl@...9...> Salut, if my Dialog.Filter = [ (as XML") & " (*.xml)",("as doc") & " (*.doc)",("as pdf") & " (*.pdf)", ("All files") & " (*.*)" ] How can I find out which Extention was choosen at Dialog.SaveFile , when it commes back? To add it to Dialog.Path when he was was typed. Amicalement Charlie From gambas at ...1... Mon May 3 11:31:02 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 May 2004 11:31:02 +0200 Subject: [Gambas-user] BUG (or not nice) MakePackage In-Reply-To: <200405011015.28356.Karl.Reinl@...9...> References: <200405011015.28356.Karl.Reinl@...9...> Message-ID: <200405031131.02189.gambas@...1...> On Saturday 01 May 2004 10:15, Charlie Reinl wrote: > Salut , > > if you make a Package, the .lock is packed also . > Shouldn't. > > Amicalement > Charlie > > Right. I already fixed it ! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 3 11:33:32 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 May 2004 11:33:32 +0200 Subject: [Gambas-user] Same Name Picture 3 times In-Reply-To: <200405022241.07755.Karl.Reinl@...9...> References: <200405022241.07755.Karl.Reinl@...9...> Message-ID: <200405031133.32662.gambas@...1...> On Sunday 02 May 2004 22:41, Charlie Reinl wrote: > Salut, > > I'm writing a class called XTableView.class who INHERITS TableView.class > from gb.qt.ext both have Picture XTableView as Function who returns or > sets the Property Picture from TableView. > I ditn't use Property, while I return it out of an Array. > > But now I need from gb.qt Picture, actually I solved the problem by adding > a Module which loads that Picture, but I would like to to it in the > XTableView.class. > > Is there a way to call the Picture from gb.qt ( gb.qt.Picture don't work) > ? > > Amicalement > Charlie > > Sorry, but I didn't really understand what you need :-( -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 3 11:34:25 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 May 2004 11:34:25 +0200 Subject: [Gambas-user] Loading Animations In-Reply-To: <20040502213109.76530.qmail@...450...> References: <20040502213109.76530.qmail@...450...> Message-ID: <200405031134.25691.gambas@...1...> On Sunday 02 May 2004 23:31, Adrian Leiro wrote: > How can I do to load an animated gif?? > > I tried with picture box and drawing area but it > doesn't moves, it's only the first frame. Thank's. > Sorry if I dont write a good english, I'm spanish... > > This needs a new control. If I have time, I will do it. -- Benoit Minisini mailto:gambas at ...1... From grahame at ...307... Mon May 3 12:52:50 2004 From: grahame at ...307... (Grahame White) Date: Mon, 3 May 2004 11:52:50 +0100 Subject: [Gambas-user] short and byte arrays Message-ID: <200405031152.50620.grahame@...307...> I'm curious as to why an array of Short or Bytes isn't implemented. Sure I could use an array of integers for everything but it seems odd to me. Also a way to create a signed/unsigned version of a datatype would be quite useful. There have been times when a short is too small and an integer seems wasteful but an unsigned short would be about right. Just because memory is pretty cheap and abundant doesn't mean we should be wasteful. That path leads to the dark side :) Grahame From grahame at ...307... Mon May 3 13:50:04 2004 From: grahame at ...307... (Grahame White) Date: Mon, 3 May 2004 12:50:04 +0100 Subject: [Gambas-user] Sort user-defined objects Message-ID: <200405031250.04453.grahame@...307...> Say I have an array of an object called Square. The object Square has the following properties: Width Height Area Now if I want to sort the array which, if any, of the properties would it be sorted by? Is there a way to choose which property to sort by or would I have to make my own method for the Square object? Grahame From gambas at ...1... Mon May 3 16:42:52 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 May 2004 16:42:52 +0200 Subject: [Gambas-user] short and byte arrays In-Reply-To: <200405031152.50620.grahame@...307...> References: <200405031152.50620.grahame@...307...> Message-ID: <200405031642.52477.gambas@...1...> On Monday 03 May 2004 12:52, Grahame White wrote: > I'm curious as to why an array of Short or Bytes isn't implemented. Sure I > could use an array of integers for everything but it seems odd to me. > You have the Byte[] and Short[] classes for your needs :-) > Also a way to create a signed/unsigned version of a datatype would be quite > useful. There have been times when a short is too small and an integer > seems wasteful but an unsigned short would be about right. In a future version of Gambas ? > > Just because memory is pretty cheap and abundant doesn't mean we should be > wasteful. That path leads to the dark side :) May the force be with me :-) > > Grahame > > -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 3 16:43:33 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 May 2004 16:43:33 +0200 Subject: [Gambas-user] Sort user-defined objects In-Reply-To: <200405031250.04453.grahame@...307...> References: <200405031250.04453.grahame@...307...> Message-ID: <200405031643.33356.gambas@...1...> On Monday 03 May 2004 13:50, Grahame White wrote: > Say I have an array of an object called Square. The object Square has the > following properties: > > Width > Height > Area > > Now if I want to sort the array which, if any, of the properties would it > be sorted by? Is there a way to choose which property to sort by or would > I have to make my own method for the Square object? > > Grahame > At the moment you need to sort array of objects yourself. -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...9... Mon May 3 19:24:51 2004 From: karl.reinl at ...9... (Charlie) Date: Mon, 03 May 2004 19:24:51 +0200 Subject: [Gambas-user] Same Name Picture 3 times References: <200405022241.07755.Karl.Reinl@...9...> <200405031133.32662.gambas@...1...> Message-ID: <40968063.1010503@...9...> Benoit Minisini schrieb: >On Sunday 02 May 2004 22:41, Charlie Reinl wrote: > > >>Salut, >> >>I'm writing a class called XTableView.class who INHERITS TableView.class >>from gb.qt.ext both have Picture XTableView as Function who returns or >>sets the Property Picture from TableView. >>I ditn't use Property, while I return it out of an Array. >> >>But now I need from gb.qt Picture, actually I solved the problem by adding >>a Module which loads that Picture, but I would like to to it in the >>XTableView.class. >> >>Is there a way to call the Picture from gb.qt ( gb.qt.Picture don't work) >>? >> >>Amicalement >>Charlie >> >> >> >> > >Sorry, but I didn't really understand what you need :-( > > > I have a Class , where I have a Function Picture. But now I need in this Class to use the Picture from gb.qt. If I call In my Class Picture["1234.png"] I'v get 'Is not an Object' What is right, because my Function Picture needs (Row,Column, Optional pPic as Picture) So my question is, can I call directly Picture from gb.qt. like I tried gb.qt.Picture["1234.png"] Amicalement Charlie From vbtricks at ...451... Mon May 3 19:38:22 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Mon, 03 May 2004 19:38:22 +0200 Subject: [Gambas-user] gb.net-component Message-ID: <4096838E.2020006@...451...> I've selected the gb.net-component in the options of the project, but the component is not displayed in the toolbox. Might it be not working or where do I find it now? Stefan _________________________________________________________________________________________ Sagen Sie nicht, wir haetten Sie nicht gewarnt! http://my-mail.ch/?redirect=9901 Digitalfotos entwickeln? Das Fotolabor mit den Extras... http://my-mail.ch/?redirect=1689 From sourceforge-raindog2 at ...94... Mon May 3 21:26:30 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 3 May 2004 15:26:30 -0400 Subject: [Gambas-user] gb.net-component In-Reply-To: <4096838E.2020006@...451...> References: <4096838E.2020006@...451...> Message-ID: <200405031526.30715.sourceforge-raindog2@...94...> On Monday 03 May 2004 13:38, VBTricks.de.vu Webmaster wrote: > I've selected the gb.net-component in the options of the > project, but the component is not displayed in the toolbox. > Might it be not working or where do I find it now? Daniel hasn't released the final version that includes the component icons. Just go PUBLIC myClass as Socket (or whatever) at the start of the module, and then in code go myClass = new Socket, and it will be equivalent to what the forthcoming version should do when you place it onto a form. You can do the same with any Gambas control, btw, like a Timer or Button or whatever. Rob From grahame at ...307... Mon May 3 23:00:37 2004 From: grahame at ...307... (Grahame White) Date: Mon, 3 May 2004 22:00:37 +0100 Subject: [Gambas-user] Restrictive variable declaration Message-ID: <200405032200.37951.grahame@...307...> Is there a reason that variable have to be declared at the very beginning of a function or procedure? For example in the following code : public sub do_something (foo as integer) dim i as integer if foo > 100 then do_other_stuff() else for i = 1 to 42 do_yet_more_stuff next endif end sub If foo is less than 100 then it'll use the variable 'i' which was declared at the beginning otherwise that 'i' is just wasteful overhead. Now if variables could be declared in with other code then 'i' could have been declared just after the else. As long as the variable is declared before it is *used* I don't see why the current "only at the beginning of the function/procedure" method should be. Grahame From gambas at ...1... Tue May 4 17:23:06 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 May 2004 17:23:06 +0200 Subject: [Gambas-user] Restrictive variable declaration In-Reply-To: <200405032200.37951.grahame@...307...> References: <200405032200.37951.grahame@...307...> Message-ID: <200405041723.07254.gambas@...1...> On Monday 03 May 2004 23:00, Grahame White wrote: > Is there a reason that variable have to be declared at the very beginning > of a function or procedure? > > For example in the following code : > > public sub do_something (foo as integer) > > dim i as integer > > if foo > 100 then > do_other_stuff() > else > for i = 1 to 42 > do_yet_more_stuff > next > endif > > end sub > > > > If foo is less than 100 then it'll use the variable 'i' which was declared > at the beginning otherwise that 'i' is just wasteful overhead. Now if > variables could be declared in with other code then 'i' could have been > declared just after the else. > > As long as the variable is declared before it is *used* I don't see why the > current "only at the beginning of the function/procedure" method should > be. > > > Grahame > > You must understand that Gambas code is compiled before being interpreted. When a function is executed, all local variables are reserved on the stack in one shot. Reserving local variables only when needed will take more time to execute for no memory gain, as the stack is a small memory allocation reserved at gambas startup (for example, 16K is sufficient for the IDE). What you want is technically possible, but would need changes in the internal Gambas compiled code, so I can't do that before a long time! And I find having local variables declared at the beginning of the function clearer B-) Regards, -- Benoit Minisini mailto:gambas at ...1... From giepi_ at ...412... Tue May 4 22:40:29 2004 From: giepi_ at ...412... (giepi_ at ...412...) Date: Tue, 4 May 2004 22:40:29 +0200 Subject: [Gambas-user] (no subject) Message-ID: <4087DE410000ACD9@...447...> Hi guys, I like very much this language and I'd like to write an important program, able to handle forum codes and interpret them correctly. In order to do this I need help to clarify a little obscure thing (I'm a newbye). This could be a good way to learn. I can't understand how I could handle [B] and [/B] tags in a textbox making inside text bold/normal. Could you please help me? Thanksfully, Giepi From grahame at ...307... Wed May 5 02:16:33 2004 From: grahame at ...307... (Grahame White) Date: Wed, 5 May 2004 01:16:33 +0100 Subject: [Gambas-user] doevents equivalent? Message-ID: <200405050116.33381.grahame@...307...> Silly question but is there a doevents equivalent in gambas? Grahame From nferraz at ...184... Wed May 5 02:42:43 2004 From: nferraz at ...184... (Nelson Ferraz) Date: Tue, 04 May 2004 21:42:43 -0300 Subject: [Gambas-user] doevents equivalent? In-Reply-To: <200405050116.33381.grahame@...307...> References: <200405050116.33381.grahame@...307...> Message-ID: <40983883.2000403@...184...> Grahame White wrote: > Silly question but is there a doevents equivalent in gambas? Not a silly question, but the answer is in the wiki: DoEvents: see WAIT. WAIT also replaces the frequently used Windows API "sleep" function. http://www.binara.com/gambas-wiki/bin/view/Gambas/DifferencesFromVB More information about WAIT: http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasWAIT You'll probably want to call WAIT without delay argument. []s Nelson From danielcampos at ...282... Wed May 5 08:33:04 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Wed, 5 May 2004 08:33:04 CEST Subject: [Gambas-user] (no subject) Message-ID: You should use the TextView class from gb.qt.ext intstead, as it manages HTML directly, however don't expect css sheets and flash :-), but you can directly add simple HTML tags like or . Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From danielcampos at ...282... Wed May 5 08:35:10 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Wed, 5 May 2004 08:35:10 CEST Subject: [Gambas-user] doevents equivalent? Message-ID: > >Silly question but is there a doevents equivalent in gambas? > Not so silly, I have the same problem each time I learn a new language:-). Use wait(), however, be careful, as not all events are processed, for instance the interface will be refreshed but the user won't be able to press a button... Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From roberto.premoli at ...422... Wed May 5 08:58:54 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Wed, 5 May 2004 02:58:54 -0400 Subject: [Gambas-user] how to add objects to toolbox? Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3C95@...423...> hi! I get started to convert my VB programs into Gambas. Well, I need some objects as VScrollBar, HScrollBar, line, shape, etc But I dont see them into gambas's toolbox. How can I add line,shape, etc. into toolbox? Thanks, Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From roberto.premoli at ...422... Wed May 5 09:55:11 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Wed, 5 May 2004 02:55:11 -0500 Subject: [Gambas-user] Italian Gambers Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3C97@...423...> >Dear All >I'm Italian!! .-) I can help with Italian translation of the Doc !! When we >Start!! send direct email. >Bye >Dimitri hi italian people! I joined gambas few days ago! U are free to contact me directly for further conversations. Have fun with free VisualBasic-like environment, yeah! www.openbrains.org/roberto Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From nigel at ...38... Wed May 5 10:54:34 2004 From: nigel at ...38... (Nigel Gerrard) Date: Wed, 5 May 2004 09:54:34 +0100 Subject: [Gambas-user] how to add objects to toolbox? References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3C95@...423...> Message-ID: <000601c4327e$98074d60$32454f51@...360...> Roberto, The ScrollBars are available within the gb.qt.ext component. Within the IDE, select the Project Menu -> Properties ->then the Components TAB. Select the extension component and click OK. A QT button should now be contained within the Toolbox. Click this to see the extra available components. Nigel ----- Original Message ----- From: "Premoli, Roberto [ITPPG/1010]" To: Sent: Wednesday, May 05, 2004 7:58 AM Subject: [Gambas-user] how to add objects to toolbox? > > hi! > I get started to convert my VB programs into Gambas. > Well, I need some objects as > > VScrollBar, > HScrollBar, > line, > shape, > etc > > But I dont see them into gambas's toolbox. > How can I add line,shape, etc. into toolbox? > > Thanks, > Roberto > > This communication is intended solely for the use of the addressee and may > contain information that is legally privileged, confidential or exempt from > disclosure. If you are not the intended recipient, please note that any > dissemination, distribution, or copying of this communication is strictly > prohibited. Anyone who receives this message in error should notify the > sender immediately and delete it from his or her computer. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From giepi_ at ...412... Wed May 5 15:58:25 2004 From: giepi_ at ...412... (giepi_ at ...412...) Date: Wed, 5 May 2004 15:58:25 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: Message-ID: <4087DE410000BA59@...447...> >You should use the TextView class from gb.qt.ext intstead, as it manages >HTML directly, however don't expect css sheets and flash :-), but you can >directly add simple HTML tags like or . > >Regards, > >Daniel Campos Thx, but forum codes are a bit different from html. How I can write my own forum codes instead use standard html? From roberto.premoli at ...422... Wed May 5 18:23:27 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Wed, 5 May 2004 11:23:27 -0500 Subject: [Gambas-user] how to add objects to toolbox? Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA2@...423...> >Roberto, >The ScrollBars are available within the gb.qt.ext component. >Within the IDE, select the Project Menu -> Properties ->then the Components >TAB. >Select the extension component and click OK. >A QT button should now be contained within the Toolbox. Click this to see >the extra available components. >Nigel Good! But there is ONLY the orizontal one... where is the vertical scroll bar? I add all the component that are not in BETA, but i didnt found the vertical scroll bar... perhaps it doesnt exists? I see in my toolbox: FORM / QT /KDE Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From roberto.premoli at ...422... Wed May 5 18:41:59 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Wed, 5 May 2004 12:41:59 -0400 Subject: [Gambas-user] how to add objects to toolbox? Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA3@...423...> >>Roberto, >>The ScrollBars are available within the gb.qt.ext component. >>Within the IDE, select the Project Menu -> Properties ->then the Components >>TAB. >>Select the extension component and click OK. >>A QT button should now be contained within the Toolbox. Click this to see >>the extra available components. >>Nigel >Good! >But there is ONLY the orizontal one... where is the vertical scroll bar? >I add all the component that are not in BETA, but i didnt found >the vertical scroll bar... >perhaps it doesnt exists? >I see in my toolbox: FORM / QT /KDE > >Roberto opps! I saw how to modify, it is enough to resize the scroll bar and it changes from horizontal to vertical automatically! great GAMBAS! Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From roberto.premoli at ...422... Wed May 5 19:05:59 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Wed, 5 May 2004 13:05:59 -0400 Subject: [Gambas-user] difference gambas vs VB Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA4@...423...> in gambas's site at point "Differences from VB" is wrote: Screen measurements in VB are done in "twips", units of 1/1440 of an inch; in Gambas they're done in actual pixels. well, what are the equivalences between 1/1400inch an actual pixel? I mean, if I have an tolbox (in VB) with toolbox.width=12345 how must be (in GAMBAS) toolbox.width=XXXX to have the same dimension? Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From gcastro at ...452... Wed May 5 20:11:20 2004 From: gcastro at ...452... (gcastro at ...452...) Date: Wed, 5 May 2004 15:11:20 -0300 (ART) Subject: [Gambas-user] difference gambas vs VB In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA4@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA4@...423...> Message-ID: <41657.200.40.61.162.1083780680.squirrel@...453...> Roberto: Normally, in a resolution of 800x600, a pixel in VB have 15 twips per side. This can be checked accessing screen.twipsperpixelx and screen.twipsperpixely propierties whithin the VB program. In Gambas, the real size is in pixels, so you must do a conversion to get the real size. Saludos, Gustavo Castro Puig. E-Mail: gcastro at ...452... G.C.P. Software - Inform?tica Inteligente. Web: http://www.gcp.com.uy LPI Level-1 Certified (https://www.lpi.org/es/verify.html LPID:LPI000042304 Verification Code: hp6re8w5qg ) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/CM/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o? K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++ D++ G++ e++ h--- r y+++ ------END GEEK CODE BLOCK------ Registered Linux User #69342 > > in gambas's site at point "Differences from VB" is wrote: > > > Screen measurements in VB are done in "twips", units of 1/1440 of an > inch; in Gambas they're done in actual pixels. > > > well, what are the equivalences between 1/1400inch an actual pixel? > > I mean, if I have an tolbox (in VB) with toolbox.width=12345 > how must be (in GAMBAS) toolbox.width=XXXX to have the same dimension? > > Roberto > > This communication is intended solely for the use of the addressee and > may contain information that is legally privileged, confidential or > exempt from disclosure. If you are not the intended recipient, please > note that any dissemination, distribution, or copying of this > communication is strictly prohibited. Anyone who receives this > message in error should notify the sender immediately and delete it > from his or her computer. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Wed May 5 22:10:48 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 5 May 2004 16:10:48 -0400 Subject: [Gambas-user] difference gambas vs VB In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA4@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CA4@...423...> Message-ID: <200405051610.48743.sourceforge-raindog2@...94...> On Wednesday 05 May 2004 13:05, Premoli, Roberto [ITPPG/1010] wrote: > well, what are the equivalences between 1/1400inch an actual > pixel? A pixel is an absolute physical measurement that varies from display to display but is visually consistent, and twips are a relative measurement like point size. (In fact, twenty twips are one point.) When I was working on that early VB to Gambas conversion script, I simply multiplied the number of twips by 10/144.... an oversimplified way of doing things perhaps (it assumes everyone's display is 100dpi), but it produced visually pleasing results. Rob From ZENODotus at ...323... Thu May 6 01:29:10 2004 From: ZENODotus at ...323... (ZENODotus) Date: Thu, 6 May 2004 01:29:10 +0200 Subject: [Gambas-user] workspace question Message-ID: <200405060129.10317.ZENODotus@...323...> Well, just another little question from me... But I can't really figure out how the workspace works... I want to put to windows in a workspace, how can I do that? Thanks in advance... -- ZENODotus, YOU DREAM, I REALISE!! "Never trust a computer you can't trow out a window" - Steve Wozniak mailto:zenodotus at ...323... From danielcampos at ...282... Thu May 6 08:42:35 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Thu, 6 May 2004 08:42:35 CEST Subject: [Gambas-user] how to add objects to toolbox? Message-ID: From roberto.premoli at ...422... Thu May 6 14:11:19 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Thu, 6 May 2004 07:11:19 -0500 Subject: [Gambas-user] how to add have array of textbox (or other object)? Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAA@...423...> Hi! I am converting soft in GAMBAS. Well, the original VB code has a lot of "array of objects", for example, I have an array of textbox, they are usefull cos I can manage them with for-next cicle, as: (just an example) for n=0 to 19 textbox(n).text=n next n Well, in GAMBAS I create textbox1, then I pressed ctrl-C, ctrl-V to "copy and paste" but GAMBAS didnt ask me to create an array, but simply he created a new textbox2. So, how can I have array that I need? I looked in Binara.com but I didnt get help. anoter thing: how can use the (group) property of textbox1? What it is usable for? Thanks, Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From gcastro at ...452... Thu May 6 14:24:16 2004 From: gcastro at ...452... (gcastro at ...452...) Date: Thu, 6 May 2004 09:24:16 -0300 (ART) Subject: [Gambas-user] how to add have array of textbox (or other object)? In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAA@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAA@...423...> Message-ID: <43554.200.40.61.162.1083846256.squirrel@...453...> Roberto: Try creating instances of the textbox object with "new". There are examples in the gambas documentation. You must create object arrays with code. Saludos, Gustavo Castro Puig. E-Mail: gcastro at ...452... G.C.P. Software - Inform?tica Inteligente. Web: http://www.gcp.com.uy LPI Level-1 Certified (https://www.lpi.org/es/verify.html LPID:LPI000042304 Verification Code: hp6re8w5qg ) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/CM/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o? K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++ D++ G++ e++ h--- r y+++ ------END GEEK CODE BLOCK------ Registered Linux User #69342 > > Hi! > I am converting soft in GAMBAS. > Well, the original VB code has a lot of "array of objects", > for example, I have an array of textbox, they are usefull > cos I can manage them with for-next cicle, as: > > (just an example) > for n=0 to 19 > textbox(n).text=n > next n > > Well, in GAMBAS I create textbox1, > then I pressed ctrl-C, ctrl-V to "copy and paste" > but GAMBAS didnt ask me to create an array, but simply > he created a new textbox2. > So, how can I have array that I need? > > I looked in Binara.com but I didnt get help. > > anoter thing: how can use the (group) property of textbox1? > What it is usable for? > > Thanks, > Roberto > > > This communication is intended solely for the use of the addressee and > may contain information that is legally privileged, confidential or > exempt from disclosure. If you are not the intended recipient, please > note that any dissemination, distribution, or copying of this > communication is strictly prohibited. Anyone who receives this > message in error should notify the sender immediately and delete it > from his or her computer. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From roberto.premoli at ...422... Thu May 6 16:26:26 2004 From: roberto.premoli at ...422... (Premoli, Roberto [ITPPG/1010]) Date: Thu, 6 May 2004 10:26:26 -0400 Subject: [Gambas-user] how to add have array of textbox (or other obje ct)? Message-ID: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> >Roberto: > > Try creating instances of the textbox object with "new". There are >examples in the gambas documentation. You must create object arrays with >code. >Saludos, > Gustavo Castro Puig. Hi gustavo, thanks for ansver. Create object with code?! do you mean at run time?!? Excuse me, but I need a lot of objects, members of different arrays. They are array of texboxs, buttons and forms. I have to create them and place onto my form BEFORE run time. I cannot create an array of 25 textboxs, an array on 48 buttons at fith the code: where they will be placed? If I create they at runtime, then I have also to place them (x,y position) at run time. I need them in fixed positions, so I must create ad Design time, and place them, I cant create and place at runtime. How to solve this my problem? Roberto This communication is intended solely for the use of the addressee and may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately and delete it from his or her computer. From gcastro at ...452... Thu May 6 16:46:54 2004 From: gcastro at ...452... (gcastro at ...452...) Date: Thu, 6 May 2004 11:46:54 -0300 (ART) Subject: [Gambas-user] how to add have array of textbox (or other obje In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> Message-ID: <43899.200.40.61.162.1083854814.squirrel@...453...> Roberto: That's it. This may not be the better way to do that, but you must be aware of the features gambas and vb share and what they not share. Object arrays in VB are a good thing because sharing code and events between them is easy to do. The same happen with gambas objects. They share code and events because of the real object oriented implementation. That's the issue you must work in: create the textboxes, position them in the form and write the code inside the events they share. There are few ways to archieve that, but your Vb code will not be migrated as it is now. Read the documentation about object arrays in gambas, and you will figure out which is the best way to do it. > >>Roberto: >> >> Try creating instances of the textbox object with "new". There are >>examples in the gambas documentation. You must create object arrays >>with code. >>Saludos, >> Gustavo Castro Puig. > > Hi gustavo, thanks for ansver. > > Create object with code?! do you mean at run time?!? > > Excuse me, but I need a lot of objects, members of different arrays. > > They are array of texboxs, buttons and forms. > I have to create them and place onto my form BEFORE run time. > > I cannot create an array of 25 textboxs, an array on 48 buttons > at fith the code: where they will be placed? If I create they at > runtime, then I have also to place them (x,y position) at run time. > > I need them in fixed positions, so I must create ad Design time, and > place them, > I cant create and place at runtime. > > How to solve this my problem? > > Roberto > > This communication is intended solely for the use of the addressee and > may contain information that is legally privileged, confidential or > exempt from disclosure. If you are not the intended recipient, please > note that any dissemination, distribution, or copying of this > communication is strictly prohibited. Anyone who receives this > message in error should notify the sender immediately and delete it > from his or her computer. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Saludos, Gustavo Castro Puig. E-Mail: gcastro at ...452... G.C.P. Software - Inform?tica Inteligente. Web: http://www.gcp.com.uy LPI Level-1 Certified (https://www.lpi.org/es/verify.html LPID:LPI000042304 Verification Code: hp6re8w5qg ) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/CM/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o? K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++ D++ G++ e++ h--- r y+++ ------END GEEK CODE BLOCK------ Registered Linux User #69342 From gcastro at ...452... Thu May 6 16:59:01 2004 From: gcastro at ...452... (gcastro at ...452...) Date: Thu, 6 May 2004 11:59:01 -0300 (ART) Subject: [Gambas-user] how to add have array of textbox (or other obje In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> Message-ID: <43931.200.40.61.162.1083855541.squirrel@...453...> Roberto: I think you may be interested in writing a VB form parser that can extract the left and top values of the objects from that forms you have and generate gambas code to create them properly... That's the way I will do it. Saludos, Gustavo Castro Puig. E-Mail: gcastro at ...452... G.C.P. Software - Inform?tica Inteligente. Web: http://www.gcp.com.uy LPI Level-1 Certified (https://www.lpi.org/es/verify.html LPID:LPI000042304 Verification Code: hp6re8w5qg ) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/CM/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o? K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++ D++ G++ e++ h--- r y+++ ------END GEEK CODE BLOCK------ Registered Linux User #69342 > >>Roberto: >> >> Try creating instances of the textbox object with "new". There are >>examples in the gambas documentation. You must create object arrays >>with code. >>Saludos, >> Gustavo Castro Puig. > > Hi gustavo, thanks for ansver. > > Create object with code?! do you mean at run time?!? > > Excuse me, but I need a lot of objects, members of different arrays. > > They are array of texboxs, buttons and forms. > I have to create them and place onto my form BEFORE run time. > > I cannot create an array of 25 textboxs, an array on 48 buttons > at fith the code: where they will be placed? If I create they at > runtime, then I have also to place them (x,y position) at run time. > > I need them in fixed positions, so I must create ad Design time, and > place them, > I cant create and place at runtime. > > How to solve this my problem? > > Roberto > > This communication is intended solely for the use of the addressee and > may contain information that is legally privileged, confidential or > exempt from disclosure. If you are not the intended recipient, please > note that any dissemination, distribution, or copying of this > communication is strictly prohibited. Anyone who receives this > message in error should notify the sender immediately and delete it > from his or her computer. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ZENODotus at ...323... Thu May 6 17:05:40 2004 From: ZENODotus at ...323... (ZENODotus) Date: Thu, 6 May 2004 17:05:40 +0200 Subject: [Gambas-user] problem with tabstrip Message-ID: <200405061705.40358.ZENODotus@...323...> Hey there, There something weird going on with the tabstrip control... If I make more than one tabstrip and put a control on one of the tabs, and then I want to use this control in the code like: button1.text = "TEST" then I get the error message that button1 is already declared, while nothing else is in the class... What am I doing wrong? -- ZENODotus, YOU DREAM, I REALISE!! "Never trust a computer you can't trow out a window" - Steve Wozniak mailto:zenodotus at ...323... From nferraz at ...184... Thu May 6 17:41:45 2004 From: nferraz at ...184... (Nelson Ferraz) Date: Thu, 06 May 2004 12:41:45 -0300 Subject: [Gambas-user] how to add have array of textbox (or other obje In-Reply-To: <43931.200.40.61.162.1083855541.squirrel@...453...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> <43931.200.40.61.162.1083855541.squirrel@...453...> Message-ID: <409A5CB9.9050103@...184...> gcastro at ...452... wrote: > I think you may be interested in writing a VB form parser that can extract > the left and top values of the objects from that forms you have and generate > gambas code to create them properly... > That's the way I will do it. This tool already exists: http://www.binara.com/gambas-wiki/pub/Gambas/HowDoIConvertVbProjects/vb2gb.tgz It's not perfect, but will convert most VB forms to Gambas. []s Nelson From dimitribellini at ...69... Thu May 6 18:26:04 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Thu, 6 May 2004 18:26:04 +0200 Subject: [Gambas-user] Rewrite a line of a File Message-ID: <200405061826.04362.dimitribellini@...69...> Dear I have made an app that read a configuration file and i want replace a line but without alter the order line. Some idea how can i replace it? Thanks in advance for any tips :-) Dimitri From sourceforge-raindog2 at ...94... Thu May 6 18:31:42 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 6 May 2004 12:31:42 -0400 Subject: [Gambas-user] how to add have array of textbox (or other obje ct)? In-Reply-To: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> Message-ID: <200405061230.15356.sourceforge-raindog2@...94...> On Thursday 06 May 2004 10:26, Premoli, Roberto [ITPPG/1010] wrote: > They are array of texboxs, buttons and forms. > I have to create them and place onto my form BEFORE run time. One of my clients needed this too, and was slogging through the run time control creation thing when I discovered another technique (maybe Benoit suggested it to me, I can't remember...) 1. When placing your controls on the form at design time, set their Group property to the name of the array into which you plan to put them. This will cause events to be handled by functions named Groupname_Eventname. 2. Then set their Tag property to what should be their index in the array. 3. Finally, at runtime, loop through the window's Children container looking for a nonzero tag, and add them to the array. If you used multiple arrays in VB, you can add more stuff to the Tag property to differentiate. I agree that it should be easier to create control arrays since they are so commonly used in business applications, but this workaround has saved us a lot of time and I hope to include it in the eventual Gambas version of the VB form converter I started and Nelson improved on. Rob From gcastro at ...452... Thu May 6 19:14:43 2004 From: gcastro at ...452... (gcastro at ...452...) Date: Thu, 6 May 2004 14:14:43 -0300 (ART) Subject: [Gambas-user] how to add have array of textbox (or other obje In-Reply-To: <409A5CB9.9050103@...184...> References: <409A5CB9.9050103@...184...> Message-ID: <34033.200.40.61.162.1083863683.squirrel@...453...> Nelson: Great, thanks! I didn't look for it, but it was a matter of time to need one... Another goodie from the great world of open source... ;-) > gcastro at ...452... wrote: >> I think you may be interested in writing a VB form parser that can >> extract >> the left and top values of the objects from that forms you have and >> generate gambas code to create them properly... >> That's the way I will do it. > > This tool already exists: > > http://www.binara.com/gambas-wiki/pub/Gambas/HowDoIConvertVbProjects/vb2gb.tgz> > It's not perfect, but will convert most VB forms to Gambas. > > []s > > Nelson > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Saludos, Gustavo Castro Puig. E-Mail: gcastro at ...452... G.C.P. Software - Inform?tica Inteligente. Web: http://www.gcp.com.uy LPI Level-1 Certified (https://www.lpi.org/es/verify.html LPID:LPI000042304 Verification Code: hp6re8w5qg ) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/CM/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o? K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++ D++ G++ e++ h--- r y+++ ------END GEEK CODE BLOCK------ Registered Linux User #69342 From pastrano at ...431... Thu May 6 20:04:34 2004 From: pastrano at ...431... (Gianni Piccini) Date: Thu, 6 May 2004 20:04:34 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <200405061826.04362.dimitribellini@...69...> References: <200405061826.04362.dimitribellini@...69...> Message-ID: <1083866675.3520562.409a7e33@...432...> On Thu, 6 May 2004 18:26:04 +0200, you wrote: > Some idea how can i replace it? > Thanks in advance for any tips :-) I'm going to write a similar thing this night, if file is small, I would read all of it, split into lines for an array, and then search and replace for the correct line, then save the file again with array contents. Or read config file line by line, and save every line in another file during reading, with the modification of the correct line. If somebody knows simpler tasks like using writeprivateprofilestring in windows, tell us :-) From dimitribellini at ...69... Fri May 7 11:11:33 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Fri, 7 May 2004 11:11:33 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <1083866675.3520562.409a7e33@...432...> References: <200405061826.04362.dimitribellini@...69...> <1083866675.3520562.409a7e33@...432...> Message-ID: <200405071111.33147.dimitribellini@...69...> Dear Gianni I have think the same solution as you say in the last mail. No other solution is possible? :-) Thanks in advance Dimitri On Thursday 06 May 2004 08:04 pm, Gianni Piccini wrote: > On Thu, 6 May 2004 18:26:04 +0200, you wrote: > > Some idea how can i replace it? > > Thanks in advance for any tips :-) > > I'm going to write a similar thing this night, if file is small, I would > read all of it, split into lines for an array, and then search and replace > for the correct line, then save the file again with array contents. Or read > config file line by line, and save every line in another file during > reading, with the modification of the correct line. > If somebody knows simpler tasks like using writeprivateprofilestring in > windows, tell us :-) > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Fri May 7 12:08:53 2004 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 07 May 2004 12:08:53 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <200405071111.33147.dimitribellini@...69...> References: <200405061826.04362.dimitribellini@...69...> <1083866675.3520562.409a7e33@...432...> <200405071111.33147.dimitribellini@...69...> Message-ID: <409B6035.7020203@...221...> Hi, I've done such things several things for various programs. Dimitri Bellini schrieb: > Dear Gianni > I have think the same solution as you say in the last mail. No other solution > is possible? :-) >>read all of it, split into lines for an array, and then search and replace >>for the correct line, then save the file again with array contents. Or read This is the fastest solution but implies that the config-file is written by the machine and never by the user. >>config file line by line, and save every line in another file during >>reading, with the modification of the correct line. That is the more elegant way allowing for the user to tweak the file if necessary and even allowing for comments and stuff. My solution as a prototype for ini-style files. This is not real code and maybe not all Gambas correct: open one file for output(#2), the other for input(#1) while not eof(1) line input #1, t$ 'read one line po=instr(t$, "=") if po = 0 then 'not a real config line print #2, t$ 'just copy the line else 'a real config line 'line is split up into left and right part: l$=ucase$(trim$(left$(t$,po-1))) r$=ltrim$(mid$(t$,po+1)) 'now search if you recognize the option you look for: if l$="MY_OPTION" then 'yes, make up a new line for it: t$="my_option = " & myvalue$ print #2, t$ else 'no, another one, just copy: print #2, t$ end if end if wend close the two files, delete the original one and rename the new one to the old name. Of course you can refine the thing. For instance it's unnecessary to look for further lines once you've found and changed the value you wanted. Just copy the rest, that's somewhat faster. And I did not consider the case when you did not find the desired option - that should be added to the above example by all means. And if you make "chapters" in the file to distinguish between several subjects - that's another story. I once made a handful of helper functions in VB to handle such a more complicated file - it's a shame, but I think it's lost :-( Regards Rolf From Tim.Hanschen at ...20... Fri May 7 13:23:17 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Fri, 07 May 2004 13:23:17 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1263628758@...20...> Hi, I have again the problem that I cannot connect to my MySQL database. On my system (SuSE 9) I have the following packages installed: postgresql-libs-7.3.4-45 mysql-4.0.15-13 mysql-client-4.0.15-13 mysql-devel-4.0.15-13 mysql-shared-4.0.15-9 GAMBAS starts without any problems. During installation it said mysql-enable=yes.... everything seems to be ok. But when I try to connect to the database I get the following error: Cannot load class 'Connection': Unable to load class file I am using Gambas-0.92 I hope somebody can help. regards, - Tim - ____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 From dimitribellini at ...69... Fri May 7 14:43:13 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Fri, 7 May 2004 14:43:13 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <409B6035.7020203@...221...> References: <200405061826.04362.dimitribellini@...69...> <200405071111.33147.dimitribellini@...69...> <409B6035.7020203@...221...> Message-ID: <200405071443.13182.dimitribellini@...69...> Dear Eilert :-) Thanks for your good explaination, i solve my problem!! Thank in advance Dimitri On Friday 07 May 2004 12:08 pm, Eilert wrote: > Hi, > > I've done such things several things for various programs. > > Dimitri Bellini schrieb: > > Dear Gianni > > I have think the same solution as you say in the last mail. No other > > solution is possible? :-) > > > >>read all of it, split into lines for an array, and then search and > >> replace for the correct line, then save the file again with array > >> contents. Or read > > This is the fastest solution but implies that the config-file is written > by the machine and never by the user. > > >>config file line by line, and save every line in another file during > >>reading, with the modification of the correct line. > > That is the more elegant way allowing for the user to tweak the file if > necessary and even allowing for comments and stuff. > > My solution as a prototype for ini-style files. This is not real code > and maybe not all Gambas correct: > > open one file for output(#2), the other for input(#1) > > while not eof(1) > > line input #1, t$ 'read one line > po=instr(t$, "=") > if po = 0 then 'not a real config line > print #2, t$ 'just copy the line > > else 'a real config line > 'line is split up into left and right part: > l$=ucase$(trim$(left$(t$,po-1))) > r$=ltrim$(mid$(t$,po+1)) > 'now search if you recognize the option you look for: > > if l$="MY_OPTION" then 'yes, make up a new line for it: > t$="my_option = " & myvalue$ > print #2, t$ > else 'no, another one, just copy: > print #2, t$ > end if > end if > > wend > > close the two files, delete the original one and rename the new one to > the old name. > > Of course you can refine the thing. For instance it's unnecessary to > look for further lines once you've found and changed the value you > wanted. Just copy the rest, that's somewhat faster. > > And I did not consider the case when you did not find the desired option > - that should be added to the above example by all means. And if you > make "chapters" in the file to distinguish between several subjects - > that's another story. I once made a handful of helper functions in VB to > handle such a more complicated file - it's a shame, but I think it's > lost :-( > > Regards > Rolf > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nigel at ...38... Fri May 7 18:23:07 2004 From: nigel at ...38... (Nigel Gerrard) Date: Fri, 7 May 2004 17:23:07 +0100 Subject: [Gambas-user] again MySQL References: <1263628758@...20...> Message-ID: <002901c4344f$952de450$a8774c51@...360...> Tim, Are you using the gambas-database-manager to connect to mysql or have you created your own project? Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Friday, May 07, 2004 12:23 PM Subject: [Gambas-user] again MySQL > Hi, > > I have again the problem that I cannot connect to my MySQL database. > > On my system (SuSE 9) I have the following packages installed: > > postgresql-libs-7.3.4-45 > mysql-4.0.15-13 > mysql-client-4.0.15-13 > mysql-devel-4.0.15-13 > mysql-shared-4.0.15-9 > > GAMBAS starts without any problems. During installation it said mysql-enable=yes.... everything seems to be ok. > > But when I try to connect to the database I get the following error: > Cannot load class 'Connection': Unable to load class file > > I am using Gambas-0.92 > > I hope somebody can help. > > regards, > - Tim - > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri May 7 20:16:24 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 May 2004 20:16:24 +0200 Subject: [Gambas-user] workspace question In-Reply-To: <200405060129.10317.ZENODotus@...323...> References: <200405060129.10317.ZENODotus@...323...> Message-ID: <200405072016.25002.gambas@...1...> On Thursday 06 May 2004 01:29, ZENODotus wrote: > Well, > > just another little question from me... But I can't really figure out how > the workspace works... > I want to put to windows in a workspace, how can I do that? Thanks in > advance... Do that: MyWindow = NEW Window(MyWorkspace) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri May 7 20:19:00 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 May 2004 20:19:00 +0200 Subject: [Gambas-user] problem with tabstrip In-Reply-To: <200405061705.40358.ZENODotus@...323...> References: <200405061705.40358.ZENODotus@...323...> Message-ID: <200405072019.00804.gambas@...1...> On Thursday 06 May 2004 17:05, ZENODotus wrote: > Hey there, > > There something weird going on with the tabstrip control... > If I make more than one tabstrip and put a control on one of the tabs, and > then I want to use this control in the code like: > > button1.text = "TEST" > > then I get the error message that button1 is already declared, while > nothing else is in the class... > > What am I doing wrong? I think you are not using the last version of Gambas, but the buggy 0.92. Upgrade as soon as possible, or you will lost things ! Regards, -- Benoit Minisini mailto:gambas at ...1... From pastrano at ...431... Fri May 7 19:53:19 2004 From: pastrano at ...431... (Gianni Piccini) Date: Fri, 7 May 2004 19:53:19 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <200405071111.33147.dimitribellini@...69...> References: <200405061826.04362.dimitribellini@...69...> <1083866675.3520562.409a7e33@...432...> <200405071111.33147.dimitribellini@...69...> Message-ID: <1083952399.1969692.409bcd0f@...432...> On Fri, 7 May 2004 11:11:33 +0200, you wrote: > Dear Gianni I have think the same solution as you say in the last mail. > No other solution is possible? :-) Afaik (my far should be near instead, I'm a newbie) no. From pastrano at ...431... Fri May 7 19:54:33 2004 From: pastrano at ...431... (Gianni Piccini) Date: Fri, 7 May 2004 19:54:33 +0200 Subject: [Gambas-user] Rewrite a line of a File In-Reply-To: <200405071111.33147.dimitribellini@...69...> References: <200405061826.04362.dimitribellini@...69...> <1083866675.3520562.409a7e33@...432...> <200405071111.33147.dimitribellini@...69...> Message-ID: <1083952473.2043939.409bcd59@...432...> On Fri, 7 May 2004 11:11:33 +0200, you wrote: > Dear Gianni > I have think the same solution as you say in the last mail. No other solution > is possible? :-) Spiacente, ma non lo so, anche se credo di no: pensa che se uso Linux da pochi mesi, Gambas l'ho incontrato alla 0.92... comunque posso dire che e' gia' migliore del Visual Basic 1.0 che fu... Ciao From danielcampos at ...282... Fri May 7 23:32:56 2004 From: danielcampos at ...282... (Daniel Campos) Date: Fri, 07 May 2004 23:32:56 +0200 Subject: [Gambas-user] About Activate and Deactive Message-ID: <1083965576.6668.2.camel@...40...> Hello: What is the meaning of "Activate" and "Deactivate" events in window class? Documentation is not very informative in this point: Activate : Raised when the window is activated. I don't understand what is this activation and deactivation... Regards, -- Daniel Campos From gambas at ...1... Fri May 7 23:52:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 May 2004 23:52:07 +0200 Subject: [Gambas-user] About Activate and Deactive In-Reply-To: <1083965576.6668.2.camel@...40...> References: <1083965576.6668.2.camel@...40...> Message-ID: <200405072352.08036.gambas@...1...> On Friday 07 May 2004 23:32, Daniel Campos wrote: > Hello: > > What is the meaning of "Activate" and "Deactivate" events in window > class? > > Documentation is not very informative in this point: > > Activate : > > Raised when the window is activated. > > I don't understand what is this activation and deactivation... > > Regards, A window is activated when one of its child widgets gets the focus, and deactivated when another window is activated. It is a Qt thing, so this may need some test to analyze the exact behaviour of this event :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From rizky at ...225... Sat May 8 04:28:12 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Sat, 08 May 2004 09:28:12 +0700 Subject: [Gambas-user] window focus In-Reply-To: <200404241042.47425.gambas@...1...> References: <6.0.0.22.2.20040424092230.01da1000@...329...> <200404241042.47425.gambas@...1...> Message-ID: <6.0.0.22.2.20040508092725.01dc11a0@...329...> At 15:42 24/04/2004, you wrote: >On Saturday 24 April 2004 05:02, Rizky Tahara Shita wrote: > > i have two forms. > > first is the startup and the second one will show as modal that came when a > > button in the first form clicked. > > in the second form, i have a textbox. but when the second form showed, the > > focus not in that form, since i change the property of "skiptaskbar" in the > > second form to true, so i don't have the cursor in the textbox. this will > > not happen when i set the property to false. > > but, if i focus it to the first form, then this problem should be fixed. it > > just happen only when the first time of the second form appears. > > > > but wait, when i set the property to false, i can minimize the second form, > > so i can click the first form and i have a warning in the console. but the > > program will work just fine... > > > > > > Regards, > > > > > > tahara! > > > >Send me your project so that I can really see what happens. well benoit, i have send my project a few days ago.. so, have you got the solutions ? Regards, tahara! From jscops at ...11... Sat May 8 08:28:43 2004 From: jscops at ...11... (Jack) Date: Sat, 8 May 2004 06:28:43 +0000 Subject: [Gambas-user] again MySQL In-Reply-To: <1263628758@...20...> References: <1263628758@...20...> Message-ID: <200405080628.43758.jscops@...11...> Le Vendredi 7 Mai 2004 11:23, Tim Hanschen a ?crit : > Hi, > > I have again the problem that I cannot connect to my MySQL database. > > On my system (SuSE 9) I have the following packages installed: > > postgresql-libs-7.3.4-45 > mysql-4.0.15-13 > mysql-client-4.0.15-13 > mysql-devel-4.0.15-13 > mysql-shared-4.0.15-9 > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > But when I try to connect to the database I get the following error: > Cannot load class 'Connection': Unable to load class file > > I am using Gambas-0.92 > > I hope somebody can help. > > regards, > - Tim - > Have you enable your gb.db component ? ?~ Jack ~? From gambas at ...1... Sat May 8 10:02:04 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 May 2004 10:02:04 +0200 Subject: [Gambas-user] window focus In-Reply-To: <6.0.0.22.2.20040508092725.01dc11a0@...329...> References: <6.0.0.22.2.20040424092230.01da1000@...329...> <200404241042.47425.gambas@...1...> <6.0.0.22.2.20040508092725.01dc11a0@...329...> Message-ID: <200405081002.04804.gambas@...1...> On Saturday 08 May 2004 04:28, Rizky Tahara Shita wrote: > At 15:42 24/04/2004, you wrote: > >On Saturday 24 April 2004 05:02, Rizky Tahara Shita wrote: > > > i have two forms. > > > first is the startup and the second one will show as modal that came > > > when a button in the first form clicked. > > > in the second form, i have a textbox. but when the second form showed, > > > the focus not in that form, since i change the property of > > > "skiptaskbar" in the second form to true, so i don't have the cursor in > > > the textbox. this will not happen when i set the property to false. > > > but, if i focus it to the first form, then this problem should be > > > fixed. it just happen only when the first time of the second form > > > appears. > > > > > > but wait, when i set the property to false, i can minimize the second > > > form, so i can click the first form and i have a warning in the > > > console. but the program will work just fine... > > > > > > > > > Regards, > > > > > > > > > tahara! > > > >Send me your project so that I can really see what happens. > > well benoit, i have send my project a few days ago.. so, have you got the > solutions ? > I noticed what you described, but I have no solution at the moment. It may be a bug in Qt, or in the KDE window manager. Could you try to see if you get the same problem with Gnome ? Regards, -- Benoit Minisini mailto:gambas at ...1... From karimy at ...27... Sat May 8 13:00:48 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Sat, 08 May 2004 13:00:48 +0200 Subject: [Gambas-user] sprite engine Message-ID: <409CBDE0.8030802@...27...> voici un sprite engine pour cree des jeux avec gambas il y a 2classes une pour le decor et l'autre pour les sprites bonne programations si vous vouler m'envoyer vos creations fait avec mes classes voici mon adresse karimy at ...27... -------------- next part -------------- A non-text attachment was scrubbed... Name: SpriteEngine-0.0.tar.gz Type: application/x-gzip Size: 37887 bytes Desc: not available URL: From jscops at ...11... Sat May 8 20:26:56 2004 From: jscops at ...11... (Jack) Date: Sat, 8 May 2004 18:26:56 +0000 Subject: [Gambas-user] Text too much clear In-Reply-To: <200403061052.48403.gambas@...1...> References: <20040304230335.M45710@...381...> <200403060400.17070.ronstk@...239...> <200403061052.48403.gambas@...1...> Message-ID: <200405081826.56470.jscops@...11...> Bonjour Benoit, Please, can you to make darker the text of a disable Textbox because it is not sufficiently readable when the background is colorful (ex &HB8D4D8&). Thank you very much for what you can to do. ?~ Jack ~? From gambas at ...1... Sat May 8 18:42:35 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 May 2004 18:42:35 +0200 Subject: [Gambas-user] Text too much clear In-Reply-To: <200405081826.56470.jscops@...11...> References: <20040304230335.M45710@...381...> <200403061052.48403.gambas@...1...> <200405081826.56470.jscops@...11...> Message-ID: <200405081842.35873.gambas@...1...> On Saturday 08 May 2004 20:26, Jack wrote: > Bonjour Benoit, > > Please, can you to make darker the text of a disable Textbox because it is > not sufficiently readable when the background is colorful (ex &HB8D4D8&). > Thank you very much for what you can to do. > > ?~ Jack ~? > > I do not decide what the colors of disable controls are. All is decided in the KDE control center. Regards, -- Benoit Minisini mailto:gambas at ...1... From jscops at ...11... Sat May 8 21:46:43 2004 From: jscops at ...11... (Jack) Date: Sat, 8 May 2004 19:46:43 +0000 Subject: [Gambas-user] Text too much clear In-Reply-To: <200405081842.35873.gambas@...1...> References: <20040304230335.M45710@...381...> <200405081826.56470.jscops@...11...> <200405081842.35873.gambas@...1...> Message-ID: <200405081946.43954.jscops@...11...> Le Samedi 8 Mai 2004 16:42, Benoit Minisini a ?crit : > I do not decide what the colors of disable controls are. All is decided > in the KDE control center. > > Regards, It's pity. Too bad, i'd wait for. Thank's. ?~ Jack ~? From vbtricks at ...451... Sat May 8 20:00:38 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Sat, 08 May 2004 20:00:38 +0200 Subject: [Gambas-user] How to define userdefined datatypes Message-ID: <409D2046.6060507@...451...> Is there a function in Gambas for defining my own datatypes (based on standard datatypes) like in VB with the Type operator? How to define them? Stefan ___________________________________________________________________________________ Schreibsuechtige gesucht! http://my-mail.ch/?redirect=9902 Tigra TwinTop Game! Gewinnen Sie eine Staedtereise! http://my-mail.ch/?redirect=1745 From vbtricks at ...451... Sat May 8 20:04:49 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Sat, 08 May 2004 20:04:49 +0200 Subject: [Gambas-user] Icon in the KDE-Systray Message-ID: <409D2141.1030401@...451...> Are there already any solutions for adding an icon to the "systray" (<- Windows) of the KDE-Bar? If not, this might be a great idea for a new component in a new version ;-) Stefan ___________________________________________________________________________________ Schlappe uebertragungsgrenze? http://my-mail.ch/?redirect=9904 Tigra TwinTop Game! Gewinnen Sie eine Staedtereise! http://my-mail.ch/?redirect=1745 From Tim.Hanschen at ...20... Sat May 8 21:35:03 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Sat, 08 May 2004 21:35:03 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1266365644@...20...> gambas-user at lists.sourceforge.net schrieb am 08.05.04 06:33:54: Le Vendredi 7 Mai 2004 11:23, Tim Hanschen a ?crit : > Hi, > > I have again the problem that I cannot connect to my MySQL database. > > On my system (SuSE 9) I have the following packages installed: > > postgresql-libs-7.3.4-45 > mysql-4.0.15-13 > mysql-client-4.0.15-13 > mysql-devel-4.0.15-13 > mysql-shared-4.0.15-9 > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > But when I try to connect to the database I get the following error: > Cannot load class 'Connection': Unable to load class file > > I am using Gambas-0.92 > > I hope somebody can help. > > regards, > - Tim - > Have you enable your gb.db component ? ?~ Jack ~? what is the gb.db component? Is it part of GAMBAS or part of linux? ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From?dnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 From Tim.Hanschen at ...20... Sat May 8 21:36:42 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Sat, 08 May 2004 21:36:42 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1266367381@...20...> Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... - Tim - gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: Tim, Are you using the gambas-database-manager to connect to mysql or have you created your own project? Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Friday, May 07, 2004 12:23 PM Subject: [Gambas-user] again MySQL > Hi, > > I have again the problem that I cannot connect to my MySQL database. > > On my system (SuSE 9) I have the following packages installed: > > postgresql-libs-7.3.4-45 > mysql-4.0.15-13 > mysql-client-4.0.15-13 > mysql-devel-4.0.15-13 > mysql-shared-4.0.15-9 > > GAMBAS starts without any problems. During installation it said mysql-enable=yes.... everything seems to be ok. > > But when I try to connect to the database I get the following error: > Cannot load class 'Connection': Unable to load class file > > I am using Gambas-0.92 > > I hope somebody can help. > > regards, > - Tim - > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > 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 Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 From jscops at ...11... Sun May 9 11:33:16 2004 From: jscops at ...11... (Jack) Date: Sun, 9 May 2004 09:33:16 +0000 Subject: [Gambas-user] again MySQL In-Reply-To: <1266365644@...20...> References: <1266365644@...20...> Message-ID: <200405090933.16565.jscops@...11...> Le Samedi 8 Mai 2004 19:35, Tim Hanschen a ?crit : > > I hope somebody can help. > > > > regards, > > - Tim - > > Have you enable your gb.db component ? > > ?~ Jack ~? > > > what is the gb.db component? Is it part of GAMBAS or part of linux? When you open your project in Gambas, you can make a right click on the project name ( with mascotte ) and click on "propriete". Here, you have all Gambas components and you must have the gb.db tick off. ?~ Jack ~? From vbtricks at ...451... Sun May 9 11:20:25 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Sun, 09 May 2004 11:20:25 +0200 Subject: [Gambas-user] Declaring several variables in one line Message-ID: <409DF7D9.80306@...451...> For declaring variables using the Dim-Operator, I seem to need one line per variable: Dim a as string Dim b as string That costs a lot of lines (makes the source more complex in my eyes). Is there a way to declare multiple variables in one line, I've just overlooked, or is this not implemented (yet)? Stefan PS: if this is still to be implemented, what about the method of Delphi? Delpi: var i, n, z: integer; Gambas (perhaps): DIM i, n, z AS Integer (Gambas does not have to adopt all the crap of VB) _______________________________________________________________________________________________ Die einen haben es, die anderen werden es! http://my-mail.ch/?redirect=9905 Bei uns finden Sie trendige Geschenkideen und Wohnaccessoires! http://my-mail.ch/?redirect=1610 From daniel.campos at ...338... Sun May 9 11:29:46 2004 From: daniel.campos at ...338... (Daniel) Date: Sun, 09 May 2004 11:29:46 +0200 Subject: [Gambas-user] Declaring several variables in one line In-Reply-To: <409DF7D9.80306@...451...> References: <409DF7D9.80306@...451...> Message-ID: <1084094986.5194.0.camel@...40...> El dom, 09-05-2004 a las 11:20, VBTricks.de.vu Webmaster escribi?: > For declaring variables using the Dim-Operator, I seem to need one line > per variable: > > Dim a as string > Dim b as string > > That costs a lot of lines (makes the source more complex in my eyes). Is > there a way to declare multiple variables in one line, I've just > overlooked, or is this not implemented (yet)? > > Stefan > > PS: if this is still to be implemented, what about the method of Delphi? > > Delpi: > var i, n, z: integer; > > Gambas (perhaps): > DIM i, n, z AS Integer This question has been sent to list before, Benoit said he will implement that stuff in the future Regards, Daniel Campos > > (Gambas does not have to adopt all the crap of VB) > _______________________________________________________________________________________________ > Die einen haben es, die anderen werden es! http://my-mail.ch/?redirect=9905 > Bei uns finden Sie trendige Geschenkideen und Wohnaccessoires! http://my-mail.ch/?redirect=1610 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nyarnon at ...455... Sat May 8 16:11:43 2004 From: nyarnon at ...455... (nyarnon) Date: Sat, 8 May 2004 15:11:43 +0100 Subject: [Gambas-user] Bugreport: control content destroyed. Message-ID: <20040508141143.GA9155@...455...> Just an observation, query for confirmation. I use a form with a textbox control to retrieve userinput. I made form controls public. On another form following routine is used: 'calling form to input data frmInputReq.ShowModal 'Now I test if a directory exists. If it does not exist it is 'created. After END IF the content of frmInputReq.TextBox1.Text 'remains unaltered. 'BUT! If the dir exists a warningbox is displayed and after 'END IF frmInputReq.TextBox1.Text is corrupt. 'Is Message.Warning corrupting stack? IF IsDir(frmMain.strRootdir &/ frmInputReq.TextBox1.Text) THEN Message.Warning("a warning that dir does not exist") ELSE MKDIR frmMain.strRootdir &/ frmInputReq.TextBox1.Text END IF -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From nyarnon at ...455... Fri May 7 23:31:19 2004 From: nyarnon at ...455... (nyarnon) Date: Fri, 7 May 2004 22:31:19 +0100 Subject: [Gambas-user] Bennoit where is the fun.... Message-ID: <20040507213119.GA31969@...455...> Started out on Timex z80 basic, then came zx81 and not much later spectrum. Then on my first 8086 I was blessed with the marvelous GW-Basic. Thank god soon can Quick Basic in flavours and not much later I thought Visual Basic was state of the art. When I stepped over to Mandrake Linux last year I was lost. Started programming in Bash, see sig Untill a search with SourceForge revealed Gambas. It looked weird from name and documentation, yet Hbasic would not compile, XBasic is a mess (I want forward not back) so I gave it a try. Considering the years I program Basic now, I hope you understand what I say if I say: This is to damn easy, where's the fun? Thank you for Gambas, I hope to produce some nice programs with it. -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From nyarnon at ...455... Sat May 8 10:10:06 2004 From: nyarnon at ...455... (nyarnon) Date: Sat, 8 May 2004 09:10:06 +0100 Subject: [Gambas-user] textarea.selection Message-ID: <20040508081006.GA686@...455...> Can someone hand me an example of how to use the textarea.selection object. To elaborate: I have a textarea with text. I select some text. How do I access the selected text. -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From gambas at ...1... Sun May 9 22:23:34 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 9 May 2004 22:23:34 +0200 Subject: [Gambas-user] textarea.selection In-Reply-To: <20040508081006.GA686@...455...> References: <20040508081006.GA686@...455...> Message-ID: <200405092223.35159.gambas@...1...> On Saturday 08 May 2004 10:10, nyarnon wrote: > Can someone hand me an example of how to use the textarea.selection > object. To elaborate: > > I have a textarea with text. I select some text. How do I access the > selected text. SelectedText = MyTextArea.Selection.Text I'm not satisfy with the current selection interface, and so I may change it before 1.0. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 9 22:24:54 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 9 May 2004 22:24:54 +0200 Subject: [Gambas-user] Bugreport: control content destroyed. In-Reply-To: <20040508141143.GA9155@...455...> References: <20040508141143.GA9155@...455...> Message-ID: <200405092224.54102.gambas@...1...> On Saturday 08 May 2004 16:11, nyarnon wrote: > Just an observation, query for confirmation. > > I use a form with a textbox control to retrieve userinput. > I made form controls public. > > On another form following routine is used: > > 'calling form to input data > frmInputReq.ShowModal > > 'Now I test if a directory exists. If it does not exist it is > 'created. After END IF the content of frmInputReq.TextBox1.Text > 'remains unaltered. > 'BUT! If the dir exists a warningbox is displayed and after > 'END IF frmInputReq.TextBox1.Text is corrupt. > 'Is Message.Warning corrupting stack? > > IF IsDir(frmMain.strRootdir &/ frmInputReq.TextBox1.Text) THEN > Message.Warning("a warning that dir does not exist") > ELSE > MKDIR frmMain.strRootdir &/ frmInputReq.TextBox1.Text > END IF Could you send me a complete project so that I trace the interpreter to see what happens ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 9 22:33:28 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 9 May 2004 22:33:28 +0200 Subject: [Gambas-user] A Mid Summer Night's Dream Message-ID: <200405092233.28346.gambas@...1...> Hi everybody, If you want to know why I didn't release gambas 0.93 yet, here is the main reason :-) --- ADVERTISEMENT (English version) --- If you want to show a beautiful play, and eventually meet me :-), come to Paris between 23 Jun 2004 and 11 Jul 2004. I will be a musician and a fairy in A Mid Summer Night's Dream from William Shakespeare, produced by Aurore Guitry. We (the 20 actors and musicians) will play in Les Buttes Chaumont, a big garden in Paris, every evening at 7:30 PM, every day but Monday and raining days. The entrance is free, you will give what you want at the end of the play. --- ADVERTISEMENT (French version) --- Si vous voulez voir une belle pi?ce, et si vous voulez ?ventuellement me rencontrer, venez ? Paris entre le 23 Juin et le 11 Juillet 2004. Je jouerai de la fl?te traversi?re, ainsi qu'une f?e dans "Le songe d'une nuit d'?t?" de William Shakespeare, pi?ce mise en sc?ne par Aurore Guitry. Nous (les 20 com?diens et musiciens) jouerons dans le jardin des Buttes Chaumont, tous les soirs ? partir de 19h30, tous les jours sauf le Lundi et les jours de pluie. L'entr?e est libre, vous donnez ce que voulez ? la fin de la pi?ce. -------------------------------------- -- Benoit Minisini mailto:gambas at ...1... From g.brandl at ...18... Sun May 9 22:36:01 2004 From: g.brandl at ...18... (Georg Brandl) Date: Sun, 09 May 2004 22:36:01 +0200 Subject: [Gambas-user] A Mid Summer Night's Dream In-Reply-To: <200405092233.28346.gambas@...1...> References: <200405092233.28346.gambas@...1...> Message-ID: <409E9631.4010104@...18...> Benoit Minisini wrote: > Hi everybody, > > If you want to know why I didn't release gambas 0.93 yet, here is the main > reason :-) > > --- ADVERTISEMENT (English version) --- > > If you want to show a beautiful play, and eventually meet me :-), come to > Paris between 23 Jun 2004 and 11 Jul 2004. I will be a musician and a fairy > in A Mid Summer Night's Dream from William Shakespeare, produced by Aurore > Guitry. We (the 20 actors and musicians) will play in Les Buttes Chaumont, a > big garden in Paris, every evening at 7:30 PM, every day but Monday and > raining days. The entrance is free, you will give what you want at the end of > the play. You don't know how much I would like watching you, but the ~1000 km between Munich and Paris may be a bit of an obstacle, so please excuse me for not coming. ;) Georg From terry at ...417... Sun May 9 22:46:30 2004 From: terry at ...417... (Terry Blunt) Date: Sun, 9 May 2004 21:46:30 +0100 Subject: [Gambas-user] A Mid Summer Night's Dream In-Reply-To: <200405092233.28346.gambas@...1...> References: <200405092233.28346.gambas@...1...> Message-ID: Benoit Minisini wrote: > Hi everybody, > > If you want to know why I didn't release gambas 0.93 yet, here is the > main reason :-) > > --- ADVERTISEMENT (English version) --- > > If you want to show a beautiful play, and eventually meet me :-), come > to Paris between 23 Jun 2004 and 11 Jul 2004. I will be a musician and > a fairy in A Mid Summer Night's Dream from William Shakespeare, > produced by Aurore Guitry. We (the 20 actors and musicians) will play > in Les Buttes Chaumont, a big garden in Paris, every evening at 7:30 > PM, every day but Monday and raining days. The entrance is free, you > will give what you want at the end of the play. > > --- ADVERTISEMENT (French version) --- > > Si vous voulez voir une belle pi?ce, et si vous voulez ?ventuellement > me rencontrer, venez ? Paris entre le 23 Juin et le 11 Juillet 2004. > Je jouerai de la fl?te traversi?re, ainsi qu'une f?e dans "Le songe > d'une nuit d'?t?" de William Shakespeare, pi?ce mise en sc?ne par > Aurore Guitry. Nous (les 20 com?diens et musiciens) jouerons dans le > jardin des Buttes Chaumont, tous les soirs ? partir de 19h30, tous les > jours sauf le Lundi et les jours de pluie. L'entr?e est libre, vous > donnez ce que voulez ? la fin de la pi?ce. > > -------------------------------------- Excellent! Never let it be said that programmers are boring single-minded geeks :-) -- Terry Blunt Actually I'm passionately anti-extremist. http://www.langri.demon.co.uk From sourceforge-raindog2 at ...94... Mon May 10 02:12:41 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 9 May 2004 20:12:41 -0400 Subject: [Gambas-user] Icon in the KDE-Systray In-Reply-To: <409D2141.1030401@...451...> References: <409D2141.1030401@...451...> Message-ID: <200405092012.41079.sourceforge-raindog2@...94...> On Saturday 08 May 2004 14:04, VBTricks.de.vu Webmaster wrote: > Are there already any solutions for adding an icon to the > "systray" (<- Windows) of the KDE-Bar? If not, this might be a > great idea for a new component in a new version ;-) That would be an extension to the gb.qt.kde component, and it shouldn't be all that tough based on my own C++ experiences with kicker applets and systray icons, but I don't know if the Gambas IDE could handle designing a control as a normal window and having it be in the systray instead at runtime. Rob From gambas at ...1... Mon May 10 22:58:31 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 May 2004 22:58:31 +0200 Subject: [Gambas-user] Where I can ind the last Filter from Dialog In-Reply-To: <200405022312.49126.Karl.Reinl@...9...> References: <200405022312.49126.Karl.Reinl@...9...> Message-ID: <200405102258.31889.gambas@...1...> On Sunday 02 May 2004 23:12, Charlie Reinl wrote: > Salut, > > if my Dialog.Filter = [ (as XML") & " (*.xml)",("as doc") & " (*.doc)",("as > pdf") & " (*.pdf)", ("All files") & " (*.*)" ] > > How can I find out which Extention was choosen at Dialog.SaveFile , when > it commes back? > To add it to Dialog.Path when he was was typed. > > Amicalement > Charlie > > This is technically possible in QT, but I'm not sure in GTK+. I think I will make in the future "dialog controls", i.e. a control that will allow you to put a file selector in a form, with more control on it than the standard dialog. This way, you will be able to do what you want. But this will be QT-specific! Regards, -- Benoit Minisini mailto:gambas at ...1... From Tim.Hanschen at ...20... Tue May 11 09:23:45 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 09:23:45 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1271058632@...20...> Hi again, it still does not work.... which rpms do I have to install? Is there something missing? regards, - Tim - gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... - Tim - gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: Tim, Are you using the gambas-database-manager to connect to mysql or have you created your own project? Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Friday, May 07, 2004 12:23 PM Subject: [Gambas-user] again MySQL > Hi, > > I have again the problem that I cannot connect to my MySQL database. > > On my system (SuSE 9) I have the following packages installed: > > postgresql-libs-7.3.4-45 > mysql-4.0.15-13 > mysql-client-4.0.15-13 > mysql-devel-4.0.15-13 > mysql-shared-4.0.15-9 > > GAMBAS starts without any problems. During installation it said mysql-enable=yes.... everything seems to be ok. > > But when I try to connect to the database I get the following error: > Cannot load class 'Connection': Unable to load class file > > I am using Gambas-0.92 > > I hope somebody can help. > > regards, > - Tim - > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > 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 Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 From nigel at ...38... Tue May 11 11:01:26 2004 From: nigel at ...38... (Nigel Gerrard) Date: Tue, 11 May 2004 10:01:26 +0100 Subject: [Gambas-user] again MySQL References: <1271058632@...20...> Message-ID: <000a01c43736$8af23fb0$aa9e4d51@...360...> Tim, Check that the MySql component has infact been compiled: look in /opt/gambas/lib for lib.gb.db.mysql.*. There should be two files and two links. If these are not present then the component has not been compiled. This would normally throw an error in database manager similiar to 'Cannot connect ot database. Cannot find driver for database: mysql' There should also be the parent db component : lib.gb.db.la, lib.gb.db.so.0.0.0 and 2 link files. In the project folder check that there is an entry 'Library=gb.db' in .project. (This shows that that the component is enabled and would normally be set through the IDE propertiesas per another users email.) Not having this within the database manage should show up as an error : Cannot load class 'Connection':Unable to load class file AT: Cserver.?.0. Unfortunately I do not have Suse but the packages you listed should cover everything, but from your error message the latter problem seems to fit most snuggley. Let me know how you are get on...we will eventually get there. Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Tuesday, May 11, 2004 8:23 AM Subject: Re: [Gambas-user] again MySQL > Hi again, > > it still does not work.... which rpms do I have to install? Is there something missing? > > regards, > - Tim - > > > > > gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: > > Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... > > - Tim - > > > > gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: > > Tim, > > Are you using the gambas-database-manager to connect to mysql or have you > created your own project? > > Nigel > > ----- Original Message ----- > From: "Tim Hanschen" > To: > Sent: Friday, May 07, 2004 12:23 PM > Subject: [Gambas-user] again MySQL > > > > Hi, > > > > I have again the problem that I cannot connect to my MySQL database. > > > > On my system (SuSE 9) I have the following packages installed: > > > > postgresql-libs-7.3.4-45 > > mysql-4.0.15-13 > > mysql-client-4.0.15-13 > > mysql-devel-4.0.15-13 > > mysql-shared-4.0.15-9 > > > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > > > But when I try to connect to the database I get the following error: > > Cannot load class 'Connection': Unable to load class file > > > > I am using Gambas-0.92 > > > > I hope somebody can help. > > > > regards, > > - Tim - > > > > ____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > 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 Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! > Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Tim.Hanschen at ...20... Tue May 11 11:09:09 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 11:09:09 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1271228057@...20...> Hi Nigel, well, all libraries are there, but in the .project file I found Library=gb.qt !!! I changed that to Library=gb.db, but this did not help. I think I should recompile gambas with something that is missing at the moment.... any ideas? - Tim - gambas-user at lists.sourceforge.net schrieb am 11.05.04 10:58:41: Tim, Check that the MySql component has infact been compiled: look in /opt/gambas/lib for lib.gb.db.mysql.*. There should be two files and two links. If these are not present then the component has not been compiled. This would normally throw an error in database manager similiar to 'Cannot connect ot database. Cannot find driver for database: mysql' There should also be the parent db component : lib.gb.db.la, lib.gb.db.so.0.0.0 and 2 link files. In the project folder check that there is an entry 'Library=gb.db' in .project. (This shows that that the component is enabled and would normally be set through the IDE propertiesas per another users email.) Not having this within the database manage should show up as an error : Cannot load class 'Connection':Unable to load class file AT: Cserver.?.0. Unfortunately I do not have Suse but the packages you listed should cover everything, but from your error message the latter problem seems to fit most snuggley. Let me know how you are get on...we will eventually get there. Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Tuesday, May 11, 2004 8:23 AM Subject: Re: [Gambas-user] again MySQL > Hi again, > > it still does not work.... which rpms do I have to install? Is there something missing? > > regards, > - Tim - > > > > > gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: > > Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... > > - Tim - > > > > gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: > > Tim, > > Are you using the gambas-database-manager to connect to mysql or have you > created your own project? > > Nigel > > ----- Original Message ----- > From: "Tim Hanschen" > To: > Sent: Friday, May 07, 2004 12:23 PM > Subject: [Gambas-user] again MySQL > > > > Hi, > > > > I have again the problem that I cannot connect to my MySQL database. > > > > On my system (SuSE 9) I have the following packages installed: > > > > postgresql-libs-7.3.4-45 > > mysql-4.0.15-13 > > mysql-client-4.0.15-13 > > mysql-devel-4.0.15-13 > > mysql-shared-4.0.15-9 > > > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > > > But when I try to connect to the database I get the following error: > > Cannot load class 'Connection': Unable to load class file > > > > I am using Gambas-0.92 > > > > I hope somebody can help. > > > > regards, > > - Tim - > > > > ____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > 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 Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! > Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > 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 Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 From Tim.Hanschen at ...20... Tue May 11 11:23:32 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 11:23:32 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1271251433@...20...> I just tried the Gambas Database Manager and I can connect to my database, but in my project it still does not work... gambas-user at lists.sourceforge.net schrieb am 11.05.04 11:12:03: Hi Nigel, well, all libraries are there, but in the .project file I found Library=gb.qt !!! I changed that to Library=gb.db, but this did not help. I think I should recompile gambas with something that is missing at the moment.... any ideas? - Tim - gambas-user at lists.sourceforge.net schrieb am 11.05.04 10:58:41: Tim, Check that the MySql component has infact been compiled: look in /opt/gambas/lib for lib.gb.db.mysql.*. There should be two files and two links. If these are not present then the component has not been compiled. This would normally throw an error in database manager similiar to 'Cannot connect ot database. Cannot find driver for database: mysql' There should also be the parent db component : lib.gb.db.la, lib.gb.db.so.0.0.0 and 2 link files. In the project folder check that there is an entry 'Library=gb.db' in .project. (This shows that that the component is enabled and would normally be set through the IDE propertiesas per another users email.) Not having this within the database manage should show up as an error : Cannot load class 'Connection':Unable to load class file AT: Cserver.?.0. Unfortunately I do not have Suse but the packages you listed should cover everything, but from your error message the latter problem seems to fit most snuggley. Let me know how you are get on...we will eventually get there. Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Tuesday, May 11, 2004 8:23 AM Subject: Re: [Gambas-user] again MySQL > Hi again, > > it still does not work.... which rpms do I have to install? Is there something missing? > > regards, > - Tim - > > > > > gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: > > Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... > > - Tim - > > > > gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: > > Tim, > > Are you using the gambas-database-manager to connect to mysql or have you > created your own project? > > Nigel > > ----- Original Message ----- > From: "Tim Hanschen" > To: > Sent: Friday, May 07, 2004 12:23 PM > Subject: [Gambas-user] again MySQL > > > > Hi, > > > > I have again the problem that I cannot connect to my MySQL database. > > > > On my system (SuSE 9) I have the following packages installed: > > > > postgresql-libs-7.3.4-45 > > mysql-4.0.15-13 > > mysql-client-4.0.15-13 > > mysql-devel-4.0.15-13 > > mysql-shared-4.0.15-9 > > > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > > > But when I try to connect to the database I get the following error: > > Cannot load class 'Connection': Unable to load class file > > > > I am using Gambas-0.92 > > > > I hope somebody can help. > > > > regards, > > - Tim - > > > > ____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > 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 Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! > Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > 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 Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 From Tim.Hanschen at ...20... Tue May 11 11:36:21 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 11:36:21 +0200 Subject: [Gambas-user] again MySQL Message-ID: <1271272397@...20...> BINGO! I finally founf my error.... I looked into the properties of my project and gb.db was not marked.. :-) shame on me... - Tim - gambas-user at lists.sourceforge.net schrieb am 11.05.04 11:12:03: Hi Nigel, well, all libraries are there, but in the .project file I found Library=gb.qt !!! I changed that to Library=gb.db, but this did not help. I think I should recompile gambas with something that is missing at the moment.... any ideas? - Tim - gambas-user at lists.sourceforge.net schrieb am 11.05.04 10:58:41: Tim, Check that the MySql component has infact been compiled: look in /opt/gambas/lib for lib.gb.db.mysql.*. There should be two files and two links. If these are not present then the component has not been compiled. This would normally throw an error in database manager similiar to 'Cannot connect ot database. Cannot find driver for database: mysql' There should also be the parent db component : lib.gb.db.la, lib.gb.db.so.0.0.0 and 2 link files. In the project folder check that there is an entry 'Library=gb.db' in .project. (This shows that that the component is enabled and would normally be set through the IDE propertiesas per another users email.) Not having this within the database manage should show up as an error : Cannot load class 'Connection':Unable to load class file AT: Cserver.?.0. Unfortunately I do not have Suse but the packages you listed should cover everything, but from your error message the latter problem seems to fit most snuggley. Let me know how you are get on...we will eventually get there. Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Tuesday, May 11, 2004 8:23 AM Subject: Re: [Gambas-user] again MySQL > Hi again, > > it still does not work.... which rpms do I have to install? Is there something missing? > > regards, > - Tim - > > > > > gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: > > Well, I used both.... I mean, I tried the gambas.database-manager and I tried my own project. I mean a database that I have design with mysql.... > > - Tim - > > > > gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: > > Tim, > > Are you using the gambas-database-manager to connect to mysql or have you > created your own project? > > Nigel > > ----- Original Message ----- > From: "Tim Hanschen" > To: > Sent: Friday, May 07, 2004 12:23 PM > Subject: [Gambas-user] again MySQL > > > > Hi, > > > > I have again the problem that I cannot connect to my MySQL database. > > > > On my system (SuSE 9) I have the following packages installed: > > > > postgresql-libs-7.3.4-45 > > mysql-4.0.15-13 > > mysql-client-4.0.15-13 > > mysql-devel-4.0.15-13 > > mysql-shared-4.0.15-9 > > > > GAMBAS starts without any problems. During installation it said > mysql-enable=yes.... everything seems to be ok. > > > > But when I try to connect to the database I get the following error: > > Cannot load class 'Connection': Unable to load class file > > > > I am using Gambas-0.92 > > > > I hope somebody can help. > > > > regards, > > - Tim - > > > > ____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > 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 Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! > Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ____________________________________________________________________ > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > 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 Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 From Tim.Hanschen at ...20... Tue May 11 15:23:37 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 15:23:37 +0200 Subject: [Gambas-user] formatted output out of sql Message-ID: <1271652841@...20...> Hi, I do an select (SELECT CONCAT(album,' ',singer,' ',titel) from mp3 order by album) on a mysql database.... so far so good. the result looks like that: first_album first_singer first_title second_album second_singer second_title I want to format the output so that it looks a bit better: first_album first_singer first_title second_album second_singer second_title Can I edit the select-command so that the result is formatted? regards, - Tim - ____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 From sourceforge-raindog2 at ...94... Tue May 11 15:40:23 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 11 May 2004 09:40:23 -0400 Subject: [Gambas-user] formatted output out of sql In-Reply-To: <1271652841@...20...> References: <1271652841@...20...> Message-ID: <200405110940.23118.sourceforge-raindog2@...94...> On Tuesday 11 May 2004 09:23, Tim Hanschen wrote: > I want to format the output so that it looks a bit better: > first_album first_singer first_title > second_album second_singer second_title > Can I edit the select-command so that the result is formatted? I'm sure there's a very long expression you could put in your select to make MySQL pad the names out to your liking, but why on earth wouldn't you keep the fields separate and concatenate them in Gambas? There's a reason people say "SQL" stands for "Scarcely Qualifies as a Language". :) Rob From vdbergh at ...456... Tue May 11 15:53:31 2004 From: vdbergh at ...456... (Michel Van den Bergh) Date: Tue, 11 May 2004 15:53:31 +0200 Subject: [Gambas-user] Drawing. Message-ID: <40A0DADB.2020905@...456...> Hello, I was starting with Gamba 0.92a on Mandrake 10.0 Community. But no matter what I do, I don't succeed in drawing on a DrawingArea. The examples from the Wiki don't do anything. Drawing on the form itself works fine though. Could somebody post a code snippet that works for them (for G. 0.92a)? Regards, Michel From sourceforge-raindog2 at ...94... Tue May 11 16:08:45 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 11 May 2004 10:08:45 -0400 Subject: [Gambas-user] Drawing. In-Reply-To: <40A0DADB.2020905@...456...> References: <40A0DADB.2020905@...456...> Message-ID: <200405111008.45685.sourceforge-raindog2@...94...> On Tuesday 11 May 2004 09:53, Michel Van den Bergh wrote: > I was starting with Gamba 0.92a on Mandrake 10.0 Community. > But no matter what I do, I don't succeed in drawing on a > DrawingArea. The examples from the Wiki don't do anything. > Drawing on the form itself works fine though. > Could somebody post a code snippet that works for them (for G. > 0.92a)? Sure, I just started a little something this weekend. (It draws in little rectangles because I mean for it to eventually be a playfield generator for the old Atari 2600 system. :) ) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: PlayfieldMaker-0.0.tar.gz Type: application/x-tgz Size: 695 bytes Desc: not available URL: From nigel at ...38... Tue May 11 18:05:20 2004 From: nigel at ...38... (Nigel Gerrard) Date: Tue, 11 May 2004 17:05:20 +0100 Subject: [Gambas-user] again MySQL References: <1271272397@...20...> Message-ID: <002601c43771$c3dd0310$030a0a0a@...360...> Tim, Library=gb.qt enables the gui and should also be present in database manager. The .project file should have an entry for each component it usese.g. Library=gb.qt Library=gb.db .... and so on...one line per component. But hey, you've now solved your problem. Nigel ----- Original Message ----- From: "Tim Hanschen" To: Sent: Tuesday, May 11, 2004 10:36 AM Subject: Re: [Gambas-user] again MySQL > BINGO! I finally founf my error.... I looked into the properties of my project and gb.db was not marked.. :-) > > shame on me... > > - Tim - > > > > gambas-user at lists.sourceforge.net schrieb am 11.05.04 11:12:03: > > Hi Nigel, > > well, all libraries are there, but in the .project file I found Library=gb.qt !!! I changed that to Library=gb.db, but this did not help. > > I think I should recompile gambas with something that is missing at the moment.... any ideas? > > - Tim - > > > > > gambas-user at lists.sourceforge.net schrieb am 11.05.04 10:58:41: > > Tim, > > Check that the MySql component has infact been compiled: look in > /opt/gambas/lib for lib.gb.db.mysql.*. There should be two files and two > links. If these are not present then the component has not been compiled. > This would normally throw an error in database manager similiar to 'Cannot > connect ot database. Cannot find driver for database: mysql' > > There should also be the parent db component : lib.gb.db.la, > lib.gb.db.so.0.0.0 and 2 link files. > > In the project folder check that there is an entry 'Library=gb.db' in > ..project. (This shows that that the component is enabled and would normally > be set through the IDE propertiesas per another users email.) Not having > this within the database manage should show up as an error : Cannot load > class 'Connection':Unable to load class file AT: Cserver.?.0. > > Unfortunately I do not have Suse but the packages you listed should cover > everything, but from your error message the latter problem seems to fit most > snuggley. > > Let me know how you are get on...we will eventually get there. > > Nigel > > ----- Original Message ----- > From: "Tim Hanschen" > To: > Sent: Tuesday, May 11, 2004 8:23 AM > Subject: Re: [Gambas-user] again MySQL > > > > Hi again, > > > > it still does not work.... which rpms do I have to install? Is there > something missing? > > > > regards, > > - Tim - > > > > > > > > > > gambas-user at lists.sourceforge.net schrieb am 08.05.04 21:37:25: > > > > Well, I used both.... I mean, I tried the gambas.database-manager and I > tried my own project. I mean a database that I have design with mysql.... > > > > - Tim - > > > > > > > > gambas-user at lists.sourceforge.net schrieb am 07.05.04 18:29:21: > > > > Tim, > > > > Are you using the gambas-database-manager to connect to mysql or have you > > created your own project? > > > > Nigel > > > > ----- Original Message ----- > > From: "Tim Hanschen" > > To: > > Sent: Friday, May 07, 2004 12:23 PM > > Subject: [Gambas-user] again MySQL > > > > > > > Hi, > > > > > > I have again the problem that I cannot connect to my MySQL database. > > > > > > On my system (SuSE 9) I have the following packages installed: > > > > > > postgresql-libs-7.3.4-45 > > > mysql-4.0.15-13 > > > mysql-client-4.0.15-13 > > > mysql-devel-4.0.15-13 > > > mysql-shared-4.0.15-9 > > > > > > GAMBAS starts without any problems. During installation it said > > mysql-enable=yes.... everything seems to be ok. > > > > > > But when I try to connect to the database I get the following error: > > > Cannot load class 'Connection': Unable to load class file > > > > > > I am using Gambas-0.92 > > > > > > I hope somebody can help. > > > > > > regards, > > > - Tim - > > > > > > ____________________________________________________________________ > > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by Sleepycat Software > > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > > deliver > > > higher performing products faster, at low TCO. > > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > > _______________________________________________ > > > 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 Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > _____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! > > Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ____________________________________________________________________ > > Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! > > Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > > higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > 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 Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _______________________________________________________________________ > .... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail > ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > _______________________________________________________________________ > .... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail > ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Tim.Hanschen at ...20... Tue May 11 19:31:57 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 11 May 2004 19:31:57 +0200 Subject: [Gambas-user] formatted output out of sql Message-ID: <1272157802@...20...> Well, I don't want to use SQL if it is not necessary... if you have an other idea let me know. gambas-user at lists.sourceforge.net schrieb am 11.05.04 15:43:31: On Tuesday 11 May 2004 09:23, Tim Hanschen wrote: > I want to format the output so that it looks a bit better: > first_album first_singer first_title > second_album second_singer second_title > Can I edit the select-command so that the result is formatted? I'm sure there's a very long expression you could put in your select to make MySQL pad the names out to your liking, but why on earth wouldn't you keep the fields separate and concatenate them in Gambas? There's a reason people say "SQL" stands for "Scarcely Qualifies as a Language". :) Rob ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Sober.A-F! Kostenfrei fuer FreeMail Nutzer. http://f.web.de/?mc=021158 From sourceforge-raindog2 at ...94... Tue May 11 19:45:08 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 11 May 2004 13:45:08 -0400 Subject: [Gambas-user] formatted output out of sql In-Reply-To: <1272157802@...20...> References: <1272157802@...20...> Message-ID: <200405111345.08080.sourceforge-raindog2@...94...> On Tuesday 11 May 2004 13:31, Tim Hanschen wrote: > Well, I don't want to use SQL if it is not necessary... if you > have an other idea let me know. If I were producing fixed-length output, which is what I assume you were trying to do, I would do something like function pad(instring as String, maxlen as Integer) as String return left(instring & string(maxlen, " "), maxlen) end ... print pad(rec["lastname"], 40) & pad(rec["firstname"], 40) You could do the same thing with right justification by putting the spaces in front of instring and using right instead of left. Rob From dimitribellini at ...69... Wed May 12 12:15:19 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Wed, 12 May 2004 12:15:19 +0200 Subject: [Gambas-user] WebBrowser Error Message-ID: <200405121215.20129.dimitribellini@...69...> Dear i have watch to DataReport Example to see how can i print something but using this line of code on my Gambas-0.92a return an error: ----------- hfprev = NEW FPreview hfprev.WebBrowser1.Path = flname ' This line generate an error hfprev.showmodal ----------- Error Box :" Unknow symbol 'WebBrowser1' in class 'FPreview' ---- But if a force in the property gui of the WebBrowser Works.. Can someone have a tip :-) Thanks in advance Dimitri From danielcampos at ...282... Wed May 12 13:03:54 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Wed, 12 May 2004 13:03:54 CEST Subject: [Gambas-user] WebBrowser Error Message-ID: Did you check the option 'Form controls are public' in the project properties? If not, you won't be able to access to a control from another class... Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From dimitribellini at ...69... Wed May 12 14:09:07 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Wed, 12 May 2004 14:09:07 +0200 Subject: [Gambas-user] WebBrowser Error In-Reply-To: References: Message-ID: <200405121409.07513.dimitribellini@...69...> Dear Daniel Ops... I forgot it but after i change it from Project-> Properties-> Advanced options-> "Form controls are public" I have the same error. I must define "Form controls are public" when i create the Form? thanks in advance Dimitri On Wednesday 12 May 2004 06:03 pm, danielcampos at ...282... wrote: > Did you check the option 'Form controls are public' in the project > properties? If not, you won't be able to access to a control from another > class... > > Regards, > > Daniel Campos > > ------------------------------------------------------------- > NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, > Toolbar... Web/Wap : www.netcourrier.com > T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) > Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed May 12 20:28:01 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 May 2004 20:28:01 +0200 Subject: [Gambas-user] WebBrowser Error In-Reply-To: <200405121409.07513.dimitribellini@...69...> References: <200405121409.07513.dimitribellini@...69...> Message-ID: <200405122028.02327.gambas@...1...> On Wednesday 12 May 2004 14:09, Dimitri Bellini wrote: > Dear Daniel > Ops... I forgot it but after i change it from Project-> Properties-> > Advanced options-> "Form controls are public" > I have the same error. > I must define "Form controls are public" when i create the Form? > thanks in advance > Dimitri > You must recompile all the project after changing this option. This will be done automatically in the next version :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Thu May 13 10:27:20 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Thu, 13 May 2004 10:27:20 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation Message-ID: <200405131027.20800.abidoo.too@...11...> hi all I've a problem with the compilation of gambas 0.92a: Making all in html make[6]: Entering directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' /bin/sh ../../../../../libtool --mode=link c++ -g -O2 -pipe -Wall -fno-exceptions -g -Os -o lib.gb.qt.kde.html.la -rpath /opt/gambas/lib -no-undefined main.lo moc_main.lo moc_CWebBrowser.lo CWebBrowser.lo -L/usr/lib/qt3/lib/ -lgcc_s -lstdc++ -lpthread -lqt-mt -lkdecore -lkdeui -lDCOP -lkio -lkhtml -lkjs grep: /usr/X11R6/lib/libGL.la: No such file or directory sed: impossible de lire /usr/X11R6/lib/libGL.la: No such file or directory libtool: link: `/usr/X11R6/lib/libGL.la' is not a valid libtool archive make[6]: *** [lib.gb.qt.kde.html.la] Erreur 1 make[6]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' make[5]: *** [all-recursive] Erreur 1 make[5]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde' make[4]: *** [all-recursive] Erreur 1 make[4]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt' make[3]: *** [all-recursive] Erreur 1 make[3]: Leaving directory `/home/gambas/gambas-0.92/src/lib' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/home/gambas/gambas-0.92/src' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/home/gambas/gambas-0.92' make: *** [all-recursive-am] Erreur 2 Can you say me what miss ? I'm on mdk 10 And the 0.92 version compile well.... Fabien From dimitribellini at ...69... Thu May 13 12:21:54 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Thu, 13 May 2004 12:21:54 +0200 Subject: [Gambas-user] WebBrowser Error In-Reply-To: <200405122028.02327.gambas@...1...> References: <200405121409.07513.dimitribellini@...69...> <200405122028.02327.gambas@...1...> Message-ID: <200405131221.54045.dimitribellini@...69...> Dear Benoit Yeah.. now works... :-) I recompile it .. Gambas is the best!!! Thanks Dimitri On Wednesday 12 May 2004 08:28 pm, Benoit Minisini wrote: > On Wednesday 12 May 2004 14:09, Dimitri Bellini wrote: > > Dear Daniel > > Ops... I forgot it but after i change it from Project-> Properties-> > > Advanced options-> "Form controls are public" > > I have the same error. > > I must define "Form controls are public" when i create the Form? > > thanks in advance > > Dimitri > > You must recompile all the project after changing this option. This will be > done automatically in the next version :-) > > Regards, From gambas at ...1... Thu May 13 17:08:24 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 May 2004 17:08:24 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation In-Reply-To: <200405131027.20800.abidoo.too@...11...> References: <200405131027.20800.abidoo.too@...11...> Message-ID: <200405131708.25276.gambas@...1...> On Thursday 13 May 2004 10:27, Fabien Bodard wrote: > hi all > > I've a problem with the compilation of gambas 0.92a: > > Making all in html > make[6]: Entering directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' > /bin/sh ../../../../../libtool --mode=link c++ -g -O2 -pipe -Wall > -fno-exceptions -g -Os -o lib.gb.qt.kde.html.la -rpath /opt/gambas/lib > -no-undefined main.lo moc_main.lo moc_CWebBrowser.lo CWebBrowser.lo > -L/usr/lib/qt3/lib/ -lgcc_s -lstdc++ -lpthread -lqt-mt -lkdecore -lkdeui > -lDCOP -lkio -lkhtml -lkjs > grep: /usr/X11R6/lib/libGL.la: No such file or directory > sed: impossible de lire /usr/X11R6/lib/libGL.la: No such file or directory > libtool: link: `/usr/X11R6/lib/libGL.la' is not a valid libtool archive > make[6]: *** [lib.gb.qt.kde.html.la] Erreur 1 > make[6]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' > make[5]: *** [all-recursive] Erreur 1 > make[5]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde' > make[4]: *** [all-recursive] Erreur 1 > make[4]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt' > make[3]: *** [all-recursive] Erreur 1 > make[3]: Leaving directory `/home/gambas/gambas-0.92/src/lib' > make[2]: *** [all-recursive] Erreur 1 > make[2]: Leaving directory `/home/gambas/gambas-0.92/src' > make[1]: *** [all-recursive] Erreur 1 > make[1]: Leaving directory `/home/gambas/gambas-0.92' > make: *** [all-recursive-am] Erreur 2 > > > Can you say me what miss ? > I'm on mdk 10 > And the 0.92 version compile well.... > > Fabien > You can find a missing file with the Mandrake Controle Center. I did it for you, it is in libMesaGLU1-devel. Is this package installed ? I didn't add any new dependency, so I think the problem comes from something you did on your system... Regards, -- Benoit Minisini mailto:gambas at ...1... From a.de.villele at ...402... Thu May 13 18:53:40 2004 From: a.de.villele at ...402... (Arno) Date: Thu, 13 May 2004 18:53:40 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation In-Reply-To: <200405131708.25276.gambas@...1...> References: <200405131027.20800.abidoo.too@...11...> <200405131708.25276.gambas@...1...> Message-ID: <40A3A814.70008@...402...> Benoit Minisini wrote: >On Thursday 13 May 2004 10:27, Fabien Bodard wrote: > >>hi all >> >>I've a problem with the compilation of gambas 0.92a: >> >>Making all in html >>make[6]: Entering directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' >>/bin/sh ../../../../../libtool --mode=link c++ -g -O2 -pipe -Wall >>-fno-exceptions -g -Os -o lib.gb.qt.kde.html.la -rpath /opt/gambas/lib >>-no-undefined main.lo moc_main.lo moc_CWebBrowser.lo CWebBrowser.lo >>-L/usr/lib/qt3/lib/ -lgcc_s -lstdc++ -lpthread -lqt-mt -lkdecore -lkdeui >>-lDCOP -lkio -lkhtml -lkjs >>grep: /usr/X11R6/lib/libGL.la: No such file or directory >>sed: impossible de lire /usr/X11R6/lib/libGL.la: No such file or directory >>libtool: link: `/usr/X11R6/lib/libGL.la' is not a valid libtool archive >>make[6]: *** [lib.gb.qt.kde.html.la] Erreur 1 >>make[6]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' >>make[5]: *** [all-recursive] Erreur 1 >>make[5]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde' >>make[4]: *** [all-recursive] Erreur 1 >>make[4]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt' >>make[3]: *** [all-recursive] Erreur 1 >>make[3]: Leaving directory `/home/gambas/gambas-0.92/src/lib' >>make[2]: *** [all-recursive] Erreur 1 >>make[2]: Leaving directory `/home/gambas/gambas-0.92/src' >>make[1]: *** [all-recursive] Erreur 1 >>make[1]: Leaving directory `/home/gambas/gambas-0.92' >>make: *** [all-recursive-am] Erreur 2 >> >> >>Can you say me what miss ? >>I'm on mdk 10 >>And the 0.92 version compile well.... >> >>Fabien >> >> > >You can find a missing file with the Mandrake Controle Center. I did it for >you, it is in libMesaGLU1-devel. Is this package installed ? > >I didn't add any new dependency, so I think the problem comes from something >you did on your system... > >Regards, > nb : the nvidia module can cause this sort of pb, you can then make soft links to nvidia's lib. -- arno From drovar at ...3... Thu May 13 19:35:14 2004 From: drovar at ...3... (drovar) Date: Thu, 13 May 2004 13:35:14 -0400 Subject: [Gambas-user] Post install problem with example permissions In-Reply-To: <200403262122.28247.gambas@...1...> References: <200403262122.28247.gambas@...1...> Message-ID: <40A3B1D2.3010202@...3...> I downloaded and compiled Gambas 0.92a without any problems but when I try to execute any of the examples listed on under Recent Projects I get the following error message: Cannot open project file: /opt/gambas/share/examples/Games/Snake Access fobidden I uninstalled, cleared everything out and re-configured and compiled and got the same error. I made sure I did the './compile' and 'make' as user and 'make install' under su. Anyone else having this problem, or who can tell me if I'm doing something wrong? Thanks Carl From abidoo.too at ...11... Thu May 13 20:46:26 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Thu, 13 May 2004 20:46:26 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation In-Reply-To: <40A3A814.70008@...402...> References: <200405131027.20800.abidoo.too@...11...> <200405131708.25276.gambas@...1...> <40A3A814.70008@...402...> Message-ID: <200405132046.27106.abidoo.too@...11...> Le jeudi 13 Mai 2004 18:53, Arno a ?crit : > Benoit Minisini wrote: > >On Thursday 13 May 2004 10:27, Fabien Bodard wrote: > >>hi all > >> > >>I've a problem with the compilation of gambas 0.92a: > >> > >>Making all in html > >>make[6]: Entering directory > >> `/home/gambas/gambas-0.92/src/lib/qt/kde/html' /bin/sh > >> ../../../../../libtool --mode=link c++ -g -O2 -pipe -Wall > >> -fno-exceptions -g -Os -o lib.gb.qt.kde.html.la -rpath /opt/gambas/lib > >> -no-undefined main.lo moc_main.lo moc_CWebBrowser.lo CWebBrowser.lo > >> -L/usr/lib/qt3/lib/ -lgcc_s -lstdc++ -lpthread -lqt-mt -lkdecore > >> -lkdeui -lDCOP -lkio -lkhtml -lkjs > >>grep: /usr/X11R6/lib/libGL.la: No such file or directory > >>sed: impossible de lire /usr/X11R6/lib/libGL.la: No such file or > >> directory libtool: link: `/usr/X11R6/lib/libGL.la' is not a valid > >> libtool archive make[6]: *** [lib.gb.qt.kde.html.la] Erreur 1 > >>make[6]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde/html' > >>make[5]: *** [all-recursive] Erreur 1 > >>make[5]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt/kde' > >>make[4]: *** [all-recursive] Erreur 1 > >>make[4]: Leaving directory `/home/gambas/gambas-0.92/src/lib/qt' > >>make[3]: *** [all-recursive] Erreur 1 > >>make[3]: Leaving directory `/home/gambas/gambas-0.92/src/lib' > >>make[2]: *** [all-recursive] Erreur 1 > >>make[2]: Leaving directory `/home/gambas/gambas-0.92/src' > >>make[1]: *** [all-recursive] Erreur 1 > >>make[1]: Leaving directory `/home/gambas/gambas-0.92' > >>make: *** [all-recursive-am] Erreur 2 > >> > >> > >>Can you say me what miss ? > >>I'm on mdk 10 > >>And the 0.92 version compile well.... > >> > >>Fabien > > > >You can find a missing file with the Mandrake Controle Center. I did it > > for you, it is in libMesaGLU1-devel. Is this package installed ? > > > >I didn't add any new dependency, so I think the problem comes from > > something you did on your system... > > > >Regards, > > nb : the nvidia module can cause this sort of pb, you can then make soft > links to nvidia's lib. It's mabe when i've installed the nvidia driver... Thanks a lot From daniel.campos at ...338... Thu May 13 22:09:02 2004 From: daniel.campos at ...338... (Daniel) Date: Thu, 13 May 2004 22:09:02 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation In-Reply-To: <200405132046.27106.abidoo.too@...11...> References: <200405131027.20800.abidoo.too@...11...> <200405131708.25276.gambas@...1...> <40A3A814.70008@...402...> <200405132046.27106.abidoo.too@...11...> Message-ID: <1084478942.3238.1.camel@...40...> > > >Regards, > > > > nb : the nvidia module can cause this sort of pb, you can then make soft > > links to nvidia's lib. > > > It's mabe when i've installed the nvidia driver... > Yes, I had also problems each time I installed the nvidia driver with 3D and other graphical programs, that I could solve with symlinks. May be this should be specified in the Gambas FAQ. > Thanks a lot > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From abidoo.too at ...11... Thu May 13 23:36:55 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Thu, 13 May 2004 23:36:55 +0200 Subject: [Gambas-user] A problem with gambas 0.92a compilation In-Reply-To: <1084478942.3238.1.camel@...40...> References: <200405131027.20800.abidoo.too@...11...> <200405132046.27106.abidoo.too@...11...> <1084478942.3238.1.camel@...40...> Message-ID: <200405132336.55946.abidoo.too@...11...> Le jeudi 13 Mai 2004 22:09, Daniel a ?crit : > > > >Regards, > > > > > > nb : the nvidia module can cause this sort of pb, you can then make > > > soft links to nvidia's lib. > > > > It's mabe when i've installed the nvidia driver... > > Yes, I had also problems each time I installed the nvidia driver with > 3D and other graphical programs, that I could solve with symlinks. May > be this should be specified in the Gambas FAQ. > > > Thanks a lot > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: SourceForge.net Broadband > > Sign-up now for SourceForge Broadband and get the fastest > > 6.0/768 connection for only $19.95/mo for the first 3 months! > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click > > _______________________________________________ > > 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: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user i've just add the mising fill from the rpm with midnightcommander(mc)... Nevertheless the rpm was installed and it's the nVidia installer that have removed the missing file. Now i can use the 0.92a ... Regards, Fabien From karimy at ...27... Fri May 14 10:34:57 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Fri, 14 May 2004 10:34:57 +0200 Subject: [Gambas-user] how do Message-ID: <40A484B1.8000302@...27...> how chage a local array "dim a[10,10] as integer " to public the array "public a [10,10] as integer " dont work how do From sourceforge-raindog2 at ...94... Fri May 14 16:28:05 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 14 May 2004 10:28:05 -0400 Subject: [Gambas-user] how do In-Reply-To: <40A484B1.8000302@...27...> References: <40A484B1.8000302@...27...> Message-ID: <200405141028.05751.sourceforge-raindog2@...94...> On Friday 14 May 2004 04:34, vandenbulcke christophe wrote: > how chage a local array "dim a[10,10] as integer " to public > the array "public a [10,10] as integer " dont work > how do You need to put PUBLIC declarations outside of any sub or function, whereas with DIM it must be inside a sub or function. So if you were just changing DIM to PUBLIC it won't work. Rob From karimy at ...27... Fri May 14 21:11:29 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Fri, 14 May 2004 21:11:29 +0200 Subject: [Gambas-user] how do In-Reply-To: <200405141028.05751.sourceforge-raindog2@...94...> References: <40A484B1.8000302@...27...> <200405141028.05751.sourceforge-raindog2@...94...> Message-ID: <40A519E1.5000702@...27...> thank are you a exemple for my pleas excuse my for english Rob wrote: >On Friday 14 May 2004 04:34, vandenbulcke christophe wrote: > > >>how chage a local array "dim a[10,10] as integer " to public >>the array "public a [10,10] as integer " dont work >>how do >> >> > >You need to put PUBLIC declarations outside of any sub or >function, whereas with DIM it must be inside a sub or function. >So if you were just changing DIM to PUBLIC it won't work. > >Rob > > > >------------------------------------------------------- >This SF.Net email is sponsored by: SourceForge.net Broadband >Sign-up now for SourceForge Broadband and get the fastest >6.0/768 connection for only $19.95/mo for the first 3 months! >http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vdbergh at ...456... Sat May 15 11:36:15 2004 From: vdbergh at ...456... (Michel Van den Bergh) Date: Sat, 15 May 2004 11:36:15 +0200 Subject: [Gambas-user] Drawing. Message-ID: <40A5E48F.7090707@...456...> Hello, I was starting with Gamba 0.92a on Mandrake 10.0 Community. But no matter what I do, I don't succeed in drawing on a DrawingArea. The examples from the Wiki don't do anything. Drawing on the form itself works fine though. Could somebody post a code snippet that works for them (for G. 0.92a)? Regards, Michel From karimy at ...27... Sat May 15 13:46:56 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Sat, 15 May 2004 13:46:56 +0200 Subject: [Gambas-user] Drawing. In-Reply-To: <40A5E48F.7090707@...456...> References: <40A5E48F.7090707@...456...> Message-ID: <40A60330.5010005@...27...> HELLO MICHEL IT'S A SPRITE ENGINE FOR GAMBAS GOD WORK SEND MY YOUS SAMPLES WRITE TO SPRITE ENGINE Michel Van den Bergh wrote: > Hello, > > I was starting with Gamba 0.92a on Mandrake 10.0 Community. > But no matter what I do, I don't succeed in drawing on a DrawingArea. > The examples from the Wiki don't do anything. Drawing on the form itself > works fine though. > > Could somebody post a code snippet that works for them (for G. 0.92a)? > > Regards, > Michel > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- A non-text attachment was scrubbed... Name: SpriteEngine-0.0.tar.gz Type: application/x-gzip Size: 37887 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Sat May 15 15:59:21 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 15 May 2004 09:59:21 -0400 Subject: [Gambas-user] Drawing. In-Reply-To: <40A5E48F.7090707@...456...> References: <40A5E48F.7090707@...456...> Message-ID: <200405150959.21517.sourceforge-raindog2@...94...> On Saturday 15 May 2004 05:36, Michel Van den Bergh wrote: > I was starting with Gamba 0.92a on Mandrake 10.0 Community. > But no matter what I do, I don't succeed in drawing on a > DrawingArea. The examples from the Wiki don't do anything. > Drawing on the form itself works fine though. I did post a project that worked the last time you asked this question. Did it not come through? Rob From grahame at ...457... Sat May 15 17:05:26 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 16:05:26 +0100 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200311090806.33028.ronstk@...239...> References: <200311090806.33028.ronstk@...239...> Message-ID: <200405151605.27088.grahame@...457...> Is there any way to do this? If not in there a workaround? It seems a little odd not to be able to do this at all :/ Grahame From grahame at ...457... Sat May 15 17:08:58 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 16:08:58 +0100 Subject: [Gambas-user] DoEvents equivalent (take 2) Message-ID: <200405151608.58989.grahame@...457...> First off this isn't a dupe question as such. I had some issues with my old ISP deleting the email account I'd been using for the past 6 years or so which means I never got so see if anyone answered my last mail asking. Basically is there a Gambas equivalent to the VB DoEvents command? Grahame From sourceforge-raindog2 at ...94... Sat May 15 17:26:24 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 15 May 2004 11:26:24 -0400 Subject: [Gambas-user] DoEvents equivalent (take 2) In-Reply-To: <200405151608.58989.grahame@...457...> References: <200405151608.58989.grahame@...457...> Message-ID: <200405151126.24424.sourceforge-raindog2@...94...> On Saturday 15 May 2004 11:08, Grahame White wrote: > Basically is there a Gambas equivalent to the VB DoEvents > command? Yes. Look at the documentation for "WAIT". This is also on the "differences from VB" page in the documentation. Rob From sourceforge-raindog2 at ...94... Sat May 15 17:29:11 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 15 May 2004 11:29:11 -0400 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151605.27088.grahame@...457...> References: <200311090806.33028.ronstk@...239...> <200405151605.27088.grahame@...457...> Message-ID: <200405151129.11203.sourceforge-raindog2@...94...> On Saturday 15 May 2004 11:05, Grahame White wrote: > Is there any way to do this? If not in there a workaround? It > seems a little odd not to be able to do this at all :/ Object types, as far as I can tell, are always passed by reference. I think this may be true of arrays as well, so maybe try putting the stuff you want to pass by reference into an array? Rob From grahame at ...457... Sat May 15 17:43:13 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 16:43:13 +0100 Subject: [Gambas-user] DoEvents equivalent (take 2) In-Reply-To: <200405151126.24424.sourceforge-raindog2@...94...> References: <200405151608.58989.grahame@...457...> <200405151126.24424.sourceforge-raindog2@...94...> Message-ID: <200405151643.13962.grahame@...457...> On Saturday 15 May 2004 16:26, Rob wrote: > On Saturday 15 May 2004 11:08, Grahame White wrote: > > Basically is there a Gambas equivalent to the VB DoEvents > > command? > > Yes. Look at the documentation for "WAIT". This is also on the > "differences from VB" page in the documentation. Heh, I looked on the differences page. I must have gone right past it :) > > Rob > > Grahame From nyarnon at ...455... Tue May 11 20:07:28 2004 From: nyarnon at ...455... (nyarnon) Date: Tue, 11 May 2004 19:07:28 +0100 Subject: [Gambas-user] Bugreport: control content destroyed. In-Reply-To: <200405092224.54102.gambas@...1...> References: <20040508141143.GA9155@...455...> <200405092224.54102.gambas@...1...> Message-ID: <20040511180728.GA3085@...455...> On Sun, May 09, 2004 at 10:24:54PM +0200, Benoit Minisini wrote: > On Saturday 08 May 2004 16:11, nyarnon wrote: > > Just an observation, query for confirmation. > > > > I use a form with a textbox control to retrieve userinput. > > I made form controls public. > > > > On another form following routine is used: > > > > 'calling form to input data > > frmInputReq.ShowModal > > > > 'Now I test if a directory exists. If it does not exist it is > > 'created. After END IF the content of frmInputReq.TextBox1.Text > > 'remains unaltered. > > 'BUT! If the dir exists a warningbox is displayed and after > > 'END IF frmInputReq.TextBox1.Text is corrupt. > > 'Is Message.Warning corrupting stack? > > > > IF IsDir(frmMain.strRootdir &/ frmInputReq.TextBox1.Text) THEN > > Message.Warning("a warning that dir does not exist") > > ELSE > > MKDIR frmMain.strRootdir &/ frmInputReq.TextBox1.Text > > END IF > > Could you send me a complete project so that I trace the interpreter to see > what happens ? Here you go, just put a breakpoint at the end of _new and run the form no enter an existing dir path. The program will warn that it exists and you will be dropped at breakpoint. Now 'watch' the content of frmInputReq.Textbox1.Text. BTW Love to come to Paris, Die Zauberfl?te is one of my favorites, but I'm afraid the distance is just a wee bit beyond budget. Any plans to go tour Europe? Porto or Lisbon would be fine :-) -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tar.gz Type: application/x-tar-gz Size: 2266 bytes Desc: not available URL: From grahame at ...457... Sat May 15 19:34:37 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 18:34:37 +0100 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151129.11203.sourceforge-raindog2@...94...> References: <200405151605.27088.grahame@...457...> <200405151129.11203.sourceforge-raindog2@...94...> Message-ID: <200405151834.37665.grahame@...457...> On Saturday 15 May 2004 16:29, Rob wrote: > On Saturday 15 May 2004 11:05, Grahame White wrote: > > Is there any way to do this? If not in there a workaround? It > > seems a little odd not to be able to do this at all :/ > > Object types, as far as I can tell, are always passed by > reference. I think this may be true of arrays as well, so maybe > try putting the stuff you want to pass by reference into an > array? > > Rob > That seems a little over the top, it'd make more sense to just pass arguments by value and have an option to pass by reference. Heh, I suppose that's just because I'm more used to coding with by reference :) Grahame From sourceforge-raindog2 at ...94... Sat May 15 19:39:04 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 15 May 2004 13:39:04 -0400 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151834.37665.grahame@...457...> References: <200405151129.11203.sourceforge-raindog2@...94...> <200405151834.37665.grahame@...457...> Message-ID: <200405151339.04039.sourceforge-raindog2@...94...> On Saturday 15 May 2004 13:34, Grahame White wrote: > > Object types, as far as I can tell, are always passed by > > reference. I think this may be true of arrays as well, so > > maybe try putting the stuff you want to pass by reference > > into an array? > That seems a little over the top, it'd make more sense to just > pass arguments by value and have an option to pass by > reference. Heh, I suppose that's just because I'm more used to > coding with by reference :) I think most modern languages kind of discourage you from passing by reference, though since objects are passed by reference already it shouldn't be such a big deal to maybe add a "by reference operator" to Gambas, maybe the backslash or, dare I say it, a ByRef keyword? ;) Of course, you could also just declare the variable as public and/or static and then it's kinda moot. Rob From grahame at ...457... Sat May 15 20:04:13 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 19:04:13 +0100 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151339.04039.sourceforge-raindog2@...94...> References: <200405151834.37665.grahame@...457...> <200405151339.04039.sourceforge-raindog2@...94...> Message-ID: <200405151904.13334.grahame@...457...> > Of course, you could also just declare the variable as public > and/or static and then it's kinda moot. > > Rob > > True, but that does make it a little more awkward for making a generic function. A highly contrived example follows public function inc(input as integer) as integer ' increase input by 1 and return input * 2 input = input + 1 return input * 2 end public sub main() dim i as integer dim j as integer i = 1 j = 2 print inc(i) ' i == 2 displays 4 print inc(j) ' j == 3 displays 6 end Of course the above wouldn't work if input were passed ByVal and would require two functions or as you say declaring i and j as public but that isn't good practice, not at all ;) Grahame From sourceforge-raindog2 at ...94... Sat May 15 20:58:52 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 15 May 2004 14:58:52 -0400 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151904.13334.grahame@...457...> References: <200405151339.04039.sourceforge-raindog2@...94...> <200405151904.13334.grahame@...457...> Message-ID: <200405151458.52038.sourceforge-raindog2@...94...> On Saturday 15 May 2004 14:04, Grahame White wrote: > Of course the above wouldn't work if input were passed ByVal > and would require two functions or as you say declaring i and > j as public but that isn't good practice, not at all ;) Well, passing by reference isn't good practice either, but that doesn't seem to be stopping you ;) Rob From grahame at ...457... Sat May 15 21:31:06 2004 From: grahame at ...457... (Grahame White) Date: Sat, 15 May 2004 20:31:06 +0100 Subject: [Gambas-user] Pass arguments by reference? In-Reply-To: <200405151458.52038.sourceforge-raindog2@...94...> References: <200405151904.13334.grahame@...457...> <200405151458.52038.sourceforge-raindog2@...94...> Message-ID: <200405152031.06486.grahame@...457...> On Saturday 15 May 2004 19:58, Rob wrote: > On Saturday 15 May 2004 14:04, Grahame White wrote: > > Of course the above wouldn't work if input were passed ByVal > > and would require two functions or as you say declaring i and > > j as public but that isn't good practice, not at all ;) > > Well, passing by reference isn't good practice either, but that > doesn't seem to be stopping you ;) > > Rob > Touch? :) Grahame From abidoo.too at ...11... Sun May 16 14:34:28 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 16 May 2004 14:34:28 +0200 Subject: [Gambas-user] Drawing. In-Reply-To: <200405150959.21517.sourceforge-raindog2@...94...> References: <40A5E48F.7090707@...456...> <200405150959.21517.sourceforge-raindog2@...94...> Message-ID: <200405161434.28291.abidoo.too@...11...> Le samedi 15 Mai 2004 15:59, Rob a ?crit : > On Saturday 15 May 2004 05:36, Michel Van den Bergh wrote: > > I was starting with Gamba 0.92a on Mandrake 10.0 Community. > > But no matter what I do, I don't succeed in drawing on a > > DrawingArea. The examples from the Wiki don't do anything. > > Drawing on the form itself works fine though. > > I did post a project that worked the last time you asked this > question. Did it not come through? > > Rob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user See gambas exemples at clock... Fabien :) From abidoo.too at ...11... Sun May 16 15:06:00 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 16 May 2004 15:06:00 +0200 Subject: [Gambas-user] Bug in 0.93 ide Message-ID: <200405161506.01005.abidoo.too@...11...> Bug : The properties form crash at opening... Error line : 92 FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") ===> Directory not exist Correction : Change : FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") lstTranslation.Add(Language.ToName(File.BaseName(sLang))) NEXT by : IF Exist(File.Dir(Project.Path) &/ ".lang") THEN FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") lstTranslation.Add(Language.ToName(File.BaseName(sLang))) NEXT ENDIF Fabien Bodard From grahame at ...457... Sun May 16 15:13:14 2004 From: grahame at ...457... (Grahame White) Date: Sun, 16 May 2004 14:13:14 +0100 Subject: [Gambas-user] 0.93 compiles ok on debian/unstable Message-ID: <200405161413.14606.grahame@...457...> Gambas 0.93 compiled with no problems on my Debian/Unstable box. Good work :) Grahame From grahame at ...457... Sun May 16 15:53:10 2004 From: grahame at ...457... (Grahame White) Date: Sun, 16 May 2004 14:53:10 +0100 Subject: [Gambas-user] check a range of values for select case Message-ID: <200405161453.10952.grahame@...457...> I'm porting over some old VB programs I wrote many years ago as a way of familiarising myself with Gambas a bit better and also as a way see how things are done differently. Currently I'm working on a piece of cod that has a select case something like this dim some_number as integer select case some_number case 0 ' do stuff case 1 to 9 ' do other stuff case 10 to 500 ' something else again case else ' everything else end select I've been looking through some of the examples and they have something similar but not quite as easy to use. Is this the only way : dim some_number as integer select case some_number case 0 ' do stuff case 1,2,3,4,5,6,7,8,9 ' do other stuff case 10,11,,499,500 'something else again case else ' everything else end select having to explicitly specify *every* value required to enter a case is not very helpful, especially for large number ranges :) Grahame From gambas at ...1... Sun May 16 19:19:08 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 19:19:08 +0200 Subject: [Gambas-user] gambas 0.93 Message-ID: <200405161919.08753.gambas@...1...> Hi, everybody, I'm thoughtless :-) I forgot to announce the release of 0.93 here and on freshmeat ! The main changes are: * The installation tree has changed, so that it complies with Mandrake standards. For example, instead of putting libraries in /usr/lib, they go in /usr/lib/gambas. * Components can declare "virtual" controls. They are controls you can put on a form, but displaying nothing. You had the Timer. Now you get many virtual controls in the gb.net component too. I think the beginner prefer putting a virtual control on a form instead of typing "MySocket = NEW Socket()". * The IDE new project dialog has been rewritten. You can create a new project by copying an already existing one. * The font management has changed so that a given point size has about the same pixel size whatever the screen resolution is. * The documentation has been updated. Rob Kudla should update the Wiki soon with my changes. Only the gb & gb.qt documentation have been updated. When the wiki is updated, I will continue on updating the other components. I will write overviews in the gb.qt component too. Enjoy it, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 16 19:28:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 19:28:16 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: <200405161506.01005.abidoo.too@...11...> References: <200405161506.01005.abidoo.too@...11...> Message-ID: <200405161928.16754.gambas@...1...> On Sunday 16 May 2004 15:06, Fabien Bodard wrote: > Bug : > > The properties form crash at opening... > > > Error line : 92 > > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") ===> > Directory not exist > > Correction : > > Change : > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") > lstTranslation.Add(Language.ToName(File.BaseName(sLang))) > NEXT > > > by : > > > IF Exist(File.Dir(Project.Path) &/ ".lang") THEN > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") > lstTranslation.Add(Language.ToName(File.BaseName(sLang))) > NEXT > ENDIF > > > Fabien Bodard > Thank you for the patch Fabien. Maybe I will make a 0.93a because this bug is annoying. Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Sun May 16 19:46:31 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 16 May 2004 19:46:31 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: <200405161928.16754.gambas@...1...> References: <200405161506.01005.abidoo.too@...11...> <200405161928.16754.gambas@...1...> Message-ID: <200405161946.31790.abidoo.too@...11...> Le dimanche 16 Mai 2004 19:28, Benoit Minisini a ?crit : > On Sunday 16 May 2004 15:06, Fabien Bodard wrote: > > Bug : > > > > The properties form crash at opening... > > > > > > Error line : 92 > > > > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") ===> > > Directory not exist > > > > Correction : > > > > Change : > > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") > > lstTranslation.Add(Language.ToName(File.BaseName(sLang))) > > NEXT > > > > > > by : > > > > > > IF Exist(File.Dir(Project.Path) &/ ".lang") THEN > > FOR EACH sLang IN Dir(File.Dir(Project.Path) &/ ".lang", "*.po") > > lstTranslation.Add(Language.ToName(File.BaseName(sLang))) > > NEXT > > ENDIF > > > > > > Fabien Bodard > > Thank you for the patch Fabien. > > Maybe I will make a 0.93a because this bug is annoying. > > Regards, Wait one or to day before update the package... there is mabe other important bugs... i've not explored all the feature ;-) There is a problem with my exemple too(clock)... gbx say : "too many arguments"... Why have you not add button on the new form treeexplorer to increase or decrease the zorder of widgets ? Fabien From gambas at ...1... Sun May 16 20:10:12 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 20:10:12 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: <200405161946.31790.abidoo.too@...11...> References: <200405161506.01005.abidoo.too@...11...> <200405161928.16754.gambas@...1...> <200405161946.31790.abidoo.too@...11...> Message-ID: <200405162010.12925.gambas@...1...> On Sunday 16 May 2004 19:46, Fabien Bodard wrote: > Le dimanche 16 Mai 2004 19:28, Benoit Minisini a ?crit : > Wait one or to day before update the package... there is mabe other > important bugs... i've not explored all the feature ;-) > > There is a problem with my exemple too(clock)... gbx say : "too many > arguments"... I didn't have any problem with your example. Tell me when exactly you got the bug! > > Why have you not add button on the new form treeexplorer to increase or > decrease the zorder of widgets ? Because this screen is not finished, and because changing control z-order is not easy. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 16 20:10:43 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 20:10:43 +0200 Subject: [Gambas-user] check a range of values for select case In-Reply-To: <200405161453.10952.grahame@...457...> References: <200405161453.10952.grahame@...457...> Message-ID: <200405162010.43408.gambas@...1...> On Sunday 16 May 2004 15:53, Grahame White wrote: > I'm porting over some old VB programs I wrote many years ago as a way of > familiarising myself with Gambas a bit better and also as a way see how > things are done differently. > > Currently I'm working on a piece of cod that has a select case something > like this > > dim some_number as integer > > select case some_number > case 0 > ' do stuff > case 1 to 9 > ' do other stuff > case 10 to 500 > ' something else again > case else > ' everything else > end select > > > > I've been looking through some of the examples and they have something > similar but not quite as easy to use. Is this the only way : > > dim some_number as integer > > select case some_number > case 0 > ' do stuff > case 1,2,3,4,5,6,7,8,9 > ' do other stuff > case 10,11,,499,500 > 'something else again > case else > ' everything else > end select > > > having to explicitly specify *every* value required to enter a case is not > very helpful, especially for large number ranges :) > > Grahame > > You must use IF/ELSE IF/ENDIF to do what you want. -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 16 21:59:06 2004 From: grahame at ...457... (Grahame White) Date: Sun, 16 May 2004 20:59:06 +0100 Subject: [Gambas-user] Autocomplete bug? Message-ID: <200405162059.06994.grahame@...457...> I've just had gambas segfault with the following error $ gambas try to propagate WARNING: circular references detected Mutex destroy failure: Device or resource busy (null).InsertItem.338: #13: Null object Segmentation fault I was typing in an object name and pressed . which brought up the autocomplete window, I then clicked on the object property I needed and gambas crashed, dropping me back to the commandline with the above error. It's a nasty little bug as you can easily loose all your changes since last saving. Luckily for me I'd only just opened my project so didn't loose much :) I'm running gambas 0.93 on Debian/Unstable Grahame From gambas at ...1... Sun May 16 22:16:04 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 22:16:04 +0200 Subject: [Gambas-user] Autocomplete bug? In-Reply-To: <200405162059.06994.grahame@...457...> References: <200405162059.06994.grahame@...457...> Message-ID: <200405162216.04612.gambas@...1...> On Sunday 16 May 2004 21:59, Grahame White wrote: > I've just had gambas segfault with the following error > > $ gambas > try to propagate > WARNING: circular references detected > Mutex destroy failure: Device or resource busy > (null).InsertItem.338: #13: Null object > Segmentation fault > > I was typing in an object name and pressed . which brought up the > autocomplete window, I then clicked on the object property I needed and > gambas crashed, dropping me back to the commandline with the above error. > > It's a nasty little bug as you can easily loose all your changes since last > saving. Luckily for me I'd only just opened my project so didn't loose > much :) > > I'm running gambas 0.93 on Debian/Unstable > > Grahame > It works here! Mumf... Which version of QT and which window manager do you use ? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 16 22:36:29 2004 From: grahame at ...457... (Grahame White) Date: Sun, 16 May 2004 21:36:29 +0100 Subject: [Gambas-user] Autocomplete bug? In-Reply-To: <200405162216.04612.gambas@...1...> References: <200405162059.06994.grahame@...457...> <200405162216.04612.gambas@...1...> Message-ID: <200405162136.29234.grahame@...457...> On Sunday 16 May 2004 21:16, Benoit Minisini wrote: > On Sunday 16 May 2004 21:59, Grahame White wrote: > > I've just had gambas segfault with the following error > > > > $ gambas > > try to propagate > > WARNING: circular references detected > > Mutex destroy failure: Device or resource busy > > (null).InsertItem.338: #13: Null object > > Segmentation fault > > > > I was typing in an object name and pressed . which brought up the > > autocomplete window, I then clicked on the object property I needed > > and gambas crashed, dropping me back to the commandline with the above > > error. > > > > It's a nasty little bug as you can easily loose all your changes since > > last saving. Luckily for me I'd only just opened my project so didn't > > loose much :) > > > > I'm running gambas 0.93 on Debian/Unstable compiled with gcc 3.3.3 > > > > Grahame > > It works here! Mumf... > > Which version of QT and which window manager do you use ? I've got qt 3.2.3 installed and I use fluxbox for my wm Grahame From gambas at ...1... Sun May 16 22:39:32 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 22:39:32 +0200 Subject: [Gambas-user] Autocomplete bug? In-Reply-To: <200405162136.29234.grahame@...457...> References: <200405162059.06994.grahame@...457...> <200405162216.04612.gambas@...1...> <200405162136.29234.grahame@...457...> Message-ID: <200405162239.32218.gambas@...1...> On Sunday 16 May 2004 22:36, Grahame White wrote: > On Sunday 16 May 2004 21:16, Benoit Minisini wrote: > > On Sunday 16 May 2004 21:59, Grahame White wrote: > > > I've just had gambas segfault with the following error > > > > > > $ gambas > > > try to propagate > > > WARNING: circular references detected > > > Mutex destroy failure: Device or resource busy > > > (null).InsertItem.338: #13: Null object > > > Segmentation fault > > > > > > I was typing in an object name and pressed . which brought up the > > > autocomplete window, I then clicked on the object property I needed > > > and gambas crashed, dropping me back to the commandline with the above > > > error. > > > > > > It's a nasty little bug as you can easily loose all your changes since > > > last saving. Luckily for me I'd only just opened my project so didn't > > > loose much :) > > > > > > I'm running gambas 0.93 on Debian/Unstable > > compiled with gcc 3.3.3 > > > > Grahame > > > > It works here! Mumf... > > > > Which version of QT and which window manager do you use ? > > I've got qt 3.2.3 installed and I use fluxbox for my wm > > Grahame > What happens if you use KDM or MetaCity ? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 16 23:11:36 2004 From: grahame at ...457... (Grahame White) Date: Sun, 16 May 2004 22:11:36 +0100 Subject: [Gambas-user] Autocomplete bug? In-Reply-To: <200405162239.32218.gambas@...1...> References: <200405162059.06994.grahame@...457...> <200405162136.29234.grahame@...457...> <200405162239.32218.gambas@...1...> Message-ID: <200405162211.36227.grahame@...457...> > > > > I'm running gambas 0.93 on Debian/Unstable > > > > compiled with gcc 3.3.3 > > > > > > Grahame > > > > > > It works here! Mumf... > > > > > > Which version of QT and which window manager do you use ? > > > > I've got qt 3.2.3 installed and I use fluxbox for my wm > > > > Grahame > > What happens if you use KDM or MetaCity ? I gave it a try on metacity and it seemed to work ok. I'm not sure that it's a bug in fluxbox but maybe to do with the focus model I use, semi-sloppy with no auto raise. Perhaps gambas is getting confused as to which window is supposed to be in focus? I'll test this a bit more tomorrow, unless you have any other ides :) Grahame From vbd950 at ...43... Mon May 17 03:49:35 2004 From: vbd950 at ...43... (locke demosthenes) Date: Sun, 16 May 2004 18:49:35 -0700 (PDT) Subject: [Gambas-user] Some type of better graphics support. Message-ID: <20040517014935.82986.qmail@...458...> Under Windows, I enjoyed making simple 3d games in VB using a 3d engine called Revolution3d (www.revolution3d.de). Obviously, you wouldn't use this under linux as it is DX based, but I'm just wondering: Is there any OpenGL, SDL, or other graphics library support in Gambas? I'm looking for any way to do 3d graphics under gambas besides writing my own little wireframe engine. --Dan __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ From vbd950 at ...43... Mon May 17 03:52:31 2004 From: vbd950 at ...43... (locke demosthenes) Date: Sun, 16 May 2004 18:52:31 -0700 (PDT) Subject: [Gambas-user] Installing on Debian/Knoppix 3.4 Message-ID: <20040517015231.70897.qmail@...459...> I installed Knoppix 3.4 to my hard drive, which is a really fast way to get a full debian unstable install on your hard drive in under half an hour (no setting up packages and such). I then proceeded to compile gambas. under make, it would halt part way through when trying to execute "moc". I later found moc in /usr/share/qt3/bin. After copying this to /usr/bin, the make worked great. I e-mailed the author, but I'm just wondering, where is the best place to post this, and does it effect normal Debian installs? If it effects other Debian installs, it might be a good idea to update the script to check both locations. --Dan __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ From danielcampos at ...282... Mon May 17 08:20:13 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Mon, 17 May 2004 08:20:13 CEST Subject: [Gambas-user] Bug in 0.93 ide Message-ID: > >There is a problem with my exemple too(clock)... gbx say : "too many >arguments"... > I'm unable to run the 'MoviePlayer' example from the IDE, it also says 'too many arguments' on Mandrake 10 Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From olinux at ...289... Mon May 17 08:52:17 2004 From: olinux at ...289... (Olivier Coquet) Date: Mon, 17 May 2004 08:52:17 +0200 Subject: [Gambas-user] some problem in 0.93 Message-ID: <1084776737.8072.1.camel@...460...> compile on fedora but ! ColumnView.Align property does not exist ???????? Application.ToolType is read only ???????? regards Olivier From gambas at ...1... Mon May 17 09:05:36 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 May 2004 09:05:36 +0200 Subject: [Gambas-user] Some type of better graphics support. In-Reply-To: <20040517014935.82986.qmail@...458...> References: <20040517014935.82986.qmail@...458...> Message-ID: <200405170905.36963.gambas@...1...> On Monday 17 May 2004 03:49, locke demosthenes wrote: > Under Windows, I enjoyed making simple 3d games in VB > using a 3d engine called Revolution3d > (www.revolution3d.de). Obviously, you wouldn't use > this under linux as it is DX based, but I'm just > wondering: > Is there any OpenGL, SDL, or other graphics library > support in Gambas? I'm looking for any way to do 3d > graphics under gambas besides writing my own little > wireframe engine. > --Dan > > This would need a wrapper OpenGl gambas component (not hard to do, but tedious) combined with the SDL component I think. Any volunteer ? :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 17 09:21:36 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 May 2004 09:21:36 +0200 Subject: [Gambas-user] some problem in 0.93 In-Reply-To: <1084776737.8072.1.camel@...460...> References: <1084776737.8072.1.camel@...460...> Message-ID: <200405170921.36819.gambas@...1...> On Monday 17 May 2004 08:52, Olivier Coquet wrote: > compile on fedora but ! > > ColumnView.Align property does not exist ???????? > > Application.ToolType is read only ???????? > > > regards > Olivier > These properties have changed. You should always read the ChangeLog before using a new version :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 17 09:23:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 May 2004 09:23:19 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: References: Message-ID: <200405170923.19155.gambas@...1...> On Monday 17 May 2004 13:20, danielcampos at ...282... wrote: > >There is a problem with my exemple too(clock)... gbx say : "too many > >arguments"... > > I'm unable to run the 'MoviePlayer' example from the IDE, it also says 'too > many arguments' on Mandrake 10 > > Regards, > > Daniel Campos > To fix it, open the MoviePlayer example, open the FMoviePlayer form, move it, and recompile. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 17 09:35:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 May 2004 09:35:07 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: <200405170923.19155.gambas@...1...> References: <200405170923.19155.gambas@...1...> Message-ID: <200405170935.07828.gambas@...1...> On Monday 17 May 2004 09:23, Benoit Minisini wrote: > On Monday 17 May 2004 13:20, danielcampos at ...282... wrote: > > >There is a problem with my exemple too(clock)... gbx say : "too many > > >arguments"... > > > > I'm unable to run the 'MoviePlayer' example from the IDE, it also says > > 'too many arguments' on Mandrake 10 > > > > Regards, > > > > Daniel Campos > > To fix it, open the MoviePlayer example, open the FMoviePlayer form, move > it, and recompile. > > Regards, Apparently, you must set Enabled to false in the DrawingArea of the FMoviePlayer form so that mplayer can use it. But it seems that sometimes the IDE freezes when running this project. Running it outside the IDE works. Maybe there is a bad interaction between the running mplayer and the internal debugger... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 17 09:47:44 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 May 2004 09:47:44 +0200 Subject: [Gambas-user] Installing on Debian/Knoppix 3.4 In-Reply-To: <20040517015231.70897.qmail@...459...> References: <20040517015231.70897.qmail@...459...> Message-ID: <200405170947.44787.gambas@...1...> On Monday 17 May 2004 03:52, locke demosthenes wrote: > I installed Knoppix 3.4 to my hard drive, which is a > really fast way to get a full debian unstable install > on your hard drive in under half an hour (no setting > up packages and such). I then proceeded to compile > gambas. under make, it would halt part way through > when trying to execute "moc". I later found moc in > /usr/share/qt3/bin. After copying this to /usr/bin, > the make worked great. I e-mailed the author, but I'm > just wondering, where is the best place to post this, > and does it effect normal Debian installs? If it > effects other Debian installs, it might be a good idea > to update the script to check both locations. > --Dan > I modified the script so that it searched for moc in /usr/share/qt*/bin too. But I don't understand why they put an executable in /usr/share, as I thought /usr/share should only include architecture-independant files! Regards, -- Benoit Minisini mailto:gambas at ...1... From nferraz at ...184... Mon May 17 17:08:40 2004 From: nferraz at ...184... (Nelson Ferraz) Date: Mon, 17 May 2004 12:08:40 -0300 Subject: [Gambas-user] Some type of better graphics support. In-Reply-To: <200405170905.36963.gambas@...1...> References: <20040517014935.82986.qmail@...458...> <200405170905.36963.gambas@...1...> Message-ID: <40A8D578.4030507@...184...> Benoit Minisini wrote: > This would need a wrapper OpenGl gambas component (not hard to do, but > tedious) combined with the SDL component I think. Any volunteer ? :-) I think I can help you by writing some scripts to automate most of the tedious work, if you can tell me what the tedious work is. Nelson From nferraz at ...184... Mon May 17 17:22:12 2004 From: nferraz at ...184... (Nelson Ferraz) Date: Mon, 17 May 2004 12:22:12 -0300 Subject: [Gambas-user] Installing on Debian/Knoppix 3.4 In-Reply-To: <200405170947.44787.gambas@...1...> References: <20040517015231.70897.qmail@...459...> <200405170947.44787.gambas@...1...> Message-ID: <40A8D8A4.6060804@...184...> Benoit Minisini wrote: > I modified the script so that it searched for moc in /usr/share/qt*/bin too. > > But I don't understand why they put an executable in /usr/share, as I > thought /usr/share should only include architecture-independant files! In Debian, /usr/bin/moc is a link to /usr/share/qt3/bin/moc, which in turn is a link to /usr/bin/moc-qt3. BTW, moc stands for "Meta Object Compiler"; "the moc reads one or more C++ class declarations from a C++ header or source file and generates one C++ source file containing meta object information for the classes" (man moc). Nelson From nigel at ...38... Mon May 17 17:29:55 2004 From: nigel at ...38... (Nigel Gerrard) Date: Mon, 17 May 2004 16:29:55 +0100 Subject: [Gambas-user] Bug(?): Module name not being shown in error message Message-ID: <006301c43c23$cf2002c0$b44c4f51@...360...> Is anybody else having a problem with the error message not showing the Module/Class name on a failure in 0.93. When my program crashes: In 0.93 I get the message try to propagate (null).Main.20: #21: Out of bounds In 0.92 I get Project.Main.20: #21: Out of bounds Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...162... Mon May 17 18:18:52 2004 From: gambas at ...162... (Wojtek) Date: Mon, 17 May 2004 18:18:52 +0200 Subject: [Gambas-user] Bug in 0.93 ide In-Reply-To: <200405161946.31790.abidoo.too@...11...> References: <200405161506.01005.abidoo.too@...11...> <200405161928.16754.gambas@...1...> <200405161946.31790.abidoo.too@...11...> Message-ID: <200405171818.52209.gambas@...162...> Dnia nie 16. maja 2004 19:46, Fabien Bodard napisa?: > There is a problem with my exemple too(clock)... gbx say : "too many > arguments"... Got it! Got it! Got it! In old Gambas version Time control is defined: { ControlName Timer #X = 0 #Y = 0 Enabled = True } In 0.93 version it need correct { ControlName #Timer #X = 0 #Y = 0 Enabled = True } Lack # cause display "too many arguments" -- Wojciech Saltarski From dimitribellini at ...69... Mon May 17 19:20:06 2004 From: dimitribellini at ...69... (Dimitri Bellini) Date: Mon, 17 May 2004 19:20:06 +0200 Subject: [Gambas-user] Report Manager Possible integration? Message-ID: <200405171920.07491.dimitribellini@...69...> Dear folks i have read a news in freshmeat about a report designer for Kylix and when i read the main site (http://reportman.sourceforge.net) i see this: "Report manager is a reporting application (Report Manager Designer) and also a set of components for Delphi, Builder and Kylix, also supports development enviroment accepting ActiveX controls (Visual Basic,Visual FoxPro,any Visual Studio.Net language...) also a C dynamic standard library with exported functions is provided to use the engine with any other language like GNU C" Is possible to use this Tool in gambas? Thanks in advance Dimitri From sourceforge-raindog2 at ...94... Mon May 17 20:47:46 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 17 May 2004 14:47:46 -0400 Subject: [Gambas-user] Report Manager Possible integration? In-Reply-To: <200405171920.07491.dimitribellini@...69...> References: <200405171920.07491.dimitribellini@...69...> Message-ID: <200405171447.46272.sourceforge-raindog2@...94...> On Monday 17 May 2004 13:20, Dimitri Bellini wrote: > i have read a news in freshmeat about a report designer for > Kylix and when i read the main site > (http://reportman.sourceforge.net) i see this: "Report manager > is a reporting application (Report Manager Designer) and also > a set of components for Delphi, Builder and Kylix, also ... > Is possible to use this Tool in gambas? I'm sure someone could write a component that wrapped their C API, but since Report Manager is itself written in Kylix, whose compiler has no source available, I wouldn't be able to make an RPM of it and therefore I wouldn't be able to include RM support in whatever Gambas RPMs I made. I'd rather see support for something like Kugar, the KDE reporting engine, though I haven't messed with it at all, or eventually something written in Gambas itself which could import the XML report definitions from Kugar and other Linux reporting tools. But for now I'm content to just draw directly on the printer object. Rob From wizardmansite at ...43... Tue May 18 01:39:29 2004 From: wizardmansite at ...43... (Devilyn) Date: Mon, 17 May 2004 16:39:29 -0700 (PDT) Subject: [Gambas-user] Sound and Game. Message-ID: <20040517233929.56306.qmail@...243...> Hello, Well I got tiles and a char graphic up for my 2-d tile rpg.. So I have some code put togeather that works for my RPG project. I have a question. I looked in the componets section of Gambas 0.92a and did not see a sound componet. Also I looked in WIKI and could not find any code examples on how to play a wav file. I did get Timidity and wish to play a wav file that used to be a MIDI file as some background music. Dev __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ From sourceforge-raindog2 at ...94... Tue May 18 03:38:56 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 17 May 2004 21:38:56 -0400 Subject: [Gambas-user] Sound and Game. In-Reply-To: <20040517233929.56306.qmail@...243...> References: <20040517233929.56306.qmail@...243...> Message-ID: <200405172138.56436.sourceforge-raindog2@...94...> On Monday 17 May 2004 19:39, Devilyn wrote: > my RPG project. I have a question. I looked in the > componets section of Gambas 0.92a and did not see a > sound componet. Also I looked in WIKI and could not Take a look at the "gb.sdl" component. The only part of SDL it currently implements is wav playback, but it does work (last I checked.) Rob From budi at ...415... Tue May 18 04:07:23 2004 From: budi at ...415... (Budi Arief Gusandi) Date: Tue, 18 May 2004 09:07:23 +0700 Subject: [Gambas-user] Interbase/Firebird In-Reply-To: <200405170947.44787.gambas@...1...> References: <20040517015231.70897.qmail@...459...> <200405170947.44787.gambas@...1...> Message-ID: Hi.. Any component for interbase or firebird ? seems those are cool free database servers, not like commercial mysql. Thanks Budi From budi at ...415... Tue May 18 04:12:22 2004 From: budi at ...415... (Budi Arief Gusandi) Date: Tue, 18 May 2004 09:12:22 +0700 Subject: [Gambas-user] Mandrake Binary In-Reply-To: <200405170935.07828.gambas@...1...> References: <200405170923.19155.gambas@...1...> <200405170935.07828.gambas@...1...> Message-ID: Hi Rob, Still cant have G.093 in my box, waiting for your mandrake binary rpm. When can i get it. Thanks Budi From sourceforge-raindog2 at ...94... Tue May 18 06:07:59 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 18 May 2004 00:07:59 -0400 Subject: [Gambas-user] Mandrake Binary In-Reply-To: References: <200405170935.07828.gambas@...1...> Message-ID: <200405180007.59907.sourceforge-raindog2@...94...> On Monday 17 May 2004 22:12, Budi Arief Gusandi wrote: > Hi Rob, > Still cant have G.093 in my box, waiting for your mandrake > binary rpm. When can i get it. Given the problems that others have reported with 0.93, I plan on waiting for 0.93a before I package it. Rob From nyarnon at ...455... Tue May 18 15:51:35 2004 From: nyarnon at ...455... (nyarnon) Date: Tue, 18 May 2004 14:51:35 +0100 Subject: [Gambas-user] how to add have array of textbox (or other obje ct)? In-Reply-To: <200405061230.15356.sourceforge-raindog2@...94...> References: <1363E3EDDF9E9D44B9F2AD0F8EB20710010C3CAE@...423...> <200405061230.15356.sourceforge-raindog2@...94...> Message-ID: <20040518135135.GA9601@...455...> On Thu, May 06, 2004 at 12:31:42PM -0400, Rob wrote: > I agree that it should be easier to create control arrays since > they are so commonly used in business applications, I had a good look at it and it strikes me that Gamba does it just fine like it is. To compare I even went trough a few of my books on VB and I discover that each time they cover control array's they also cover the creation of control's at run time. It's logical if you care to think about it. Creating control's at run time offers more flexibility and power then doing the same at design time. What I do miss is the creation of controls in Gambas own language. I sure hope this will be possible in the near future. IMHO it would greatly enhance the power of Gambas no longer being stuck to C and/or third parties for control creation. -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From gambas at ...1... Tue May 18 19:02:53 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 May 2004 19:02:53 +0200 Subject: [Gambas-user] Some type of better graphics support. In-Reply-To: <40A8D578.4030507@...184...> References: <20040517014935.82986.qmail@...458...> <200405170905.36963.gambas@...1...> <40A8D578.4030507@...184...> Message-ID: <200405181902.53112.gambas@...1...> On Monday 17 May 2004 17:08, Nelson Ferraz wrote: > Benoit Minisini wrote: > > This would need a wrapper OpenGl gambas component (not hard to do, but > > tedious) combined with the SDL component I think. Any volunteer ? :-) > > I think I can help you by writing some scripts to automate most of the > tedious work, if you can tell me what the tedious work is. > > Nelson > It is not hard, because the interface of the component could be simply the same as OpenGL one. It is tedious because there are many functions and many structures (I think, I don't know OpenGL) and without a script that transform OpenGL headers into Gambas classes, methods, contants and events... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 18 19:04:41 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 May 2004 19:04:41 +0200 Subject: [Gambas-user] Sound and Game. In-Reply-To: <200405172138.56436.sourceforge-raindog2@...94...> References: <20040517233929.56306.qmail@...243...> <200405172138.56436.sourceforge-raindog2@...94...> Message-ID: <200405181904.41972.gambas@...1...> On Tuesday 18 May 2004 03:38, Rob wrote: > On Monday 17 May 2004 19:39, Devilyn wrote: > > my RPG project. I have a question. I looked in the > > componets section of Gambas 0.92a and did not see a > > sound componet. Also I looked in WIKI and could not > > Take a look at the "gb.sdl" component. The only part of SDL it > currently implements is wav playback, but it does work (last I > checked.) > > Rob > > The current gb.sdl component could play many wav files simultaneously AND a music track from the disk, that could be a WAV, an OGG or a MP3. I didn't take the time to make a example of that! -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Tue May 18 21:31:02 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Tue, 18 May 2004 21:31:02 +0200 Subject: [Gambas-user] Some type of better graphics support. In-Reply-To: <200405181902.53112.gambas@...1...> References: <20040517014935.82986.qmail@...458...> <40A8D578.4030507@...184...> <200405181902.53112.gambas@...1...> Message-ID: <200405182131.03167.abidoo.too@...11...> Le mardi 18 Mai 2004 19:02, Benoit Minisini a ?crit : > On Monday 17 May 2004 17:08, Nelson Ferraz wrote: > > Benoit Minisini wrote: > > > This would need a wrapper OpenGl gambas component (not hard to do, but > > > tedious) combined with the SDL component I think. Any volunteer ? :-) > > > > I think I can help you by writing some scripts to automate most of the > > tedious work, if you can tell me what the tedious work is. > > > > Nelson > > It is not hard, because the interface of the component could be simply the > same as OpenGL one. > > It is tedious because there are many functions and many structures (I > think, I don't know OpenGL) and without a script that transform OpenGL > headers into Gambas classes, methods, contants and events... Voici plusieurs mois que j'avait parl? d'un basic qui ex?le dans la maitrise de la 2D/3D je veus parler de blitzbasic. http://www.blitz3dfr.com/home.htm A regarder, c'est franchement impressionant See http://www.blitzbasic.com/Home/_index_.php It's a basic that use really 3D... Mabe, there is some interesting ideas here. Fabien Bodard From gambas at ...1... Tue May 18 23:25:39 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 May 2004 23:25:39 +0200 Subject: [Gambas-user] gambas 0.93a Message-ID: <200405182325.39296.gambas@...1...> Hi everyone, I released gambas 0.93a, that should fix the weird bugs encounter in 0.93. To Nigel Gerrard: tell me if you got the "missing class name in error message" bug yet. If you do, send me the project that displays the error message incorrectly. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 18 23:32:29 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 May 2004 23:32:29 +0200 Subject: [Gambas-user] Report Manager Possible integration? In-Reply-To: <200405171920.07491.dimitribellini@...69...> References: <200405171920.07491.dimitribellini@...69...> Message-ID: <200405182332.29335.gambas@...1...> On Monday 17 May 2004 19:20, Dimitri Bellini wrote: > Dear folks > i have read a news in freshmeat about a report designer for Kylix and when > i read the main site (http://reportman.sourceforge.net) i see this: > "Report manager is a reporting application (Report Manager Designer) and > also a set of components for Delphi, Builder and Kylix, also supports > development enviroment accepting ActiveX controls (Visual Basic,Visual > FoxPro,any Visual Studio.Net language...) also a C dynamic standard library > with exported functions is provided to use the engine with any other > language like GNU C" > > Is possible to use this Tool in gambas? > Thanks in advance > Dimitri > My plans about a possible Gambas Report Manager :-) 1) Allowing the IDE to use the form editor to create something other than real GUI forms: reports, or even "web" forms. 2) Creating a gb.report component that includes report pseudo-controls than you can put on a report form only. 3) The report controls will not have necessarily fixed size. There will be layout containers that can print new pages if there is not enough space on one page. 4) When you will ask a report form to draw itself (on the screen, or on the printer), the report controls will raise events to get their data. Once the data got, the layout can be performed. 5) ...Any other ideas. I don't think you will get it before the 1.0. Because: - I have no time. - I must modify the IDE internals. - There is no name spaces in Gambas. I could implement them, or I could name all my report controls by prefixing their name with "Report": ReportLabel, ReportGrid, ReportPictureBox, ReportTable, and so on. Regards, -- Benoit Minisini mailto:gambas at ...1... From wizardmansite at ...43... Wed May 19 03:39:14 2004 From: wizardmansite at ...43... (Devilyn) Date: Tue, 18 May 2004 18:39:14 -0700 (PDT) Subject: [Gambas-user] Which Version Message-ID: <20040519013914.12695.qmail@...242...> Hi, I just installed SuSE linux 9.0 Pro on my computer system... I looked at the Gambas requirments and it said Gambas was created on KDE 3.2.. Well My version of linux uses KDE 3.1.. Also there was other requirments like Qt ect ect... What version of Gambas will run on my computer without any changes to be made. Once again Suse Linux 9.0 PRO using Kde 3.1... I just got this upgrade and really do not want to tamper with it.. I am kinda new to Linux.. I just got done with a game engine using Visual Basic and finally decided to dump microsoft... So I formatted my hard drive and installed Linux..Just linux on my system... I did download Gambas 0.92a but did not notice the SDL Sound Componet and If I am correct it would not compile to make a exe. Also I did create some code with Gambas 0.92a and it did work. Help please, Dev __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ From wizardmansite at ...43... Wed May 19 06:56:53 2004 From: wizardmansite at ...43... (Devilyn) Date: Tue, 18 May 2004 21:56:53 -0700 (PDT) Subject: [Gambas-user] Ruckus Cure! Message-ID: <20040519045653.49131.qmail@...318...> Ok Well I installed all the files needed that are on the web site.. and guess what version 92a works perfect so far! I even got the sound SDL working.. Humm ok well in 0.92a when it loads and the introscreen pops up it says it is version 0.92 not 0.92a.. But it seems to work. Also I tryed version 0.93a well it did install and the sound sdl was in there but for some reason after I choose the Sound SDL on the list the ok button at the bottom of the screen will not work.. Also when I try to make an executeable file off the main gambus screen it will not work it just says as the bottom of the screen makin the file or what ever it says... anyway I am so happy to get gambas 0.92a to work... I really look forward to seein version 0.93a or b workin... Also my programming skills have got a lot better... I have started working on my Role Playing Game... My goal is to make a toolkit that people can use to make games. Because you do not need speed in the program.. as it is kinda turn based.. Also I really wanna make it internet playable with client and server... So yes my toolkit is comin along fine! But there will be a lot of questions.. ok bye for now, and thanks for the great basic programming tool. Dev __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ From rizky at ...225... Wed May 19 07:37:23 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Wed, 19 May 2004 12:37:23 +0700 Subject: [Gambas-user] File Save As In-Reply-To: <002601c43771$c3dd0310$030a0a0a@...360...> References: <1271272397@...20...> <002601c43771$c3dd0310$030a0a0a@...360...> Message-ID: <6.0.0.22.2.20040519123522.01d5d588@...329...> Hi, i see that gambas hasn't have a menu to save the form as a new name.. (Save As) this will make the developer more easier to create a form that similiar with the form that already exists in the current project.. will gambas have that tool ?? From gambas at ...1... Wed May 19 09:15:17 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 09:15:17 +0200 Subject: [Gambas-user] File Save As In-Reply-To: <6.0.0.22.2.20040519123522.01d5d588@...329...> References: <1271272397@...20...> <002601c43771$c3dd0310$030a0a0a@...360...> <6.0.0.22.2.20040519123522.01d5d588@...329...> Message-ID: <200405190915.17229.gambas@...1...> On Wednesday 19 May 2004 07:37, Rizky Tahara Shita wrote: > Hi, > > i see that gambas hasn't have a menu to save the form as a new name.. (Save > As) this will make the developer more easier to create a form that similiar > with the form that already exists in the current project.. > will gambas have that tool ?? > > No, but you can already create a form from a already existing one in the form creation dialog. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 19 09:19:50 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 09:19:50 +0200 Subject: [Gambas-user] Ruckus Cure! In-Reply-To: <20040519045653.49131.qmail@...318...> References: <20040519045653.49131.qmail@...318...> Message-ID: <200405190919.50354.gambas@...1...> On Wednesday 19 May 2004 06:56, Devilyn wrote: > Ok Well I installed all the files needed that are on > the web site.. and guess what version 92a works > perfect so far! I even got the sound SDL working.. > Humm ok well in 0.92a when it loads and the > introscreen pops up it says it is version 0.92 not > 0.92a.. But it seems to work. The letter only means that this is a last minute patch because of a weird bug in the main release I didn't detect. > Also I tryed version > 0.93a well it did install and the sound sdl was in > there but for some reason after I choose the Sound SDL > on the list the ok button at the bottom of the screen > will not work.. Did you removed the 0.92a before installing 0.93a ? Remove all gambas related files (rm -f /opt/gambas if you intelligently kept the default installation directory) and try to recompile from scratch. > Also when I try to make an executeable > file off the main gambus screen it will not work it > just says as the bottom of the screen makin the file > or what ever it says... The "executable" is just located in the project directory and has the same name as the project. It is not a real executable. It is just a "script" that includes all project files and that calls the interpreter. > anyway I am so happy to get > gambas 0.92a to work... I really look forward to seein > version 0.93a or b workin... Also my programming > skills have got a lot better... I have started working > on my Role Playing Game... My goal is to make a > toolkit that people can use to make games. Because you > do not need speed in the program.. as it is kinda turn > based.. Also I really wanna make it internet playable > with client and server... So yes my toolkit is comin > along fine! But there will be a lot of questions.. ok > bye for now, > and thanks for the great basic programming tool. > Dev -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Wed May 19 13:54:35 2004 From: grahame at ...457... (Grahame White) Date: Wed, 19 May 2004 12:54:35 +0100 Subject: [Gambas-user] 0.93a compile problem Message-ID: <200405191254.35614.grahame@...457...> I've downloaded the updated 0.93a source and tried to compile it but I'm getting the following errors : c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share -I/usr/include/qt3/ -D_REENTRANT -g -O2 -pipe -Wall -fno-exceptions -g -Os -c moc_qeditor.cpp -fPIC -DPIC -o moc_qeditor.lo moc_qeditor.cpp:30: error: no `void QEditor::initMetaObject()' member function declared in class `QEditor' moc_qeditor.cpp: In member function `void QEditor::initMetaObject()': moc_qeditor.cpp:34: error: `badSuperclassWarning' undeclared (first use this function) moc_qeditor.cpp:34: error: (Each undeclared identifier is reported only once for each function it appears in.) moc_qeditor.cpp: At global scope: moc_qeditor.cpp:41: error: prototype for `QString QEditor::tr(const char*)' does not match any in class `QEditor' qeditor.h:112: error: candidate is: static QString QEditor::tr(const char*, const char*) moc_qeditor.cpp: In static member function `static QMetaObject* QEditor::staticMetaObject()': moc_qeditor.cpp:135: error: 'class QMetaObject' has no member named ' new_metadata' moc_qeditor.cpp:136: error: 'class QMetaObject' has no member named ' new_metaaccess' moc_qeditor.cpp:138: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:138: error: `QMember' undeclared (first use this function) moc_qeditor.cpp:138: error: parse error before `;' token moc_qeditor.cpp:141: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:141: error: parse error before `;' token moc_qeditor.cpp:144: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:144: error: parse error before `;' token moc_qeditor.cpp:147: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:147: error: parse error before `;' token moc_qeditor.cpp:150: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:150: error: parse error before `;' token moc_qeditor.cpp:153: error: 'struct QMetaData' has no member named 'ptr' moc_qeditor.cpp:153: error: parse error before `;' token moc_qeditor.cpp:156: error: 'struct QMetaData' has no member named 'ptr' It's odd as 0.93 compiled fine :/ I'm using debian/unstable with 2.6.4 kernel gcc 3.3.3 qt 3.2.3 Grahame From nigel at ...38... Wed May 19 15:19:40 2004 From: nigel at ...38... (Nigel Gerrard) Date: Wed, 19 May 2004 14:19:40 +0100 Subject: [Gambas-user] gambas 0.93a References: <200405182325.39296.gambas@...1...> Message-ID: <000e01c43da3$f1c6fcd0$c4954d51@...360...> Benoit, Bug solved: The class name is now in the error message as expected. Nigel ----- Original Message ----- From: "Benoit Minisini" To: Sent: Tuesday, May 18, 2004 10:25 PM Subject: [Gambas-user] gambas 0.93a > Hi everyone, > > I released gambas 0.93a, that should fix the weird bugs encounter in 0.93. > > To Nigel Gerrard: tell me if you got the "missing class name in error message" > bug yet. If you do, send me the project that displays the error message > incorrectly. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From daniel.campos at ...338... Wed May 19 19:23:58 2004 From: daniel.campos at ...338... (Daniel) Date: Wed, 19 May 2004 19:23:58 +0200 Subject: [Gambas-user] Interbase/Firebird In-Reply-To: References: <20040517015231.70897.qmail@...459...> <200405170947.44787.gambas@...1...> Message-ID: <1084987438.3680.4.camel@...40...> El mar, 18-05-2004 a las 04:07, Budi Arief Gusandi escribi?: > Hi.. > > Any component for interbase or firebird ? seems those are cool free > database servers, not like commercial mysql. Well, mysql can be considered commercial just if you buy support, but it is free software... by other side, I think the most interesting thing would be an ODBC component, as it would give access to any kind of database server, even SqlServer and .MDB trough "mdbtools". FireBird is cool, this is true :-) Regards, Daniel Campos > > Thanks > > Budi > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From abidoo.too at ...11... Wed May 19 22:03:28 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Wed, 19 May 2004 22:03:28 +0200 Subject: [Gambas-user] another bug ? Message-ID: <200405192203.28108.abidoo.too@...11...> hi Resize event seem to not work correctly... it just work when maximised the form but not during resizing ! Regards, Fabien Bodard From budi at ...415... Wed May 19 22:06:37 2004 From: budi at ...415... (budi at ...415...) Date: Thu, 20 May 2004 03:06:37 +0700 Subject: [Gambas-user] Interbase/Firebird In-Reply-To: <1084987438.3680.4.camel@...40...> References: <20040517015231.70897.qmail@...459...> <200405170947.44787.gambas@...1...> <1084987438.3680.4.camel@...40...> Message-ID: <1084997197.40abbe4da4d60@...416...> This is part of mySQL License ..The Open Source License allows you to use the software at no charge under the condition that if you use MySQL in an application you redistribute, the complete source code for your application must be available and freely redistributable under reasonable conditions.... So if i make a commercial application using mySQL, i must give the source as well, how can i get momey from it then ? Thanks Quoting Daniel : > El mar, 18-05-2004 a las 04:07, Budi Arief Gusandi escribi=F3: > > Hi.. > >=20 > > Any component for interbase or firebird ? seems those are cool free =20 > > database servers, not like commercial mysql. > > Well, mysql can be considered commercial just if you buy support, but it > is free software... by other side, I think the most interesting thing > would be an ODBC component, as it would give access to any kind of > database server, even SqlServer and .MDB trough "mdbtools".=20 > > FireBird is cool, this is true :-) > > Regards, > > Daniel Campos > > >=20 > > Thanks > >=20 > > Budi > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by: SourceForge.net Broadband > > Sign-up now for SourceForge Broadband and get the fastest > > 6.0/768 connection for only $19.95/mo for the first 3 months! > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=3Dclick > > _______________________________________________ > > 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: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 19 22:32:40 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 22:32:40 +0200 Subject: [Gambas-user] 0.93a compile problem In-Reply-To: <200405191254.35614.grahame@...457...> References: <200405191254.35614.grahame@...457...> Message-ID: <200405192232.40169.gambas@...1...> On Wednesday 19 May 2004 13:54, Grahame White wrote: > I've downloaded the updated 0.93a source and tried to compile it but I'm > getting the following errors : > > c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > -I/usr/include/qt3/ -D_REENTRANT -g -O2 -pipe -Wall -fno-exceptions -g -Os > -c moc_qeditor.cpp -fPIC -DPIC -o moc_qeditor.lo > moc_qeditor.cpp:30: error: no `void QEditor::initMetaObject()' member > function > declared in class `QEditor' > moc_qeditor.cpp: In member function `void QEditor::initMetaObject()': > moc_qeditor.cpp:34: error: `badSuperclassWarning' undeclared (first use > this > function) > moc_qeditor.cpp:34: error: (Each undeclared identifier is reported only > once > for each function it appears in.) > moc_qeditor.cpp: At global scope: > moc_qeditor.cpp:41: error: prototype for `QString QEditor::tr(const char*)' > does not match any in class `QEditor' > qeditor.h:112: error: candidate is: static QString QEditor::tr(const char*, > const char*) > moc_qeditor.cpp: In static member function `static QMetaObject* > QEditor::staticMetaObject()': > moc_qeditor.cpp:135: error: 'class QMetaObject' has no member named ' > new_metadata' > moc_qeditor.cpp:136: error: 'class QMetaObject' has no member named ' > new_metaaccess' > moc_qeditor.cpp:138: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:138: error: `QMember' undeclared (first use this function) > moc_qeditor.cpp:138: error: parse error before `;' token > moc_qeditor.cpp:141: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:141: error: parse error before `;' token > moc_qeditor.cpp:144: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:144: error: parse error before `;' token > moc_qeditor.cpp:147: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:147: error: parse error before `;' token > moc_qeditor.cpp:150: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:150: error: parse error before `;' token > moc_qeditor.cpp:153: error: 'struct QMetaData' has no member named 'ptr' > moc_qeditor.cpp:153: error: parse error before `;' token > moc_qeditor.cpp:156: error: 'struct QMetaData' has no member named 'ptr' > > > > It's odd as 0.93 compiled fine :/ > > I'm using debian/unstable > with 2.6.4 kernel > gcc 3.3.3 > qt 3.2.3 > > Grahame > I made a stupid bug in the configure script that prevents moc to be detected on systems where it is located in an exotic directory. I will release a 0.93b to fix it soon. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Wed May 19 22:59:23 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 19 May 2004 16:59:23 -0400 Subject: [Gambas-user] Interbase/Firebird In-Reply-To: <1084997197.40abbe4da4d60@...416...> References: <20040517015231.70897.qmail@...459...> <1084987438.3680.4.camel@...40...> <1084997197.40abbe4da4d60@...416...> Message-ID: <200405191656.47414.sourceforge-raindog2@...94...> On Wednesday 19 May 2004 16:06, budi at ...415... wrote: > So if i make a commercial application using mySQL, i must give > the source as well, how can i get momey from it then ? The same as with Qt.... you pay them money, they sell you a commercial license. This is also the reason people have asked for a Gtk component, my answer to which is "well then, get coding". I think it would be better for Gambas to support more databases and more graphical toolkits, but my preferred ones are already supported and I don't feel a need to contribute code so that others are enabled to create proprietary software. But I haven't actually written any components for Gambas yet, so that's an issue for people like Benoit, Nigel and Daniel to deal with. For what it's worth, I myself use mysql and Qt in software I develop for clients (some written in Gambas), and my clients get the source to what I develop but still manage to pay me for it. Rob From gambas at ...1... Wed May 19 22:34:27 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 22:34:27 +0200 Subject: [Gambas-user] another bug ? In-Reply-To: <200405192203.28108.abidoo.too@...11...> References: <200405192203.28108.abidoo.too@...11...> Message-ID: <200405192234.27960.gambas@...1...> On Wednesday 19 May 2004 22:03, Fabien Bodard wrote: > hi > > Resize event seem to not work correctly... it just work when maximised the > form but not during resizing ! > > Regards, Fabien Bodard > > Are you sure ? When I resize a form in the IDE, the width and height properties are updated... -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Wed May 19 23:14:45 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Wed, 19 May 2004 23:14:45 +0200 Subject: [Gambas-user] another bug ? In-Reply-To: <200405192234.27960.gambas@...1...> References: <200405192203.28108.abidoo.too@...11...> <200405192234.27960.gambas@...1...> Message-ID: <200405192314.45184.abidoo.too@...11...> Le mercredi 19 Mai 2004 22:34, Benoit Minisini a ?crit : > On Wednesday 19 May 2004 22:03, Fabien Bodard wrote: > > hi > > > > Resize event seem to not work correctly... it just work when maximised > > the form but not during resizing ! > > > > Regards, Fabien Bodard > > Are you sure ? When I resize a form in the IDE, the width and height > properties are updated... ' Gambas class file PUBLIC SUB Form_Resize() ME.Text = ME.width ME.Width = 80 END en fait ce code ne fonctionne pas... impossible de forcer une largeur ou une hauteur... Une option sympa dans la cr?ation d'IDE et que n'a pas vb par ex : ME.LockHeight as boolean ME.LockWidth as Boolean ME.LockPosition as Boolean Fabien From thierry at ...342... Wed May 19 23:41:04 2004 From: thierry at ...342... (Thierry Thomas) Date: Wed, 19 May 2004 23:41:04 +0200 Subject: [Gambas-user] 0.93a: lib.gb.net.curl.so and directories Message-ID: <20040519214104.GA61206@...343...> Hello, I had packaged gambas-0.93 for FreeBSD, and the curl library was installed with all the other libraries, under $PREFIX/lib/gambas. Since gambas-0.93a, it is installed under $PREFIX/lib. I have applied the following patch to gather everything: #v+ --- src/lib/net/curl/Makefile.in.orig Tue May 18 22:54:40 2004 +++ src/lib/net/curl/Makefile.in Wed May 19 21:52:16 2004 @@ -155,18 +155,18 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(libdir) + $(mkinstalldirs) $(DESTDIR)$(pkglibdir) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \ - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \ + echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ + $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p; \ done .c.o: @@ -214,7 +214,7 @@ maintainer-clean-libtool: lib.gb.net.curl.la: $(lib_gb_net_curl_la_OBJECTS) $(lib_gb_net_curl_la_DEPENDENCIES) - $(LINK) -rpath $(libdir) $(lib_gb_net_curl_la_LDFLAGS) $(lib_gb_net_curl_la_OBJECTS) $(lib_gb_net_curl_la_LIBADD) $(LIBS) + $(LINK) -rpath $(pkglibdir) $(lib_gb_net_curl_la_LDFLAGS) $(lib_gb_net_curl_la_OBJECTS) $(lib_gb_net_curl_la_LIBADD) $(LIBS) tags: TAGS @@ -294,7 +294,7 @@ install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: - $(mkinstalldirs) $(DESTDIR)$(libdir) + $(mkinstalldirs) $(DESTDIR)$(pkglibdir) mostlyclean-generic: @@ -348,7 +348,7 @@ install-exec-local: - @cp -f *.component $(libdir) + @cp -f *.component $(pkglibdir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. #v- Regards, -- Th. Thomas. From gambas at ...1... Wed May 19 23:57:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 23:57:16 +0200 Subject: [Gambas-user] 0.93a: lib.gb.net.curl.so and directories In-Reply-To: <20040519214104.GA61206@...343...> References: <20040519214104.GA61206@...343...> Message-ID: <200405192357.16213.gambas@...1...> On Wednesday 19 May 2004 23:41, Thierry Thomas wrote: > Hello, > > I had packaged gambas-0.93 for FreeBSD, and the curl library was > installed with all the other libraries, under $PREFIX/lib/gambas. > > Since gambas-0.93a, it is installed under $PREFIX/lib. > > I have applied the following patch to gather everything: > > #v+ > --- src/lib/net/curl/Makefile.in.orig Tue May 18 22:54:40 2004 > +++ src/lib/net/curl/Makefile.in Wed May 19 21:52:16 2004 > @@ -155,18 +155,18 @@ > > install-libLTLIBRARIES: $(lib_LTLIBRARIES) > @$(NORMAL_INSTALL) > - $(mkinstalldirs) $(DESTDIR)$(libdir) > + $(mkinstalldirs) $(DESTDIR)$(pkglibdir) > @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ > if test -f $$p; then \ > - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p > $(DESTDIR)$(libdir)/$$p"; \ - $(LIBTOOL) --mode=install $(INSTALL) $$p > $(DESTDIR)$(libdir)/$$p; \ + echo "$(LIBTOOL) --mode=install > $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ + $(LIBTOOL) > --mode=install $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p; \ else :; fi; \ > done > > uninstall-libLTLIBRARIES: > @$(NORMAL_UNINSTALL) > list='$(lib_LTLIBRARIES)'; for p in $$list; do \ > - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ > + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p; \ > done > > .c.o: > @@ -214,7 +214,7 @@ > maintainer-clean-libtool: > > lib.gb.net.curl.la: $(lib_gb_net_curl_la_OBJECTS) > $(lib_gb_net_curl_la_DEPENDENCIES) - $(LINK) -rpath $(libdir) > $(lib_gb_net_curl_la_LDFLAGS) $(lib_gb_net_curl_la_OBJECTS) > $(lib_gb_net_curl_la_LIBADD) $(LIBS) + $(LINK) -rpath $(pkglibdir) > $(lib_gb_net_curl_la_LDFLAGS) $(lib_gb_net_curl_la_OBJECTS) > $(lib_gb_net_curl_la_LIBADD) $(LIBS) > > tags: TAGS > > @@ -294,7 +294,7 @@ > install-strip: > $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install > installdirs: > - $(mkinstalldirs) $(DESTDIR)$(libdir) > + $(mkinstalldirs) $(DESTDIR)$(pkglibdir) > > > mostlyclean-generic: > @@ -348,7 +348,7 @@ > > > install-exec-local: > - @cp -f *.component $(libdir) > + @cp -f *.component $(pkglibdir) > > # Tell versions [3.59,3.63) of GNU make to not export all variables. > # Otherwise a system limit (for SysV at least) may be exceeded. > #v- > > Regards, Another stupid bug I did... I will fixed it in 0.93b -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 19 23:23:16 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 May 2004 23:23:16 +0200 Subject: [Gambas-user] another bug ? In-Reply-To: <200405192314.45184.abidoo.too@...11...> References: <200405192203.28108.abidoo.too@...11...> <200405192234.27960.gambas@...1...> <200405192314.45184.abidoo.too@...11...> Message-ID: <200405192323.16584.gambas@...1...> On Wednesday 19 May 2004 23:14, Fabien Bodard wrote: > Le mercredi 19 Mai 2004 22:34, Benoit Minisini a ?crit : > > On Wednesday 19 May 2004 22:03, Fabien Bodard wrote: > > > hi > > > > > > Resize event seem to not work correctly... it just work when maximised > > > the form but not during resizing ! > > > > > > Regards, Fabien Bodard > > > > Are you sure ? When I resize a form in the IDE, the width and height > > properties are updated... > > ' Gambas class file > > PUBLIC SUB Form_Resize() > > ME.Text = ME.width > ME.Width = 80 > END > > > en fait ce code ne fonctionne pas... impossible de forcer une largeur ou > une hauteur... > > Une option sympa dans la cr?ation d'IDE et que n'a pas vb > > par ex : > > ME.LockHeight as boolean > ME.LockWidth as Boolean > ME.LockPosition as Boolean > > > > Fabien > Did you set the Border property to Resizable ? -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Wed May 19 23:26:50 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 19 May 2004 17:26:50 -0400 Subject: [Gambas-user] another bug ? In-Reply-To: <200405192314.45184.abidoo.too@...11...> References: <200405192203.28108.abidoo.too@...11...> <200405192234.27960.gambas@...1...> <200405192314.45184.abidoo.too@...11...> Message-ID: <200405191726.50166.sourceforge-raindog2@...94...> On Wednesday 19 May 2004 17:14, Fabien Bodard wrote: > PUBLIC SUB Form_Resize() > ME.Text = ME.width > ME.Width = 80 > END I would think that the above code would cause an infinite loop. You'd need something like "IF ME.Width = 80 THEN RETURN" at the top, I would imagine. Rob From gambas at ...1... Thu May 20 00:14:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 00:14:05 +0200 Subject: [Gambas-user] another bug ? In-Reply-To: <200405191726.50166.sourceforge-raindog2@...94...> References: <200405192203.28108.abidoo.too@...11...> <200405192314.45184.abidoo.too@...11...> <200405191726.50166.sourceforge-raindog2@...94...> Message-ID: <200405200014.05874.gambas@...1...> On Wednesday 19 May 2004 23:26, Rob wrote: > On Wednesday 19 May 2004 17:14, Fabien Bodard wrote: > > PUBLIC SUB Form_Resize() > > ME.Text = ME.width > > ME.Width = 80 > > END > > I would think that the above code would cause an infinite loop. > You'd need something like "IF ME.Width = 80 THEN RETURN" at the > top, I would imagine. > > Rob > > Fortunately, ME.Width = XXX does not raise a Resize event if the width is the same. -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Thu May 20 00:21:46 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 19 May 2004 18:21:46 -0400 Subject: [Gambas-user] gambas 0.93 (actually 0.93a) In-Reply-To: <200405161919.08753.gambas@...1...> References: <200405161919.08753.gambas@...1...> Message-ID: <200405191821.46468.sourceforge-raindog2@...94...> On Sunday 16 May 2004 13:19, Benoit Minisini wrote: > * The installation tree has changed, so that it complies with > Mandrake standards. For example, instead of putting libraries > in /usr/lib, they go in /usr/lib/gambas. Of course, I've been putting them in /usr/lib/gambas-(version)/lib in my RPM's for about the last 10 versions already, thus gbi wants to look in /usr/lib/gambas-(version)/lib/gambas now, so I'll need to rework my spec file when I have time. Sorry, fellow Mandrake users. Rob From budi at ...415... Thu May 20 00:38:12 2004 From: budi at ...415... (budi at ...415...) Date: Thu, 20 May 2004 05:38:12 +0700 Subject: [Gambas-user] Interbase/Firebird In-Reply-To: <200405191656.47414.sourceforge-raindog2@...94...> References: <20040517015231.70897.qmail@...459...> <1084987438.3680.4.camel@...40...> <1084997197.40abbe4da4d60@...416...> <200405191656.47414.sourceforge-raindog2@...94...> Message-ID: <1085006292.40abe1d473cdc@...416...> It's like i make the application for client, paid once and the rest is client's responsibility to modifie and update the application...hmmm not bad Budi Quoting Rob : > On Wednesday 19 May 2004 16:06, budi at ...415... wrote: > > So if i make a commercial application using mySQL, i must give > > the source as well, how can i get momey from it then ? > > The same as with Qt.... you pay them money, they sell you a > commercial license. This is also the reason people have asked > for a Gtk component, my answer to which is "well then, get > coding". I think it would be better for Gambas to support more > databases and more graphical toolkits, but my preferred ones are > already supported and I don't feel a need to contribute code so > that others are enabled to create proprietary software. But I > haven't actually written any components for Gambas yet, so > that's an issue for people like Benoit, Nigel and Daniel to deal > with. > > For what it's worth, I myself use mysql and Qt in software I > develop for clients (some written in Gambas), and my clients get > the source to what I develop but still manage to pay me for it. > > Rob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From budi at ...415... Thu May 20 00:41:57 2004 From: budi at ...415... (budi at ...415...) Date: Thu, 20 May 2004 05:41:57 +0700 Subject: [Gambas-user] 0.93a compile problem In-Reply-To: <200405192232.40169.gambas@...1...> References: <200405191254.35614.grahame@...457...> <200405192232.40169.gambas@...1...> Message-ID: <1085006517.40abe2b558168@...416...> Waaaa...i've just downloaded 0.93a and 0.93b will come out soon ? oh....i'm not lucky this time...useless download...well i might jump and try 0.93b instead of 0.93a ;) Eh..what about the report preview component ? Budi Quoting Benoit Minisini : > On Wednesday 19 May 2004 13:54, Grahame White wrote: > > I've downloaded the updated 0.93a source and tried to compile it but I'm > > getting the following errors : > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > > -I/usr/include/qt3/ -D_REENTRANT -g -O2 -pipe -Wall -fno-exceptions -g -Os > > -c moc_qeditor.cpp -fPIC -DPIC -o moc_qeditor.lo > > moc_qeditor.cpp:30: error: no `void QEditor::initMetaObject()' member > > function > > declared in class `QEditor' > > moc_qeditor.cpp: In member function `void QEditor::initMetaObject()': > > moc_qeditor.cpp:34: error: `badSuperclassWarning' undeclared (first use > > this > > function) > > moc_qeditor.cpp:34: error: (Each undeclared identifier is reported only > > once > > for each function it appears in.) > > moc_qeditor.cpp: At global scope: > > moc_qeditor.cpp:41: error: prototype for `QString QEditor::tr(const > char*)' > > does not match any in class `QEditor' > > qeditor.h:112: error: candidate is: static QString QEditor::tr(const > char*, > > const char*) > > moc_qeditor.cpp: In static member function `static QMetaObject* > > QEditor::staticMetaObject()': > > moc_qeditor.cpp:135: error: 'class QMetaObject' has no member named ' > > new_metadata' > > moc_qeditor.cpp:136: error: 'class QMetaObject' has no member named ' > > new_metaaccess' > > moc_qeditor.cpp:138: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:138: error: `QMember' undeclared (first use this function) > > moc_qeditor.cpp:138: error: parse error before `;' token > > moc_qeditor.cpp:141: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:141: error: parse error before `;' token > > moc_qeditor.cpp:144: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:144: error: parse error before `;' token > > moc_qeditor.cpp:147: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:147: error: parse error before `;' token > > moc_qeditor.cpp:150: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:150: error: parse error before `;' token > > moc_qeditor.cpp:153: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:153: error: parse error before `;' token > > moc_qeditor.cpp:156: error: 'struct QMetaData' has no member named 'ptr' > > > > > > > > It's odd as 0.93 compiled fine :/ > > > > I'm using debian/unstable > > with 2.6.4 kernel > > gcc 3.3.3 > > qt 3.2.3 > > > > Grahame > > > > I made a stupid bug in the configure script that prevents moc to be detected > > on systems where it is located in an exotic directory. > > I will release a 0.93b to fix it soon. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 20 00:50:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 00:50:19 +0200 Subject: [Gambas-user] gambas 0-93b is released Message-ID: <200405200050.19942.gambas@...1...> Here it is! This patch release fixes the problem with the bad moc detection, and --with-moc should work now. I hope it is compilable now :-) -- Benoit Minisini mailto:gambas at ...1... From budi at ...415... Thu May 20 02:44:51 2004 From: budi at ...415... (budi at ...415...) Date: Thu, 20 May 2004 07:44:51 +0700 Subject: [Gambas-user] gambas 0-93b is released In-Reply-To: <200405200050.19942.gambas@...1...> References: <200405200050.19942.gambas@...1...> Message-ID: <1085013891.40abff836a1c3@...416...> If there's a bug in this version, you must release a new with 'c' in the back, so it will be 0.93c ? LOL BTW can application made in gambas also runs in other Desktop such as GNome ? Budi Quoting Benoit Minisini : > Here it is! > > This patch release fixes the problem with the bad moc detection, and > --with-moc should work now. > > I hope it is compilable now :-) > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Thu May 20 05:14:19 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 19 May 2004 23:14:19 -0400 Subject: [Gambas-user] gambas 0-93b is released In-Reply-To: <1085013891.40abff836a1c3@...416...> References: <200405200050.19942.gambas@...1...> <1085013891.40abff836a1c3@...416...> Message-ID: <200405192314.19524.sourceforge-raindog2@...94...> On Wednesday 19 May 2004 20:44, budi at ...415... wrote: > BTW can application made in gambas also runs in other Desktop > such as GNome ? Of course, as long as you have gbx and the components installed... Rob From henrigirard at ...67... Thu May 20 09:51:34 2004 From: henrigirard at ...67... (Henri Girard) Date: Thu, 20 May 2004 09:51:34 +0200 Subject: [Gambas-user] 0.93a compile problem References: <200405191254.35614.grahame@...457...> <200405192232.40169.gambas@...1...> <1085006517.40abe2b558168@...416...> Message-ID: counsole yourself... In french we say never two without 3 ! lol so might come a c version ? but on fedora it compiles fine each time up to now... kind regards Henri ----- Original Message ----- From: To: Sent: Thursday, May 20, 2004 12:41 AM Subject: Re: [Gambas-user] 0.93a compile problem Waaaa...i've just downloaded 0.93a and 0.93b will come out soon ? oh....i'm not lucky this time...useless download...well i might jump and try 0.93b instead of 0.93a ;) Eh..what about the report preview component ? Budi Quoting Benoit Minisini : > On Wednesday 19 May 2004 13:54, Grahame White wrote: > > I've downloaded the updated 0.93a source and tried to compile it but I'm > > getting the following errors : > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > > -I/usr/include/qt3/ -D_REENTRANT -g -O2 -pipe -Wall -fno-exceptions -g -Os > > -c moc_qeditor.cpp -fPIC -DPIC -o moc_qeditor.lo > > moc_qeditor.cpp:30: error: no `void QEditor::initMetaObject()' member > > function > > declared in class `QEditor' > > moc_qeditor.cpp: In member function `void QEditor::initMetaObject()': > > moc_qeditor.cpp:34: error: `badSuperclassWarning' undeclared (first use > > this > > function) > > moc_qeditor.cpp:34: error: (Each undeclared identifier is reported only > > once > > for each function it appears in.) > > moc_qeditor.cpp: At global scope: > > moc_qeditor.cpp:41: error: prototype for `QString QEditor::tr(const > char*)' > > does not match any in class `QEditor' > > qeditor.h:112: error: candidate is: static QString QEditor::tr(const > char*, > > const char*) > > moc_qeditor.cpp: In static member function `static QMetaObject* > > QEditor::staticMetaObject()': > > moc_qeditor.cpp:135: error: 'class QMetaObject' has no member named ' > > new_metadata' > > moc_qeditor.cpp:136: error: 'class QMetaObject' has no member named ' > > new_metaaccess' > > moc_qeditor.cpp:138: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:138: error: `QMember' undeclared (first use this function) > > moc_qeditor.cpp:138: error: parse error before `;' token > > moc_qeditor.cpp:141: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:141: error: parse error before `;' token > > moc_qeditor.cpp:144: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:144: error: parse error before `;' token > > moc_qeditor.cpp:147: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:147: error: parse error before `;' token > > moc_qeditor.cpp:150: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:150: error: parse error before `;' token > > moc_qeditor.cpp:153: error: 'struct QMetaData' has no member named 'ptr' > > moc_qeditor.cpp:153: error: parse error before `;' token > > moc_qeditor.cpp:156: error: 'struct QMetaData' has no member named 'ptr' > > > > > > > > It's odd as 0.93 compiled fine :/ > > > > I'm using debian/unstable > > with 2.6.4 kernel > > gcc 3.3.3 > > qt 3.2.3 > > > > Grahame > > > > I made a stupid bug in the configure script that prevents moc to be detected > > on systems where it is located in an exotic directory. > > I will release a 0.93b to fix it soon. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > 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: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=ick _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mauriiiii3001 at ...325... Thu May 20 20:19:06 2004 From: mauriiiii3001 at ...325... (Pozzo) Date: Thu, 20 May 2004 20:19:06 +0200 Subject: [Gambas-user] Home directory Message-ID: <40ACF69A.800@...325...> hi All, I'm wirting a program were I need to create a directory in the home directory but I don't know how to do it. From abidoo.too at ...11... Thu May 20 20:40:29 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Thu, 20 May 2004 20:40:29 +0200 Subject: [Gambas-user] Home directory In-Reply-To: <40ACF69A.800@...325...> References: <40ACF69A.800@...325...> Message-ID: <200405202040.29568.abidoo.too@...11...> Le jeudi 20 Mai 2004 20:19, Pozzo a ?crit : > hi All, > I'm wirting a program were I need to create a directory in the home > directory but I don't know how to do it. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi Pozzo MKDIR Application.Home &/ "mydir" Regards Fabien Bodard From mark.dootson at ...462... Fri May 21 16:25:56 2004 From: mark.dootson at ...462... (Mark Dootson) Date: Fri, 21 May 2004 15:25:56 +0100 Subject: [Gambas-user] Application.Env Message-ID: <200405211525.56332.mark.dootson@...462...> Hi, I'm new to the list but can't find any mention of the following. Is anyone else setting any environment variables? Maybe I missed something on the list but the _put method of .ApplicationEnv calls app_env_get instead of app_env_put? So the environment accessed by Application.Env is effectively read only. I'm not a C programmer so I don't know how to post a proper patch - but changing gbx_c_application.c ...... PUBLIC GB_DESC NATIVE_AppEnv[] = ............. ............. GB_METHOD("_put", NULL, app_env_get, "(Value)s(Key)s"), to GB_METHOD("_put", NULL, app_env_put, "(Value)s(Key)s"), did the trick for me. Thanks for a brilliant application. Mark -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: SpamReport.txt URL: From gambas at ...1... Fri May 21 19:54:08 2004 From: gambas at ...1... (Benoit Minisini) Date: Fri, 21 May 2004 19:54:08 +0200 Subject: [Gambas-user] Application.Env In-Reply-To: <200405211525.56332.mark.dootson@...462...> References: <200405211525.56332.mark.dootson@...462...> Message-ID: <200405211954.08680.gambas@...1...> On Friday 21 May 2004 16:25, Mark Dootson wrote: > Hi, I'm new to the list but can't find any mention of the following. > Is anyone else setting any environment variables? > Maybe I missed something on the list but the _put method of .ApplicationEnv > calls app_env_get instead of app_env_put? So the environment accessed by > Application.Env is effectively read only. > > I'm not a C programmer so I don't know how to post a proper patch - but > changing gbx_c_application.c ...... > > PUBLIC GB_DESC NATIVE_AppEnv[] = > ............. > > ............. > GB_METHOD("_put", NULL, app_env_get, "(Value)s(Key)s"), > > to > > GB_METHOD("_put", NULL, app_env_put, "(Value)s(Key)s"), > > > did the trick for me. > > Thanks for a brilliant application. > > Mark Oh my god! You are right, I made an awful thoughtless blunder ;-) I will fix it in the next version. Regards, -- Benoit Minisini mailto:gambas at ...1... From rizky at ...225... Sat May 22 07:22:05 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Sat, 22 May 2004 12:22:05 +0700 Subject: [Gambas-user] gambas 0.93 In-Reply-To: <200405161919.08753.gambas@...1...> References: <200405161919.08753.gambas@...1...> Message-ID: <6.0.0.22.2.20040522122030.01be3558@...329...> At 00:19 17/05/2004, you wrote: >Hi, everybody, > >I'm thoughtless :-) I forgot to announce the release of 0.93 here and on >freshmeat ! * Window.TopOnly and Window.SkipTaskbar now should work correctly. seems it still not working for the example that i have posted a few days ago... :( and on 0.93, the datareportexample not working... it raise error when i try click the screen button or the printer button... From gambas at ...1... Sat May 22 10:31:26 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 May 2004 10:31:26 +0200 Subject: [Gambas-user] gambas 0.93 In-Reply-To: <6.0.0.22.2.20040522122030.01be3558@...329...> References: <200405161919.08753.gambas@...1...> <6.0.0.22.2.20040522122030.01be3558@...329...> Message-ID: <200405221031.26824.gambas@...1...> On Saturday 22 May 2004 07:22, Rizky Tahara Shita wrote: > At 00:19 17/05/2004, you wrote: > >Hi, everybody, > > > >I'm thoughtless :-) I forgot to announce the release of 0.93 here and on > >freshmeat ! > > * Window.TopOnly and Window.SkipTaskbar now should work correctly. > seems it still not working for the example that i have posted a few days > ago... :( You must use a compliant window manager as explained on the web site. KDE and GNOME are. Otherwise, these two properties do not work. > > and on 0.93, the datareportexample not working... it raise error when i try > click the screen button or the printer button... > It works here. Which error message exactly, and where ? Regards, -- Benoit Minisini mailto:gambas at ...1... From vbd950 at ...43... Sat May 22 14:51:02 2004 From: vbd950 at ...43... (locke demosthenes) Date: Sat, 22 May 2004 05:51:02 -0700 (PDT) Subject: [Gambas-user] Using HTTPClient Message-ID: <20040522125102.23881.qmail@...463...> I've been trying to write a program which downloads debian packages lists, extracts them, lists them, allows you to download a package, and uses alien to convert it to a slackware package, then installs it. Basically, I love the speed of slackware, but I miss the ability to look through a huge list of packages. Swarett's list is much smaller. Right now, I'm stuck on the first stop though. I looked at the HTTP example, and it looks great. The problem is, although I include gb.Net in my project, it still doesn't have HTTPClient. How do I get that? My second question, can gb.Compress decompress tar.gz files, and if so how? Thanks in advance --Dan __________________________________ Do you Yahoo!? Yahoo! Domains ? Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer From mauriiiii3001 at ...325... Sat May 22 15:10:43 2004 From: mauriiiii3001 at ...325... (Pozzo) Date: Sat, 22 May 2004 15:10:43 +0200 Subject: [Gambas-user] ./ & root problem Message-ID: <40AF5153.9000904@...325...> Hi All, I'm writing a program to simplify the instalations of programs, it should automatize the ./configue, make , make install procedure and search for the program wich it dipends, but I'm just starting and I've already found a problem! after extracting the file I've launched the ./configure command: EXEC [ext &/ nome &/ "./configure"]WAIT where ext and nome complete the path where I'extrated the files. The problem is that the output of ./configure is sent to the ./ directory of my program and not to the ./ directory of the configure, it means that all the modifications made by configure and all the files created by it are stored in /home/evilangel/Gambas/gIP (where my program run) and not in /home/evilangel/.gIP/! Another thing how can I execute a program like root?? Please help me thanks Maurizio From gambas at ...1... Sat May 22 15:30:20 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 May 2004 15:30:20 +0200 Subject: [Gambas-user] Using HTTPClient In-Reply-To: <20040522125102.23881.qmail@...463...> References: <20040522125102.23881.qmail@...463...> Message-ID: <200405221530.20402.gambas@...1...> On Saturday 22 May 2004 14:51, locke demosthenes wrote: > I've been trying to write a program which downloads > debian packages lists, extracts them, lists them, > allows you to download a package, and uses alien to > convert it to a slackware package, then installs it. > Basically, I love the speed of slackware, but I miss > the ability to look through a huge list of packages. > Swarett's list is much smaller. Right now, I'm stuck > on the first stop though. I looked at the HTTP > example, and it looks great. The problem is, although > I include gb.Net in my project, it still doesn't have > HTTPClient. How do I get that? You need the gb.net.curl component too. > My second question, > can gb.Compress decompress tar.gz files, and if so > how? Thanks in advance > > --Dan > If you decompress a tar.gz file with gb.compress, you will get the .tar file, which maybe is not what your need. Call "tar" directly with EXEC or SHELL. It is far easier IMHO! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sat May 22 15:34:28 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 May 2004 15:34:28 +0200 Subject: [Gambas-user] ./ & root problem In-Reply-To: <40AF5153.9000904@...325...> References: <40AF5153.9000904@...325...> Message-ID: <200405221534.28057.gambas@...1...> On Saturday 22 May 2004 15:10, Pozzo wrote: > Hi All, > I'm writing a program to simplify the instalations of programs, it > should automatize the ./configue, make , make install procedure and > search for the program wich it dipends, but I'm just starting and I've > already found a problem! after extracting the file I've launched the > ./configure command: > > EXEC [ext &/ nome &/ "./configure"]WAIT > > where ext and nome complete the path where I'extrated the files. > The problem is that the output of ./configure is sent to the ./ > directory of my program and not to the ./ directory of the configure, it > means that all the modifications made by configure and all the files > created by it are stored in /home/evilangel/Gambas/gIP (where my program > run) and not in /home/evilangel/.gIP/! the process ran by EXEC get its current directory, which is the project directory when you are in the IDE. You can use the SHELL command to workaround this: SHELL "(cd TheRealPath; ./configure) > > > Another thing how can I execute a program like root?? By being root !? More seriously, this needs calling the "su" command with EXEC or SHELL, but I don't know if sending it the root password with PRINT works. I never tried. Regards, -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sat May 22 23:01:24 2004 From: grahame at ...457... (Grahame White) Date: Sat, 22 May 2004 22:01:24 +0100 Subject: [Gambas-user] Autocomplete bug? In-Reply-To: <200405162211.36227.grahame@...457...> References: <200405162059.06994.grahame@...457...> <200405162239.32218.gambas@...1...> <200405162211.36227.grahame@...457...> Message-ID: <200405222201.24570.grahame@...457...> On Sunday 16 May 2004 22:11, Grahame White wrote: > > > > > I'm running gambas 0.93 on Debian/Unstable > > > > > > compiled with gcc 3.3.3 > > > > > > > > Grahame > > > > > > > > It works here! Mumf... > > > > > > > > Which version of QT and which window manager do you use ? > > > > > > I've got qt 3.2.3 installed and I use fluxbox for my wm > > > > > > Grahame > > > > What happens if you use KDM or MetaCity ? > > I gave it a try on metacity and it seemed to work ok. I'm not sure that > it's a bug in fluxbox but maybe to do with the focus model I use, > semi-sloppy with no auto raise. Perhaps gambas is getting confused as to > which window is supposed to be in focus? > > I'll test this a bit more tomorrow, unless you have any other ides :) > > Grahame I gave this a bit more testing in fluxbox with the 0.93b version of gambas. I'm still getting the same problem. I've had it happen in metacity when I tested in there too. It seems to happen when the autocomplete window is opened off the right edge of the editor, for example when a long line of code is entered. When this happens gambas seems to get a little confused. From what I've been able to work out by running the gambas ide in itself is that it thinks that the autocomplete window isn't in use and drops the variables that the autocomplete events would use. However it doesn't actually close the autocomplete window. So what happens is that when an event is called that would use the variables, in this case $hEditor.Frozen from FCompletion line 338, it obviously doesn't exist any more and throws up an error saying so. I have also noticed that since the updated version of gambas when this bug occurs it doesn't drop me straight back to the commandline anymore. It now gives me this gambas error first : This application has raised an unexpected error and must abort. [13] Null object. At: FCompletion.InsertItem.338 I hope this is of some help and that my rambling hasn't bored you for nothing ;) Grahame > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From abidoo.too at ...11... Sun May 23 15:16:12 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 23 May 2004 15:16:12 +0200 Subject: [Gambas-user] Need help with database. Message-ID: <200405231516.12662.abidoo.too@...11...> I'm trying to use the gb method for create a new database insteed the SQL one. But ... i don't understand how to add fields in a table.... Fabien This is a part of my test code DIM Fic AS File DIM stxt AS String DIM i AS Integer DIM j AS Integer DIM CurTable AS Table con = NEW Connection con.Type = "mysql" con.Host = "localhost" Con.Login = "root" con.open 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") Con.Database.Find("vitis") IF NOT Con.Tables.Exist("parcellaire") THEN CurTable = Con.Tables.Create("Parcellaire") CurTable.Field.Create("idparc", gb.Integer,,0) CurTable.Field.Create("proprietaire", gb.String, 30," ") CurTable.Field.Create("fv", gb.String, 3," ") CurTable.Field.Create("idcommune", gb.Integer, ,0) 'CurTable.Field.Create("idcommune", gb.String, 30," ") CurTable.Field.Create("lieudit", gb.String, 30," ") CurTable.Field.Create("section", gb.String, 3," ") CurTable.Field.Create("cadastre", gb.integer,, 0 ) CurTable.Field.Create("Surface", gb.Float,, 0) CurTable.Field.Create("nom", gb.string, 30, 0) CurTable.Field.Create("idCepage", gb.Integer,, 0) CurTable.Field.Create("Couleur", gb.string, 15, 0) CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") CurTable.Field.Create("surfaceplante", gb.Float,, 0) CurTable.Field.Create("idpg", gb.Integer,, 0) CurTable.Field.Create("entrerang", gb.float,, 0) CurTable.Field.Create("intercep", gb.float,, 0) CurTable.Field.Create("abouture", gb.string, 30, 0) FOR EACH Curtable.Field PRINT Curtable.Field!name NEXT From gambas at ...1... Sun May 23 18:00:28 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 18:00:28 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405231516.12662.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> Message-ID: <200405231800.28148.gambas@...1...> On Sunday 23 May 2004 15:16, Fabien Bodard wrote: > I'm trying to use the gb method for create a new database insteed the SQL > one. > > But ... i don't understand how to add fields in a table.... > > Fabien > > This is a part of my test code > > DIM Fic AS File > DIM stxt AS String > DIM i AS Integer > DIM j AS Integer > > DIM CurTable AS Table > con = NEW Connection > con.Type = "mysql" > con.Host = "localhost" > Con.Login = "root" > > con.open > 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? > IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") > Con.Database.Find("vitis") > IF NOT Con.Tables.Exist("parcellaire") THEN > CurTable = Con.Tables.Create("Parcellaire") > > CurTable.Field.Create("idparc", gb.Integer,,0) > CurTable.Field.Create("proprietaire", gb.String, 30," ") > CurTable.Field.Create("fv", gb.String, 3," ") > CurTable.Field.Create("idcommune", gb.Integer, ,0) > 'CurTable.Field.Create("idcommune", gb.String, 30," ") > CurTable.Field.Create("lieudit", gb.String, 30," ") > CurTable.Field.Create("section", gb.String, 3," ") > CurTable.Field.Create("cadastre", gb.integer,, 0 ) > CurTable.Field.Create("Surface", gb.Float,, 0) > CurTable.Field.Create("nom", gb.string, 30, 0) > CurTable.Field.Create("idCepage", gb.Integer,, 0) > CurTable.Field.Create("Couleur", gb.string, 15, 0) > CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") > CurTable.Field.Create("surfaceplante", gb.Float,, 0) > CurTable.Field.Create("idpg", gb.Integer,, 0) > CurTable.Field.Create("entrerang", gb.float,, 0) > CurTable.Field.Create("intercep", gb.float,, 0) > CurTable.Field.Create("abouture", gb.string, 30, 0) > > FOR EACH Curtable.Field > PRINT Curtable.Field!name > NEXT > And then... CurTable.Update to create the table. Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Sun May 23 18:55:17 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 23 May 2004 18:55:17 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405231800.28148.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405231800.28148.gambas@...1...> Message-ID: <200405231855.17845.abidoo.too@...11...> Le dimanche 23 Mai 2004 18:00, Benoit Minisini a ?crit : > On Sunday 23 May 2004 15:16, Fabien Bodard wrote: > > I'm trying to use the gb method for create a new database insteed the SQL > > one. > > > > But ... i don't understand how to add fields in a table.... > > > > Fabien > > > > This is a part of my test code > > > > DIM Fic AS File > > DIM stxt AS String > > DIM i AS Integer > > DIM j AS Integer > > > > DIM CurTable AS Table > > con = NEW Connection > > con.Type = "mysql" > > con.Host = "localhost" > > Con.Login = "root" > > > > con.open > > 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? > > IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") > > Con.Database.Find("vitis") > > IF NOT Con.Tables.Exist("parcellaire") THEN > > CurTable = Con.Tables.Create("Parcellaire") > > > > CurTable.Field.Create("idparc", gb.Integer,,0) > > CurTable.Field.Create("proprietaire", gb.String, 30," ") > > CurTable.Field.Create("fv", gb.String, 3," ") > > CurTable.Field.Create("idcommune", gb.Integer, ,0) > > 'CurTable.Field.Create("idcommune", gb.String, 30," ") > > CurTable.Field.Create("lieudit", gb.String, 30," ") > > CurTable.Field.Create("section", gb.String, 3," ") > > CurTable.Field.Create("cadastre", gb.integer,, 0 ) > > CurTable.Field.Create("Surface", gb.Float,, 0) > > CurTable.Field.Create("nom", gb.string, 30, 0) > > CurTable.Field.Create("idCepage", gb.Integer,, 0) > > CurTable.Field.Create("Couleur", gb.string, 15, 0) > > CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") > > CurTable.Field.Create("surfaceplante", gb.Float,, 0) > > CurTable.Field.Create("idpg", gb.Integer,, 0) > > CurTable.Field.Create("entrerang", gb.float,, 0) > > CurTable.Field.Create("intercep", gb.float,, 0) > > CurTable.Field.Create("abouture", gb.string, 30, 0) > > > > FOR EACH Curtable.Field > > PRINT Curtable.Field!name > > NEXT > > And then... CurTable.Update to create the table. > > Regards, it say me that i need ... to define primarykey but when i do it by CurTable.Field.Primarykey.Add("idparc") , it say me ... Not an object ! Fabien From gambas at ...1... Sun May 23 19:06:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 19:06:38 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405231855.17845.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> <200405231800.28148.gambas@...1...> <200405231855.17845.abidoo.too@...11...> Message-ID: <200405231906.38158.gambas@...1...> On Sunday 23 May 2004 18:55, Fabien Bodard wrote: > Le dimanche 23 Mai 2004 18:00, Benoit Minisini a ?crit : > > On Sunday 23 May 2004 15:16, Fabien Bodard wrote: > > > I'm trying to use the gb method for create a new database insteed the > > > SQL one. > > > > > > But ... i don't understand how to add fields in a table.... > > > > > > Fabien > > > > > > This is a part of my test code > > > > > > DIM Fic AS File > > > DIM stxt AS String > > > DIM i AS Integer > > > DIM j AS Integer > > > > > > DIM CurTable AS Table > > > con = NEW Connection > > > con.Type = "mysql" > > > con.Host = "localhost" > > > Con.Login = "root" > > > > > > con.open > > > 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? > > > IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") > > > Con.Database.Find("vitis") > > > IF NOT Con.Tables.Exist("parcellaire") THEN > > > CurTable = Con.Tables.Create("Parcellaire") > > > > > > CurTable.Field.Create("idparc", gb.Integer,,0) > > > CurTable.Field.Create("proprietaire", gb.String, 30," ") > > > CurTable.Field.Create("fv", gb.String, 3," ") > > > CurTable.Field.Create("idcommune", gb.Integer, ,0) > > > 'CurTable.Field.Create("idcommune", gb.String, 30," ") > > > CurTable.Field.Create("lieudit", gb.String, 30," ") > > > CurTable.Field.Create("section", gb.String, 3," ") > > > CurTable.Field.Create("cadastre", gb.integer,, 0 ) > > > CurTable.Field.Create("Surface", gb.Float,, 0) > > > CurTable.Field.Create("nom", gb.string, 30, 0) > > > CurTable.Field.Create("idCepage", gb.Integer,, 0) > > > CurTable.Field.Create("Couleur", gb.string, 15, 0) > > > CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") > > > CurTable.Field.Create("surfaceplante", gb.Float,, 0) > > > CurTable.Field.Create("idpg", gb.Integer,, 0) > > > CurTable.Field.Create("entrerang", gb.float,, 0) > > > CurTable.Field.Create("intercep", gb.float,, 0) > > > CurTable.Field.Create("abouture", gb.string, 30, 0) > > > > > > FOR EACH Curtable.Field > > > PRINT Curtable.Field!name > > > NEXT > > > > And then... CurTable.Update to create the table. > > > > Regards, > > it say me that i need ... to define primarykey but when i do it by > > CurTable.Field.Primarykey.Add("idparc") > > , it say me ... Not an object ! > > Fabien > CurTable.PrimaryKey = [ "Field1", "Field2", ... ] Do it before the update of course. -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 23 20:36:07 2004 From: grahame at ...457... (Grahame White) Date: Sun, 23 May 2004 19:36:07 +0100 Subject: [Gambas-user] Create an array inside a class Message-ID: <200405231936.07106.grahame@...457...> Probably another silly question on my part but here goes :) I'm trying to create a class that has an array of shorts in it, something like this : list.class public name as string public row as short[] I then declare a public version : global.class static public mylist as list So far all this seems to work. I've been trying to add 10 lines to row like this : fmain.class public sub form_open() dim i as byte for i = 1 to 10 global.mylist.row.add(0) next end And this is where I'm getting problems. When I try running this short snippet of code all I get is a 'Null Object' error. So what is the correct way to do this? I've looked in the docs they sort of skim over the subject of arrays and the examples don't cover this much either. Grahame From gambas at ...1... Sun May 23 20:41:36 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 20:41:36 +0200 Subject: [Gambas-user] Create an array inside a class In-Reply-To: <200405231936.07106.grahame@...457...> References: <200405231936.07106.grahame@...457...> Message-ID: <200405232041.36965.gambas@...1...> On Sunday 23 May 2004 20:36, Grahame White wrote: > Probably another silly question on my part but here goes :) > > I'm trying to create a class that has an array of shorts in it, something > like this : > > list.class > > public name as string > public row as short[] > > I then declare a public version : > > global.class > > static public mylist as list > > So far all this seems to work. I've been trying to add 10 lines to row like > this : > > fmain.class > > public sub form_open() > > dim i as byte > > for i = 1 to 10 > global.mylist.row.add(0) > next > > end > > > And this is where I'm getting problems. When I try running this short > snippet of code all I get is a 'Null Object' error. So what is the correct > way to do this? I've looked in the docs they sort of skim over the subject > of arrays and the examples don't cover this much either. > > Grahame > You must instanciate your array first. This way, for example, list.class public name as string public row as NEW short[] Regards, -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 23 21:02:06 2004 From: grahame at ...457... (Grahame White) Date: Sun, 23 May 2004 20:02:06 +0100 Subject: [Gambas-user] Create an array inside a class In-Reply-To: <200405232041.36965.gambas@...1...> References: <200405231936.07106.grahame@...457...> <200405232041.36965.gambas@...1...> Message-ID: <200405232002.06713.grahame@...457...> > > > > I then declare a public version : > > > > global.class > > > > static public mylist as list ^ Whoops should have had a NEW here too. > You must instanciate your array first. This way, for example, > > list.class > > public name as string > public row as NEW short[] D'oh! I had a feeling it'd be something silly thanks :) > > > Regards, From abidoo.too at ...11... Sun May 23 22:48:42 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 23 May 2004 22:48:42 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405231906.38158.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405231855.17845.abidoo.too@...11...> <200405231906.38158.gambas@...1...> Message-ID: <200405232248.42822.abidoo.too@...11...> Le dimanche 23 Mai 2004 19:06, Benoit Minisini a ?crit : > On Sunday 23 May 2004 18:55, Fabien Bodard wrote: > > Le dimanche 23 Mai 2004 18:00, Benoit Minisini a ?crit : > > > On Sunday 23 May 2004 15:16, Fabien Bodard wrote: > > > > I'm trying to use the gb method for create a new database insteed the > > > > SQL one. > > > > > > > > But ... i don't understand how to add fields in a table.... > > > > > > > > Fabien > > > > > > > > This is a part of my test code > > > > > > > > DIM Fic AS File > > > > DIM stxt AS String > > > > DIM i AS Integer > > > > DIM j AS Integer > > > > > > > > DIM CurTable AS Table > > > > con = NEW Connection > > > > con.Type = "mysql" > > > > con.Host = "localhost" > > > > Con.Login = "root" > > > > > > > > con.open > > > > 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? > > > > IF NOT Con.Database.Exist("vitis") THEN > > > > con.Database.Create("vitis") Con.Database.Find("vitis") > > > > IF NOT Con.Tables.Exist("parcellaire") THEN > > > > CurTable = Con.Tables.Create("Parcellaire") > > > > > > > > CurTable.Field.Create("idparc", gb.Integer,,0) > > > > CurTable.Field.Create("proprietaire", gb.String, 30," ") > > > > CurTable.Field.Create("fv", gb.String, 3," ") > > > > CurTable.Field.Create("idcommune", gb.Integer, ,0) > > > > 'CurTable.Field.Create("idcommune", gb.String, 30," ") > > > > CurTable.Field.Create("lieudit", gb.String, 30," ") > > > > CurTable.Field.Create("section", gb.String, 3," ") > > > > CurTable.Field.Create("cadastre", gb.integer,, 0 ) > > > > CurTable.Field.Create("Surface", gb.Float,, 0) > > > > CurTable.Field.Create("nom", gb.string, 30, 0) > > > > CurTable.Field.Create("idCepage", gb.Integer,, 0) > > > > CurTable.Field.Create("Couleur", gb.string, 15, 0) > > > > CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") > > > > CurTable.Field.Create("surfaceplante", gb.Float,, 0) > > > > CurTable.Field.Create("idpg", gb.Integer,, 0) > > > > CurTable.Field.Create("entrerang", gb.float,, 0) > > > > CurTable.Field.Create("intercep", gb.float,, 0) > > > > CurTable.Field.Create("abouture", gb.string, 30, 0) > > > > > > > > FOR EACH Curtable.Field > > > > PRINT Curtable.Field!name > > > > NEXT > > > > > > And then... CurTable.Update to create the table. > > > > > > Regards, > > > > it say me that i need ... to define primarykey but when i do it by > > > > CurTable.Field.Primarykey.Add("idparc") > > > > , it say me ... Not an object ! > > > > Fabien > > CurTable.PrimaryKey = [ "Field1", "Field2", ... ] > Do it before the update of course. I've another problem... The table is create in then system table of MySQL.... Why ? From gambas at ...1... Sun May 23 22:56:31 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 22:56:31 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405232248.42822.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> <200405231906.38158.gambas@...1...> <200405232248.42822.abidoo.too@...11...> Message-ID: <200405232256.31264.gambas@...1...> On Sunday 23 May 2004 22:48, Fabien Bodard wrote: > I've another problem... The table is create in then system table of > MySQL.... Why ? > What ?? -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Sun May 23 23:07:08 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 23 May 2004 23:07:08 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405232256.31264.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405232248.42822.abidoo.too@...11...> <200405232256.31264.gambas@...1...> Message-ID: <200405232307.08307.abidoo.too@...11...> Le dimanche 23 Mai 2004 22:56, Benoit Minisini a ?crit : > On Sunday 23 May 2004 22:48, Fabien Bodard wrote: > > I've another problem... The table is create in then system table of > > MySQL.... Why ? > > What ?? ben quand je fait CurTable.Update la table n'est pas ajout? a ma base vitis mais a la base system de mysql Je t'envois mon code merci de ton aide Fabien -------------- next part -------------- A non-text attachment was scrubbed... Name: GestaParc-0.0.1.tar.gz Type: application/x-tgz Size: 113105 bytes Desc: not available URL: From gambas at ...1... Sun May 23 23:25:44 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 23:25:44 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405232307.08307.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> <200405232256.31264.gambas@...1...> <200405232307.08307.abidoo.too@...11...> Message-ID: <200405232325.44396.gambas@...1...> On Sunday 23 May 2004 23:07, Fabien Bodard wrote: > Le dimanche 23 Mai 2004 22:56, Benoit Minisini a ?crit : > > On Sunday 23 May 2004 22:48, Fabien Bodard wrote: > > > I've another problem... The table is create in then system table of > > > MySQL.... Why ? > > > > What ?? > > ben quand je fait > > CurTable.Update la table n'est pas ajout? a ma base vitis mais a la base > system de mysql > > Je t'envois mon code > > merci de ton aide > > Fabien Did you connect to your database after having created it ? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Mon May 24 00:12:35 2004 From: grahame at ...457... (Grahame White) Date: Sun, 23 May 2004 23:12:35 +0100 Subject: [Gambas-user] Control groups In-Reply-To: <200405232002.06713.grahame@...457...> References: <200405231936.07106.grahame@...457...> <200405232041.36965.gambas@...1...> <200405232002.06713.grahame@...457...> Message-ID: <200405232312.35962.grahame@...457...> I've been playing with control groups created at runtime a bit but I'm not sure how to reference the created controls from another sub as the array of controls is declared using DIM within the startup routine. Currently I have something like this fmain.class public sub form_open() dim mygroup[100] as new picturebox dim i as byte for i = 1 to 100 mygroup[i] = new picturebox(me) as "mypics" next ' Some more code to arrange the picboxes into a grid end Which works fine. However when I try to make a separate helper sub to manipulate the grid I'm not sure how to refer to the created pictureboxes. An example of a simple sub is public sub hide_picbox(index as byte) mygroup[index].visible = false end Obviously the above doesn't work but the intention is there and is what I've been trying to work out. I tried declaring mygroup so that it was within scope of the entire file but that ended up messy (that is I ended up making it messy :)) Grahame PS Contry to the evidence I am learning :) From budi at ...415... Mon May 24 06:12:25 2004 From: budi at ...415... (Budi Arief Gusandi) Date: Mon, 24 May 2004 11:12:25 +0700 Subject: [Gambas-user] Timer Interval Message-ID: Hi... The timer still fires if i set the delay time to 0 and less than 0 instead, WHY ???. In VB when i set the interval time to 0 it wont fire the timer event. T0 benoit : 0.93 compiles well on my box. Thanks, still waiting for report designer and FireBird database component nih ;) Thanks Budi From budi at ...415... Mon May 24 06:12:36 2004 From: budi at ...415... (Budi Arief Gusandi) Date: Mon, 24 May 2004 11:12:36 +0700 Subject: [Gambas-user] Code : SQLite Message-ID: Anyone can help me how to use SQLite ? give me some sample of code please...;) Regardz Budi From Tim.Hanschen at ...20... Mon May 24 06:56:58 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Mon, 24 May 2004 06:56:58 +0200 Subject: [Gambas-user] MP3 Message-ID: <1299853081@...20...> Hi all, ich want do program a MP3 player with gambas... is there something available to play back MP3 files? At the moment I just call mpg321 with EXEC, but then I have of course no controls.. e.g. rev, ff, stop, ... Are ther any controls in gambas itself? regards, - Tim - __________________________________________________________________ Zeigen Sie Emotionen mit der WEB.DE Bild-SMS! Das Bild ist gratis, Sie bezahlen nur den Versand. http://freemail.web.de/?mc=021196 From gambas at ...1... Mon May 24 16:33:03 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 May 2004 16:33:03 +0200 Subject: [Gambas-user] Timer Interval In-Reply-To: References: Message-ID: <200405241633.03560.gambas@...1...> On Monday 24 May 2004 06:12, Budi Arief Gusandi wrote: > Hi... > > The timer still fires if i set the delay time to 0 and less than 0 > instead, WHY ???. In VB when i set the interval time to 0 it wont fire the > timer event. I didn't know that setting 0 to delay stops the timer in VB. Of course this behaviour seems to be logical, but at the moment, the value is just passed directly to QT. I will change it in the next version. > T0 benoit : 0.93 compiles well on my box. Thanks, still waiting for report > designer and FireBird database component nih ;) Don't be in a hurry :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 24 16:41:51 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 May 2004 16:41:51 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <1299853081@...20...> References: <1299853081@...20...> Message-ID: <200405241641.51973.gambas@...1...> On Monday 24 May 2004 06:56, Tim Hanschen wrote: > Hi all, > > ich want do program a MP3 player with gambas... is there something > available to play back MP3 files? At the moment I just call mpg321 with > EXEC, but then I have of course no controls.. e.g. rev, ff, stop, ... > > Are ther any controls in gambas itself? > > regards, > - Tim - > You can try the SDL component, with the Music class, but it is not very accurate. Tell me the result. Are you sure you can't send keys to mpg123 while it runs. Or you can try mplayer, I think it can play *.mp3. Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Mon May 24 19:54:51 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Mon, 24 May 2004 19:54:51 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405232325.44396.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405232307.08307.abidoo.too@...11...> <200405232325.44396.gambas@...1...> Message-ID: <200405241954.51480.abidoo.too@...11...> Le dimanche 23 Mai 2004 23:25, Benoit Minisini a ?crit : > On Sunday 23 May 2004 23:07, Fabien Bodard wrote: > > Le dimanche 23 Mai 2004 22:56, Benoit Minisini a ?crit : > > > On Sunday 23 May 2004 22:48, Fabien Bodard wrote: > > > > I've another problem... The table is create in then system table of > > > > MySQL.... Why ? > > > > > > What ?? > > > > ben quand je fait > > > > CurTable.Update la table n'est pas ajout? a ma base vitis mais a la base > > system de mysql > > > > Je t'envois mon code > > > > merci de ton aide > > > > Fabien > > Did you connect to your database after having created it ? IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") Con.Database.Find("vitis") ----->> *********** yes ! here ! ****************************************** IF NOT Con.Tables.Exist("parcellaire") THEN CurTable = Con.Tables.Create("parcellaire") CurTable.Field.Create("idparc", gb.Integer,,0) CurTable.Field.Create("proprietaire", gb.String, 30," ") CurTable.Field.Create("fv", gb.String, 3," ") CurTable.Field.Create("idcommune", gb.Integer, ,0) 'CurTable.Field.Create("idcommune", gb.String, 30," ") CurTable.Field.Create("lieudit", gb.String, 30," ") CurTable.Field.Create("section", gb.String, 3," ") CurTable.Field.Create("cadastre", gb.integer,, 0 ) CurTable.Field.Create("Surface", gb.Float,, 0) CurTable.Field.Create("nom", gb.string, 30, 0) CurTable.Field.Create("idCepage", gb.Integer,, 0) CurTable.Field.Create("Couleur", gb.string, 15, 0) CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") CurTable.Field.Create("surfaceplante", gb.Float,, 0) CurTable.Field.Create("idpg", gb.Integer,, 0) CurTable.Field.Create("entrerang", gb.float,, 0) CurTable.Field.Create("intercep", gb.float,, 0) CurTable.Field.Create("abouture", gb.string, 30, 0) CurTable.PrimaryKey = ["idparc"] con.Tables["parcellaire"] = CurTable con.Tables["parcellaire"].Update FOR EACH Curtable.Field PRINT Curtable.Field.name NEXT i use the connection.database.Find function to select my database... do i've forgoten something ? Fabien From gambas at ...1... Mon May 24 23:43:56 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 May 2004 23:43:56 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405241954.51480.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> <200405232325.44396.gambas@...1...> <200405241954.51480.abidoo.too@...11...> Message-ID: <200405242343.56524.gambas@...1...> On Monday 24 May 2004 19:54, Fabien Bodard wrote: > Le dimanche 23 Mai 2004 23:25, Benoit Minisini a ?crit : > > On Sunday 23 May 2004 23:07, Fabien Bodard wrote: > > > Le dimanche 23 Mai 2004 22:56, Benoit Minisini a ?crit : > > > > On Sunday 23 May 2004 22:48, Fabien Bodard wrote: > > > > > I've another problem... The table is create in then system table of > > > > > MySQL.... Why ? > > > > > > > > What ?? > > > > > > ben quand je fait > > > > > > CurTable.Update la table n'est pas ajout? a ma base vitis mais a la > > > base system de mysql > > > > > > Je t'envois mon code > > > > > > merci de ton aide > > > > > > Fabien > > > > Did you connect to your database after having created it ? > > IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") > Con.Database.Find("vitis") > > ----->> *********** yes ! here ! > ****************************************** > > IF NOT Con.Tables.Exist("parcellaire") THEN > CurTable = Con.Tables.Create("parcellaire") > > CurTable.Field.Create("idparc", gb.Integer,,0) > CurTable.Field.Create("proprietaire", gb.String, 30," ") > CurTable.Field.Create("fv", gb.String, 3," ") > CurTable.Field.Create("idcommune", gb.Integer, ,0) > 'CurTable.Field.Create("idcommune", gb.String, 30," ") > CurTable.Field.Create("lieudit", gb.String, 30," ") > CurTable.Field.Create("section", gb.String, 3," ") > CurTable.Field.Create("cadastre", gb.integer,, 0 ) > CurTable.Field.Create("Surface", gb.Float,, 0) > CurTable.Field.Create("nom", gb.string, 30, 0) > CurTable.Field.Create("idCepage", gb.Integer,, 0) > CurTable.Field.Create("Couleur", gb.string, 15, 0) > CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") > CurTable.Field.Create("surfaceplante", gb.Float,, 0) > CurTable.Field.Create("idpg", gb.Integer,, 0) > CurTable.Field.Create("entrerang", gb.float,, 0) > CurTable.Field.Create("intercep", gb.float,, 0) > CurTable.Field.Create("abouture", gb.string, 30, 0) > CurTable.PrimaryKey = ["idparc"] > con.Tables["parcellaire"] = CurTable > con.Tables["parcellaire"].Update > FOR EACH Curtable.Field > PRINT Curtable.Field.name > NEXT > > > > i use the connection.database.Find function to select my database... do > i've forgoten something ? > > > Fabien > Yes. You must connect to your database, i.e. create a Connection object, open it, and use it. -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Mon May 24 23:58:54 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Mon, 24 May 2004 23:58:54 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405242343.56524.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405241954.51480.abidoo.too@...11...> <200405242343.56524.gambas@...1...> Message-ID: <200405242358.54439.abidoo.too@...11...> DIM CurTable AS Table con = NEW Connection con.Type = "mysql" con.Host = "localhost" Con.Login = "root" Mais je suis connect? !!!! con.open <<<< ici 'V?rifie si la base de donn?e Vitis existe ... sinon la cr?? IF NOT Con.Database.Exist("vitis") THEN con.Database.Create("vitis") Con.Database.Find("vitis") IF NOT Con.Tables.Exist("parcellaire") THEN CurTable = Con.Tables.Create("parcellaire") CurTable.Field.Create("idparc", gb.Integer,,0) CurTable.Field.Create("proprietaire", gb.String, 30," ") CurTable.Field.Create("fv", gb.String, 3," ") CurTable.Field.Create("idcommune", gb.Integer, ,0) 'CurTable.Field.Create("idcommune", gb.String, 30," ") CurTable.Field.Create("lieudit", gb.String, 30," ") CurTable.Field.Create("section", gb.String, 3," ") CurTable.Field.Create("cadastre", gb.integer,, 0 ) CurTable.Field.Create("Surface", gb.Float,, 0) CurTable.Field.Create("nom", gb.string, 30, 0) CurTable.Field.Create("idCepage", gb.Integer,, 0) CurTable.Field.Create("Couleur", gb.string, 15, 0) CurTable.Field.Create("dateplantation", gb.Date,, "1/01/2000") CurTable.Field.Create("surfaceplante", gb.Float,, 0) CurTable.Field.Create("idpg", gb.Integer,, 0) CurTable.Field.Create("entrerang", gb.float,, 0) CurTable.Field.Create("intercep", gb.float,, 0) CurTable.Field.Create("abouture", gb.string, 30, 0) CurTable.PrimaryKey = ["idparc"] con.Tables["parcellaire"] = CurTable con.Tables["parcellaire"].Update From gambas at ...1... Tue May 25 00:08:32 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 May 2004 00:08:32 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405242358.54439.abidoo.too@...11...> References: <200405231516.12662.abidoo.too@...11...> <200405242343.56524.gambas@...1...> <200405242358.54439.abidoo.too@...11...> Message-ID: <200405250008.32113.gambas@...1...> On Monday 24 May 2004 23:58, Fabien Bodard wrote: > DIM CurTable AS Table > con = NEW Connection > con.Type = "mysql" > con.Host = "localhost" > Con.Login = "root" > > > > Mais je suis connect? !!!! > > No, you aren't connected. You forgot to specify the database name, and so Gambas takes the default system database. -- Benoit Minisini mailto:gambas at ...1... From rizky at ...225... Tue May 25 04:41:23 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Tue, 25 May 2004 09:41:23 +0700 Subject: [Gambas-user] gambas 0.93 In-Reply-To: <200405221031.26824.gambas@...1...> References: <200405161919.08753.gambas@...1...> <6.0.0.22.2.20040522122030.01be3558@...329...> <200405221031.26824.gambas@...1...> Message-ID: <6.0.0.22.2.20040525090044.01c98eb0@...329...> At 15:31 22/05/2004, you wrote: >On Saturday 22 May 2004 07:22, Rizky Tahara Shita wrote: > > At 00:19 17/05/2004, you wrote: > > >Hi, everybody, > > > > > >I'm thoughtless :-) I forgot to announce the release of 0.93 here and on > > >freshmeat ! > > > > * Window.TopOnly and Window.SkipTaskbar now should work correctly. > > seems it still not working for the example that i have posted a few days > > ago... :( > >You must use a compliant window manager as explained on the web site. KDE and >GNOME are. Otherwise, these two properties do not work. i'm using mandrake9.1 and kde, but still not working... > > > > and on 0.93, the datareportexample not working... it raise error when i try > > click the screen button or the printer button... > > > >It works here. Which error message exactly, and where ? on the line: hfprev.webbrowser1.path = flname in Fmain.class error message attached... it seems that the project that have been made with previous version and in the project have code to show the form will fail and have errors like this when it runs on 0.93 -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot5.png Type: image/png Size: 5253 bytes Desc: not available URL: From rizky at ...225... Tue May 25 04:56:23 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Tue, 25 May 2004 09:56:23 +0700 Subject: [Gambas-user] Arragement In-Reply-To: <6.0.0.22.2.20040525090044.01c98eb0@...329...> References: <200405161919.08753.gambas@...1...> <6.0.0.22.2.20040522122030.01be3558@...329...> <200405221031.26824.gambas@...1...> <6.0.0.22.2.20040525090044.01c98eb0@...329...> Message-ID: <6.0.0.22.2.20040525095422.01ba8d10@...329...> hi, when we design a form, yes there is a menu to arrange the objects. seems that there is no "Align Center" and "Align Middle" the arragnement menu, so we cannot arrange the object to center or middle.. humm... ?? should we do it manually ?? From abidoo.too at ...11... Tue May 25 11:41:07 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Tue, 25 May 2004 11:41:07 +0200 Subject: [Gambas-user] Need help with database. In-Reply-To: <200405250008.32113.gambas@...1...> References: <200405231516.12662.abidoo.too@...11...> <200405242358.54439.abidoo.too@...11...> <200405250008.32113.gambas@...1...> Message-ID: <200405251141.07278.abidoo.too@...11...> Le mardi 25 Mai 2004 00:08, Benoit Minisini a ?crit : > On Monday 24 May 2004 23:58, Fabien Bodard wrote: > > DIM CurTable AS Table > > con = NEW Connection > > con.Type = "mysql" > > con.Host = "localhost" > > Con.Login = "root" > > > > > > > > Mais je suis connect? !!!! > > No, you aren't connected. You forgot to specify the database name, and so > Gambas takes the default system database. Thank ... It work now ! But in the doc, it say that con.database.find("database") select the current database ! Fabien From ljcliff at ...466... Tue May 25 12:13:37 2004 From: ljcliff at ...466... (Luke Cliff) Date: Tue, 25 May 2004 20:13:37 +1000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #708 - 11 msgs In-Reply-To: References: Message-ID: <40B31C51.9070900@...466...> Hi Tim, I have a remote control that uses another wireless keyboard at the lounge, The Mp3s are played from xmms, and I just use a "persistent" gambas program as a remote control to call a raise of itself every second or so when it's running, which in turn executes "shell xmms- f" or "shell xmms -r" when I type a preprogrammed number on the keypad, in fact the remote can shut down the computer, restart it? run screen savers, dial the internet, anything preprogrammed with keyboard inputs as triggers to run programs, most of the time the gambas program just runs MP3's or categories of MP3 genres.. I hope this helps... Regards Luke > 3. MP3 (Tim Hanschen) >Message: 3 >Date: Mon, 24 May 2004 06:56:58 +0200 >From: "Tim Hanschen" >To: gambas-user at lists.sourceforge.net >Organization: http://freemail.web.de/ >Subject: [Gambas-user] MP3 >Reply-To: gambas-user at lists.sourceforge.net > >Hi all, > >ich want do program a MP3 player with gambas... is there something available to play back MP3 files? At the moment I just call mpg321 with EXEC, but then I have of course no controls.. e.g. rev, ff, stop, ... > >Are ther any controls in gambas itself? > >regards, > - Tim - > >__________________________________________________________________ >Zeigen Sie Emotionen mit der WEB.DE Bild-SMS! Das Bild ist gratis, >Sie bezahlen nur den Versand. http://freemail.web.de/?mc=021196 > > > > > From nyarnon at ...455... Tue May 25 10:49:44 2004 From: nyarnon at ...455... (nyarnon) Date: Tue, 25 May 2004 09:49:44 +0100 Subject: [Gambas-user] How do I convert Date/Time to UnixDateTime Message-ID: <20040525084944.GA9913@...455...> Being seconds since `00:00:00 1970-01-01 UTC' I would expect the format function resemble more closely that of the Unix Date command. -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From nyarnon at ...455... Tue May 25 10:50:40 2004 From: nyarnon at ...455... (nyarnon) Date: Tue, 25 May 2004 09:50:40 +0100 Subject: [Gambas-user] SymLinks Message-ID: <20040525085040.GB9913@...455...> How do I create a symlink from Gambas? -- _-~(/\)~-_ . Cool3s - The Snippet Library System for Bash -_\-o<>o-/_- . Serve reusable text pieces or generate them on the fly. -~)(~- . R \/ E . Homepage: http://raphael.deep-ice.com/cool3s.html From Tim.Hanschen at ...20... Tue May 25 14:21:24 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Tue, 25 May 2004 14:21:24 +0200 Subject: [Gambas-user] MP3 Message-ID: <1302945043@...20...> I read a bit docu... there is a remote interface for mpg321 available... you can set mpg321 in an interactive mode. That means that you can type in a command for stop, ff or rew, but I do not know how to send these "keys" from gambas... I tried to write it to stdout, but that did not work.. ;-( - Tim - gambas-user at lists.sourceforge.net schrieb am 24.05.04 16:40:14: On Monday 24 May 2004 06:56, Tim Hanschen wrote: > Hi all, > > ich want do program a MP3 player with gambas... is there something > available to play back MP3 files? At the moment I just call mpg321 with > EXEC, but then I have of course no controls.. e.g. rev, ff, stop, ... > > Are ther any controls in gambas itself? > > regards, > - Tim - > You can try the SDL component, with the Music class, but it is not very accurate. Tell me the result. Are you sure you can't send keys to mpg123 while it runs. Or you can try mplayer, I think it can play *.mp3. Regards, -- Benoit Minisini mailto:gambas at ...1... ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ Moechten Sie Ihre SMS noch ausdrucksstaerker und emotionaler gestalten? Fuegen Sie einfach ein Bild hinzu! http://freemail.web.de/?mc=021194 From danielcampos at ...282... Tue May 25 13:05:44 2004 From: danielcampos at ...282... (danielcampos at ...282...) Date: Tue, 25 May 2004 13:05:44 CEST Subject: [Gambas-user] write to ServerSocket Message-ID: > PUBLIC SUB Button1_Click() > > DIM outstring AS String > > IF Server.Status = Net.Connected THEN > outstring = "message" > WRITE #Server,outstring,Len(outstring) > END IF > END > Note that you're trying to send data using directly a ServerSocket object, this is not the right way. ServerSocket just manage remote connections, and creates a Socket object per each new connection, so, to send data to one of the clients, you have to do it through its 'Socket' object. Look at the server socket example, the read and write operations are managed by 'Socket' objects. Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From jsz at ...464... Tue May 25 16:32:44 2004 From: jsz at ...464... (Janos Sztriko) Date: Tue, 25 May 2004 16:32:44 +0200 Subject: [Gambas-user] write to ServerSocket In-Reply-To: References: Message-ID: <20040525163244.00006ad3@...465...> Thanks, today evening I will try it again. Regards, Janos On Tue, 25 May 2004 13:05:44 CEST danielcampos at ...282... wrote: > Note that you're trying to send data using directly a ServerSocket object, this is not the right way. ServerSocket just manage remote connections, and creates a Socket object per each new connection, so, to send data to one of the clients, you have to do it through its 'Socket' object. Look at the server socket example, the read and write operations are managed by 'Socket' objects. > > Regards, > > Daniel Campos > From gambas at ...1... Tue May 25 18:39:42 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 May 2004 18:39:42 +0200 Subject: [Gambas-user] SymLinks In-Reply-To: <20040525085040.GB9913@...455...> References: <20040525085040.GB9913@...455...> Message-ID: <200405251839.42200.gambas@...1...> On Tuesday 25 May 2004 10:50, nyarnon wrote: > How do I create a symlink from Gambas? There is no Gambas instruction to do that, but you can use EXEC [ "ln", "-s", ... ] -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 25 18:43:31 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 May 2004 18:43:31 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <1302945043@...20...> References: <1302945043@...20...> Message-ID: <200405251843.31884.gambas@...1...> On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > I read a bit docu... there is a remote interface for mpg321 available... > you can set mpg321 in an interactive mode. That means that you can type in > a command for stop, ff or rew, but I do not know how to send these "keys" > from gambas... I tried to write it to stdout, but that did not work.. ;-( > > - Tim - > > Something like that: DIM hProcess AS Process EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess ... PRINT #hProcess, "The keys"; PUBLIC SUB Process_Read() DIM sRead AS String READ #hProcess, sRead, -256 PRINT "mpg321 sent: "; sRead END Look at the examples that use external programs, like the video player that uses mplayer and send it commands. Regards, -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Tue May 25 19:24:12 2004 From: grahame at ...457... (Grahame White) Date: Tue, 25 May 2004 18:24:12 +0100 Subject: [Gambas-user] Control groups In-Reply-To: <200405232312.35962.grahame@...457...> References: <200405231936.07106.grahame@...457...> <200405232002.06713.grahame@...457...> <200405232312.35962.grahame@...457...> Message-ID: <200405251824.12079.grahame@...457...> On Sunday 23 May 2004 23:12, Grahame White wrote: > I've been playing with control groups created at runtime a bit but I'm > not sure how to reference the created controls from another sub as the > array of controls is declared using DIM within the startup routine. > > Currently I have something like this > > fmain.class > > public sub form_open() > > dim mygroup[100] as new picturebox > dim i as byte > > for i = 1 to 100 > mygroup[i] = new picturebox(me) as "mypics" > next > > ' Some more code to arrange the picboxes into a grid > > end > > Which works fine. However when I try to make a separate helper sub to > manipulate the grid I'm not sure how to refer to the created > pictureboxes. > > An example of a simple sub is > > public sub hide_picbox(index as byte) > > mygroup[index].visible = false > > end > > Obviously the above doesn't work but the intention is there and is what > I've been trying to work out. > > I tried declaring mygroup so that it was within scope of the entire file > but that ended up messy (that is I ended up making it messy :)) > > Grahame > > PS Contry to the evidence I am learning :) I've attached what I have so far so that you can see what I'm trying to achieve. Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: board.tar.gz Type: application/x-tgz Size: 3328 bytes Desc: not available URL: From abidoo.too at ...11... Tue May 25 19:39:31 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Tue, 25 May 2004 19:39:31 +0200 Subject: [Gambas-user] Control groups In-Reply-To: <200405251824.12079.grahame@...457...> References: <200405231936.07106.grahame@...457...> <200405232312.35962.grahame@...457...> <200405251824.12079.grahame@...457...> Message-ID: <200405251939.32129.abidoo.too@...11...> ' Gambas class file PUBLIC Board AS NEW Object[] PUBLIC SUB Form_Open() DIM i AS Byte DIM j AS Byte Board.Resize (100) ' Create master geometry (10 x 10 grid) FOR i = 0 TO 9 FOR j = 0 TO 9 WAIT board[(i * 10) + j] = NEW PictureBox(ME) AS "GameBoard" board[(i * 10) + j].Border = 1 board[(i * 10) + j].height = 48 board[(i * 10) + j].width = 48 board[(i * 10) + j].x = 8 + (48 * j) board[(i * 10) + j].y = 8 + (48 * i) NEXT NEXT ' Create board layouts MBoards.make_boards() MBoards.fill_boards() ' select a board to play on i = CInt(Rnd(0, Global.boarddesign.Count)) ' Display the board layout FOR j = 0 TO 9 set_row(Global.boarddesign[i].row[j], 1) NEXT END Hem this is the correction. Before you use a local variable... It is just available in the form_open sub... Here you need a global variable, but we can't use static array here. So i've created a class dynamic array by : public Board as New Object[] After in the sub i've resized it by : Board.Resize(100) That's all Folks Regards, Fabien Bodard From grahame at ...457... Tue May 25 19:54:54 2004 From: grahame at ...457... (Grahame White) Date: Tue, 25 May 2004 18:54:54 +0100 Subject: [Gambas-user] Control groups In-Reply-To: <200405251939.32129.abidoo.too@...11...> References: <200405231936.07106.grahame@...457...> <200405251824.12079.grahame@...457...> <200405251939.32129.abidoo.too@...11...> Message-ID: <200405251854.54302.grahame@...457...> > > Hem this is the correction. > > Before you use a local variable... It is just available in the form_open > sub... > Here you need a global variable, but we can't use static array here. > > So i've created a class dynamic array by : > > public Board as New Object[] > > > After in the sub i've resized it by : > > Board.Resize(100) > > That's all Folks > > Regards, > > Fabien Bodard > Ahh, thanks. I didn't notice the .resize method, much easier (and faster) than looping and adding one object at a time :) Thanks again Grahame From grahame at ...457... Tue May 25 21:00:21 2004 From: grahame at ...457... (Grahame White) Date: Tue, 25 May 2004 20:00:21 +0100 Subject: [Gambas-user] Array constant Message-ID: <200405252000.21867.grahame@...457...> Is there anyway to a make a constant array? For example something like: PUBLIC CONST POW2[10] AS Short[] = (1, 2, 4, 8, 16, 32, 64, 128, 256, 512) Grahame From abidoo.too at ...11... Tue May 25 22:03:33 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Tue, 25 May 2004 22:03:33 +0200 Subject: [Gambas-user] Array constant In-Reply-To: <200405252000.21867.grahame@...457...> References: <200405252000.21867.grahame@...457...> Message-ID: <200405252203.34261.abidoo.too@...11...> Le mardi 25 Mai 2004 21:00, Grahame White a ?crit : > Is there anyway to a make a constant array? > > For example something like: > > PUBLIC CONST POW2[10] AS Short[] = (1, 2, 4, 8, 16, 32, 64, 128, 256, 512) > > > > > Grahame > Constants declaration ( PUBLIC | PRIVATE ) CONST Identifier AS Datatype = Constant value This declares a class global constant. - This constant is accessible everywhere in the class it is declared. - If the PUBLIC keyword is specified, it is also accessible to the other classes having a reference to an object of this class. - Constant must be booleans, integers, floating point numbers or strings. no ;-) Actually you have just the way public variable to define array.... hey, why not a possibility, to define const as class type like : PUBLIC CONST POW2 AS Short[] = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] or something in this mind. I've another question.... what about the TYPE keyword ? > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue May 25 22:14:32 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 May 2004 22:14:32 +0200 Subject: [Gambas-user] Array constant In-Reply-To: <200405252203.34261.abidoo.too@...11...> References: <200405252000.21867.grahame@...457...> <200405252203.34261.abidoo.too@...11...> Message-ID: <200405252214.32217.gambas@...1...> On Tuesday 25 May 2004 22:03, Fabien Bodard wrote: > Le mardi 25 Mai 2004 21:00, Grahame White a ?crit : > > Is there anyway to a make a constant array? > > > > For example something like: > > > > PUBLIC CONST POW2[10] AS Short[] = (1, 2, 4, 8, 16, 32, 64, 128, 256, > > 512) > > > > > > > > > > Grahame > > Constants declaration > ( PUBLIC | PRIVATE ) CONST Identifier AS Datatype = Constant value > > This declares a class global constant. > - This constant is accessible everywhere in the class it is declared. > - If the PUBLIC keyword is specified, it is also accessible to the other > classes having a reference to an object of this class. > - Constant must be booleans, integers, floating point numbers or strings. > > > > > no ;-) > > Actually you have just the way public variable to define array.... > > hey, why not a possibility, to define const as class type > like : > PUBLIC CONST POW2 AS Short[] = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] > > or something in this mind. Do it by hand in the static constructor _init(). STATIC PUBLIC POW2 AS Short[] STATIC PUBLIC SUB _init() POW2 = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] END > > I've another question.... what about the TYPE keyword ? There is no TYPE keyword !? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Tue May 25 22:35:58 2004 From: grahame at ...457... (Grahame White) Date: Tue, 25 May 2004 21:35:58 +0100 Subject: [Gambas-user] Array constant In-Reply-To: <200405252214.32217.gambas@...1...> References: <200405252000.21867.grahame@...457...> <200405252203.34261.abidoo.too@...11...> <200405252214.32217.gambas@...1...> Message-ID: <200405252135.58718.grahame@...457...> > > PUBLIC CONST POW2 AS Short[] = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] > > > > or something in this mind. > > Do it by hand in the static constructor _init(). > > STATIC PUBLIC POW2 AS Short[] > > STATIC PUBLIC SUB _init() > > POW2 = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] > > END > > > I've another question.... what about the TYPE keyword ? > > There is no TYPE keyword !? I tried it your way and I think it uncovered a small bug. When I tried it declaring POW2 as short[] I got an error message about a datatype mismatch, it was expecting an integer and got a short instead. I stepped through the program line by line with the debugger and when it got to POW2 = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] it produced the error again. So I declared POW2 as integer[] and my program ran fine. I was a little puzzled so I looked through the docs and found this array = Array ( Expression , ... ) Creates an array and returns it. The type of the array is the type of the first expression. The other expressions are automatically converted. This seems to explain what is going on as the first value is 1 which I'm guessing is being detected as an integer so when I pass it a short it throws up the error. Grahame From wizardmansite at ...43... Wed May 26 07:22:50 2004 From: wizardmansite at ...43... (Devilyn) Date: Tue, 25 May 2004 22:22:50 -0700 (PDT) Subject: [Gambas-user] Sound SDL Message-ID: <20040526052250.24032.qmail@...211...> Ok got SDL up and running in Gambas. But I do not know what commands to use... I only plan on using WAV files for my game program. Can someone post some demo code on how to play a WAV file using the Sound Componet. Maybe how to start 1 wav and loop it or stop the wav from playing... then I assume you just do the same to play more than one at a time? Little help? Dev __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From girardhenri at ...67... Wed May 26 14:35:05 2004 From: girardhenri at ...67... (Henri Girard) Date: Wed, 26 May 2004 12:35:05 +0000 Subject: [Gambas-user] stratoria Message-ID: Hi Olivier :) I tried to reach your website ... Did you stop it ? I wanted to see if you carry on your example ? By the way where can I find more examples using database ... kind regards Henri _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr From karimy at ...27... Wed May 26 19:07:25 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Wed, 26 May 2004 19:07:25 +0200 Subject: [Gambas-user] map maker Message-ID: <40B4CECD.5060807@...27...> a map creator for your games load a tile picture & go possilble for scroll map -------------- next part -------------- A non-text attachment was scrubbed... Name: MapMaker-0.0.1.tar.gz Type: application/x-gzip Size: 2203 bytes Desc: not available URL: From karimy at ...27... Wed May 26 19:44:53 2004 From: karimy at ...27... (vandenbulcke christophe) Date: Wed, 26 May 2004 19:44:53 +0200 Subject: [Gambas-user] gambas site for the game Message-ID: <40B4D795.8040802@...27...> http://www.geocities.com/vdbgambas/index.html new link for gambas game user under construction send my a mail for your comments my mail is karimy at ...27... From grahame at ...457... Wed May 26 20:51:26 2004 From: grahame at ...457... (Grahame White) Date: Wed, 26 May 2004 19:51:26 +0100 Subject: [Gambas-user] simple solitaire example Message-ID: <200405261951.26386.grahame@...457...> I've attached a simple solitaire (marbles not cards) project I started to try a few things out. It is playable sort of. There are also the beginnings of a way to add your own levels that I'll fix up for a later version. Also I'm not that interested in making graphics myself, hence the simple but functional ball graphic. If this small project does interest anyone then feel free to use what you want :) Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.tar.gz Type: application/x-tgz Size: 5079 bytes Desc: not available URL: From gambas at ...1... Wed May 26 21:03:21 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 May 2004 21:03:21 +0200 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405261951.26386.grahame@...457...> References: <200405261951.26386.grahame@...457...> Message-ID: <200405262103.21798.gambas@...1...> On Wednesday 26 May 2004 20:51, Grahame White wrote: > I've attached a simple solitaire (marbles not cards) project I started to > try a few things out. It is playable sort of. There are also the > beginnings of a way to add your own levels that I'll fix up for a later > version. > > Also I'm not that interested in making graphics myself, hence the simple > but functional ball graphic. > > If this small project does interest anyone then feel free to use what you > want :) > > Grahame Can I add it to the gambas examples ? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Wed May 26 21:22:59 2004 From: grahame at ...457... (Grahame White) Date: Wed, 26 May 2004 20:22:59 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405262103.21798.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405262103.21798.gambas@...1...> Message-ID: <200405262022.59927.grahame@...457...> On Wednesday 26 May 2004 20:03, Benoit Minisini wrote: > On Wednesday 26 May 2004 20:51, Grahame White wrote: > > I've attached a simple solitaire (marbles not cards) project I started > > to try a few things out. It is playable sort of. There are also the > > beginnings of a way to add your own levels that I'll fix up for a > > later version. > > > > Also I'm not that interested in making graphics myself, hence the > > simple but functional ball graphic. > > > > If this small project does interest anyone then feel free to use what > > you want :) > > > > Grahame > > Can I add it to the gambas examples ? Sure, no problem :) Grahame From abidoo.too at ...11... Wed May 26 22:02:44 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Wed, 26 May 2004 22:02:44 +0200 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405262022.59927.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405262103.21798.gambas@...1...> <200405262022.59927.grahame@...457...> Message-ID: <200405262202.44657.abidoo.too@...11...> Le mercredi 26 Mai 2004 21:22, Grahame White a ?crit : > On Wednesday 26 May 2004 20:03, Benoit Minisini wrote: > > On Wednesday 26 May 2004 20:51, Grahame White wrote: > > > I've attached a simple solitaire (marbles not cards) project I started > > > to try a few things out. It is playable sort of. There are also the > > > beginnings of a way to add your own levels that I'll fix up for a > > > later version. > > > > > > Also I'm not that interested in making graphics myself, hence the > > > simple but functional ball graphic. > > > > > > If this small project does interest anyone then feel free to use what > > > you want :) > > > > > > Grahame > > > > Can I add it to the gambas examples ? > > Sure, no problem :) > > Grahame > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user can you add help and about box ? Fabien From grahame at ...457... Wed May 26 22:29:41 2004 From: grahame at ...457... (Grahame White) Date: Wed, 26 May 2004 21:29:41 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405262202.44657.abidoo.too@...11...> References: <200405261951.26386.grahame@...457...> <200405262022.59927.grahame@...457...> <200405262202.44657.abidoo.too@...11...> Message-ID: <200405262129.41623.grahame@...457...> > > can you add help and about box ? > > > Fabien > I'll add them when I get home from work tomorrow afternoon. Grahame From Tim.Hanschen at ...20... Thu May 27 10:36:39 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Thu, 27 May 2004 10:36:39 +0200 Subject: [Gambas-user] Backgroundimage Message-ID: <1307622157@...20...> Hi, the remote control for mpg321 works fine... now. Thank you. Now, I have another question. Is it possible to have an background-image in a form/window? regards, - Tim - ________________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193 From sourceforge-raindog2 at ...94... Thu May 27 14:42:24 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 27 May 2004 08:42:24 -0400 Subject: [Gambas-user] Backgroundimage In-Reply-To: <1307622157@...20...> References: <1307622157@...20...> Message-ID: <200405270842.24725.sourceforge-raindog2@...94...> On Thursday 27 May 2004 04:36, Tim Hanschen wrote: > Now, I have another question. Is it possible to have an > background-image in a form/window? This is so messed up. I *swear* there was a picture property on forms in some prior version, but it's not there now. You could just throw a PictureBox in there and send it to the back, but either way, Qt has no transparent labels so it may look kinda goofy. Rob From grahame at ...457... Thu May 27 16:44:48 2004 From: grahame at ...457... (Grahame White) Date: Thu, 27 May 2004 15:44:48 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405262202.44657.abidoo.too@...11...> References: <200405261951.26386.grahame@...457...> <200405262022.59927.grahame@...457...> <200405262202.44657.abidoo.too@...11...> Message-ID: <200405271544.48975.grahame@...457...> > can you add help and about box ? > > > Fabien > Updated version attached new : some menu buttons File->New Game File->Quit Help->About made the pictureboxes have a raised border -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.tar.gz Type: application/x-tgz Size: 2944 bytes Desc: not available URL: From abidoo.too at ...11... Thu May 27 20:52:31 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Thu, 27 May 2004 20:52:31 +0200 Subject: [Gambas-user] Backgroundimage In-Reply-To: <200405270842.24725.sourceforge-raindog2@...94...> References: <1307622157@...20...> <200405270842.24725.sourceforge-raindog2@...94...> Message-ID: <200405272052.31434.abidoo.too@...11...> Le jeudi 27 Mai 2004 14:42, Rob a ?crit : > On Thursday 27 May 2004 04:36, Tim Hanschen wrote: > > Now, I have another question. Is it possible to have an > > background-image in a form/window? > > This is so messed up. I *swear* there was a picture property on > forms in some prior version, but it's not there now. > > You could just throw a PictureBox in there and send it to the > back, but either way, Qt has no transparent labels so it may > look kinda goofy. > > Rob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Draw.Begin(me) Draw.Picture(Picture["mypicture'],0,0) Draw.End it should work Fabien From grahame at ...457... Thu May 27 22:22:16 2004 From: grahame at ...457... (Grahame White) Date: Thu, 27 May 2004 21:22:16 +0100 Subject: [Gambas-user] New way of adding components to the toolbox Message-ID: <200405272122.16223.grahame@...457...> I don't know about anyone else but I think it might be useful if the add components window could open by right clicking in the toolbox window. Just an idea :) Grahame From sourceforge-raindog2 at ...94... Thu May 27 22:19:07 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 27 May 2004 16:19:07 -0400 Subject: [Gambas-user] Backgroundimage In-Reply-To: <200405272052.31434.abidoo.too@...11...> References: <1307622157@...20...> <200405270842.24725.sourceforge-raindog2@...94...> <200405272052.31434.abidoo.too@...11...> Message-ID: <200405271619.07313.sourceforge-raindog2@...94...> On Thursday 27 May 2004 14:52, Fabien Bodard wrote: > Draw.Begin(me) > Draw.Picture(Picture["mypicture'],0,0) > Draw.End I actually tried those exact 3 lines (well, without the syntax error and with a picture of one of my cats :) ) when I was initially replying to him, in the Form_Open event, but they had no visible effect. I assume that this is because, when you draw on a form, it's not persistent (it has no Cached property as a DrawingArea does.) However, I haven't tried putting those into the Form_Draw event! Rob From abidoo.too at ...11... Fri May 28 00:06:01 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Fri, 28 May 2004 00:06:01 +0200 Subject: [Gambas-user] Backgroundimage In-Reply-To: <200405271619.07313.sourceforge-raindog2@...94...> References: <1307622157@...20...> <200405272052.31434.abidoo.too@...11...> <200405271619.07313.sourceforge-raindog2@...94...> Message-ID: <200405280006.01052.abidoo.too@...11...> Le jeudi 27 Mai 2004 22:19, Rob a ?crit : > > Draw.Begin(me) > > ? Draw.Picture(Picture["mypicture'],0,0) > > Draw.End PUBLIC SUB Form_Activate() Draw.Begin(ME) Draw.Picture(Picture[Application.Home &/ "Desktop/image/241.png"],0,0) Draw.End END That code work fine and redraw background. Fabien -------------- next part -------------- A non-text attachment was scrubbed... Name: capture19.png Type: image/png Size: 44511 bytes Desc: not available URL: From abidoo.too at ...11... Fri May 28 00:08:17 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Fri, 28 May 2004 00:08:17 +0200 Subject: [Gambas-user] New way of adding components to the toolbox In-Reply-To: <200405272122.16223.grahame@...457...> References: <200405272122.16223.grahame@...457...> Message-ID: <200405280008.17272.abidoo.too@...11...> Le jeudi 27 Mai 2004 22:22, Grahame White a ?crit : > I don't know about anyone else but I think it might be useful if the add > components window could open by right clicking in the toolbox window. > > Just an idea :) > Grahame I'm agree with that.... It will be more usefull Fabien > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Tim.Hanschen at ...20... Fri May 28 07:35:32 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Fri, 28 May 2004 07:35:32 +0200 Subject: [Gambas-user] I am so sorry, but I have another question Message-ID: <1310051502@...20...> Hi, I designed a form with different buttons. When I press a button it seems that the keyboard buffer is not flushed that means that it looks like I pressed the button ten or twenty times.... very strange. what can I do? regards, - Tim - _____________________________________________________________________ Endlich SMS mit Bildern versenden! Das Bild selbst ist dabei gratis, Sie bezahlen lediglich den Versand. http://freemail.web.de/?mc=021195 From Tim.Hanschen at ...20... Fri May 28 11:55:41 2004 From: Tim.Hanschen at ...20... (Tim Hanschen) Date: Fri, 28 May 2004 11:55:41 +0200 Subject: [Gambas-user] Backgroundimage Message-ID: <1310502721@...20...> I tried it out... well, a picture is drawn, but it is OVER all controls (buttons, ...). How can it be drawn as am background image? gambas-user at lists.sourceforge.net schrieb am 27.05.04 22:25:38: On Thursday 27 May 2004 14:52, Fabien Bodard wrote: > Draw.Begin(me) > Draw.Picture(Picture["mypicture'],0,0) > Draw.End I actually tried those exact 3 lines (well, without the syntax error and with a picture of one of my cats :) ) when I was initially replying to him, in the Form_Open event, but they had no visible effect. I assume that this is because, when you draw on a form, it's not persistent (it has no Cached property as a DrawingArea does.) However, I haven't tried putting those into the Form_Draw event! Rob ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user _______________________________________________________________________ Moechten Sie Ihre SMS noch ausdrucksstaerker und emotionaler gestalten? Fuegen Sie einfach ein Bild hinzu! http://freemail.web.de/?mc=021194 From daniel.campos at ...338... Fri May 28 16:48:46 2004 From: daniel.campos at ...338... (Daniel) Date: Fri, 28 May 2004 16:48:46 +0200 Subject: [Gambas-user] Backgroundimage In-Reply-To: <200405280006.01052.abidoo.too@...11...> References: <1307622157@...20...> <200405272052.31434.abidoo.too@...11...> <200405271619.07313.sourceforge-raindog2@...94...> <200405280006.01052.abidoo.too@...11...> Message-ID: <1085755726.3226.0.camel@...40...> El vie, 28-05-2004 a las 00:06, Fabien Bodard escribi?: > Le jeudi 27 Mai 2004 22:19, Rob a ?crit : > > > Draw.Begin(me) > > > Draw.Picture(Picture["mypicture'],0,0) > > > Draw.End > > > PUBLIC SUB Form_Activate() > > Draw.Begin(ME) > Draw.Picture(Picture[Application.Home &/ "Desktop/image/241.png"],0,0) > Draw.End > > END > > That code work fine and redraw background. > > Fabien Is this a 'little of Fabien'? :-)) From grahame at ...457... Fri May 28 18:39:08 2004 From: grahame at ...457... (Grahame White) Date: Fri, 28 May 2004 17:39:08 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405271544.48975.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405262202.44657.abidoo.too@...11...> <200405271544.48975.grahame@...457...> Message-ID: <200405281739.08765.grahame@...457...> On Thursday 27 May 2004 15:44, Grahame White wrote: > > can you add help and about box ? > > > > > > Fabien > > Updated version attached > > new : > some menu buttons > File->New Game > File->Quit > Help->About > > made the pictureboxes have a raised border And here's another updated version new : Added a toolbar New Game Undo Redo Quit Implemented undo/redo feature And a few minor code cleanups Grahame PS if the icons look familiar it's because I borrowed them from the gambas project. Maybe a shared icon library for common buttons such as load, save new document, quit, undo, redo and similar would be useful. Not to mention it'd help to give gambas created programs a common look :) -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.tar.gz Type: application/x-tgz Size: 4718 bytes Desc: not available URL: From abidoo.too at ...11... Fri May 28 20:19:56 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Fri, 28 May 2004 20:19:56 +0200 Subject: [Gambas-user] Backgroundimage In-Reply-To: <1085755726.3226.0.camel@...40...> References: <1307622157@...20...> <200405280006.01052.abidoo.too@...11...> <1085755726.3226.0.camel@...40...> Message-ID: <200405282019.56580.abidoo.too@...11...> Le vendredi 28 Mai 2004 16:48, Daniel a ?crit : > El vie, 28-05-2004 a las 00:06, Fabien Bodard escribi?: > > Le jeudi 27 Mai 2004 22:19, Rob a ?crit : > > > > Draw.Begin(me) > > > > Draw.Picture(Picture["mypicture'],0,0) > > > > Draw.End > > > > PUBLIC SUB Form_Activate() > > > > Draw.Begin(ME) > > Draw.Picture(Picture[Application.Home &/ "Desktop/image/241.png"],0,0) > > Draw.End > > > > END > > > > That code work fine and redraw background. > > > > Fabien > > Is this a 'little of Fabien'? :-)) h?h? I'm not masked... you can see the total at http://gambas.magic-systems.net I think i'm going do re-work on the site.... But not in the same way ... too hard/ fabien > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id?66&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From grahame at ...457... Fri May 28 23:59:29 2004 From: grahame at ...457... (Grahame White) Date: Fri, 28 May 2004 22:59:29 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405281739.08765.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405271544.48975.grahame@...457...> <200405281739.08765.grahame@...457...> Message-ID: <200405282259.29473.grahame@...457...> > And here's another updated version > > new : > Added a toolbar > New Game > Undo > Redo > Quit > > Implemented undo/redo feature > > And a few minor code cleanups > > Grahame Yes well maybe I should have waited a bit before sending that last update, as I wouldn't then have to post 2 updates in the same day :) Anyhow here's what's new new : Added multiple board layout support Added a new board layout Some more minor tweaks If anyone wishes to add some new board layouts then please feel free to send them and I'll add them in. Also I'd be greatfull if someone could make a better looking ball image, my graphics skills are bad to say the least. Something around 32x32 pixels with a transparent background in png format would be perfect ;) Grahame From grahame at ...457... Sat May 29 00:02:43 2004 From: grahame at ...457... (Grahame White) Date: Fri, 28 May 2004 23:02:43 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405282259.29473.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405281739.08765.grahame@...457...> <200405282259.29473.grahame@...457...> Message-ID: <200405282302.43382.grahame@...457...> > Yes well maybe I should have waited a bit before sending that last > update, as I wouldn't then have to post 2 updates in the same day :) > > Anyhow here's what's new > > new : > Added multiple board layout support > Added a new board layout > Some more minor tweaks > > > If anyone wishes to add some new board layouts then please feel free to > send them and I'll add them in. > Also I'd be greatfull if someone could make a better looking ball image, > my graphics skills are bad to say the least. Something around 32x32 > pixels with a transparent background in png format would be perfect ;) > > Grahame D'oh after all that I forgot to attach the file. Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.tar.gz Type: application/x-tgz Size: 5140 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Sat May 29 00:22:38 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 28 May 2004 18:22:38 -0400 Subject: [Gambas-user] mandrake package status Message-ID: <200405281822.38979.sourceforge-raindog2@...94...> I expect to get them done this weekend, but there are still a lot of hardcoded file locations (or more accurately, hardcoded subdirectories) that I need to deal with. It is still looking for all the gambas components in /usr/lib/gambas-0.93b/lib/gambas, which I ended up symlinking to "./" to fix it, but now I find it's also looking for the documentation in /usr/lib/gambas-0.93b/share/gambas. I'm thinking that since everything is expected to be in $LIBDIR/gambas now, I should redo my specs to not create /usr/lib/gambas-$VERSION and just throw everything in /usr/lib/gambas, but I am not sure I will be able to make mandrake-compliant (as in, acceptable for contrib) that way. But whatever, I do mean to have packages for Mandrake by the end of our long weekend even if I have to include patches to undo that /gambas/ change ;) Rob From trorrr at ...397... Sat May 29 03:01:06 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sat, 29 May 2004 03:01:06 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <200405251843.31884.gambas@...1...> References: <1302945043@...20...> <200405251843.31884.gambas@...1...> Message-ID: <200405290301.07408.trorrr@...397...> El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribi?: > On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > > I read a bit docu... there is a remote interface for mpg321 available... > > you can set mpg321 in an interactive mode. That means that you can type > > in a command for stop, ff or rew, but I do not know how to send these > > "keys" from gambas... I tried to write it to stdout, but that did not > > work.. ;-( > > > > - Tim - > > Something like that: > > DIM hProcess AS Process > > EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess > > ... > > PRINT #hProcess, "The keys"; > > > PUBLIC SUB Process_Read() > > DIM sRead AS String > > READ #hProcess, sRead, -256 > > PRINT "mpg321 sent: "; sRead > > END > > > Look at the examples that use external programs, like the video player that > uses mplayer and send it commands. > > Regards, Hi, there is some argument in mpg123 that allows to play a soundfile starting in the 34th second, as example? From trorrr at ...397... Sat May 29 03:09:03 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sat, 29 May 2004 03:09:03 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <200405290301.07408.trorrr@...397...> References: <1302945043@...20...> <200405251843.31884.gambas@...1...> <200405290301.07408.trorrr@...397...> Message-ID: <200405290309.03131.trorrr@...397...> El S?bado, 29 de Mayo de 2004 03:01, H?ctor Fern?ndez L?pez escribi?: > El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribi?: > > On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > > > I read a bit docu... there is a remote interface for mpg321 > > > available... you can set mpg321 in an interactive mode. That means that > > > you can type in a command for stop, ff or rew, but I do not know how to > > > send these "keys" from gambas... I tried to write it to stdout, but > > > that did not work.. ;-( > > > > > > - Tim - > > > > Something like that: > > > > DIM hProcess AS Process > > > > EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess > > > > ... > > > > PRINT #hProcess, "The keys"; > > > > > > PUBLIC SUB Process_Read() > > > > DIM sRead AS String > > > > READ #hProcess, sRead, -256 > > > > PRINT "mpg321 sent: "; sRead > > > > END > > > > > > Look at the examples that use external programs, like the video player > > that uses mplayer and send it commands. > > > > Regards, > > Hi, there is some argument in mpg123 that allows to play a soundfile > starting in the 34th second, as example? > Sorry, i've found an argument in the mpg123 man page that makes mpg123 skip 'n' first frames when i sent the previous mail. The question is answered. Bye. > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id?66&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat May 29 13:18:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 13:18:05 +0200 Subject: [Gambas-user] distributing gambas application Message-ID: <200405291318.05317.gambas@...1...> One of the big problems of Gambas before having a 1.0 version is: *** How can I distribute my gambas applications ? *** I decided that Gambas will follow the standard Linux way of distributing applications and not the Window way. I mean, the next version of Gambas IDE will have a wizard that will generate binary packages of your projects. At the moment, only Mandrake RPMs are generated. These packages will require the "gambas" package to be already installed. The "gambas" package will be made by distribution maintainers, and will include all the needed stuff to run a gambas project (gbx, gbi, gbc, gba, the *.info files, the components...) So now I need the powerful skills of gambas users using something other than a Mandrake! 1) I think that if every RPM based distributions use "gambas" as the name of the main gambas package, the packages generated for the Mandrake will work too. 2) How can I make a package for a Debian based system ? Need help! 3) Same question, but for FreeBSD. I'm waiting for answers :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From thierry at ...342... Sat May 29 12:36:52 2004 From: thierry at ...342... (Thierry Thomas) Date: Sat, 29 May 2004 12:36:52 +0200 Subject: [Gambas-user] distributing gambas application In-Reply-To: <200405291318.05317.gambas@...1...> References: <200405291318.05317.gambas@...1...> Message-ID: <20040529103652.GB51256@...343...> Salut?! Le Sam 29 mai 04 ? 13:18:05 +0200, Benoit Minisini ?crivait?: > 3) Same question, but for FreeBSD. This should not be too difficult: FreeBSD ports (then packages) are just Makefile. It must list its dependencies (extra gambas) and all the installed files. Don't hesitate to contact me [in french ;-)]. -- Th. Thomas. From gambas at ...1... Sat May 29 14:01:45 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 14:01:45 +0200 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405282302.43382.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405282259.29473.grahame@...457...> <200405282302.43382.grahame@...457...> Message-ID: <200405291401.45544.gambas@...1...> On Saturday 29 May 2004 00:02, Grahame White wrote: > > Yes well maybe I should have waited a bit before sending that last > > update, as I wouldn't then have to post 2 updates in the same day :) > > > > Anyhow here's what's new > > > > new : > > Added multiple board layout support > > Added a new board layout > > Some more minor tweaks > > > > > > If anyone wishes to add some new board layouts then please feel free to > > send them and I'll add them in. > > Also I'd be greatfull if someone could make a better looking ball image, > > my graphics skills are bad to say the least. Something around 32x32 > > pixels with a transparent background in png format would be perfect ;) > > > > Grahame > > D'oh after all that I forgot to attach the file. > > Grahame I made a blue spehre with Gimp and included it. -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sat May 29 13:15:33 2004 From: grahame at ...457... (Grahame White) Date: Sat, 29 May 2004 12:15:33 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405291401.45544.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405282302.43382.grahame@...457...> <200405291401.45544.gambas@...1...> Message-ID: <200405291215.33736.grahame@...457...> > > > Grahame > > > > D'oh after all that I forgot to attach the file. > > > > Grahame > > I made a blue spehre with Gimp and included it. Great, thanks. Grahame From grahame at ...457... Sat May 29 15:12:45 2004 From: grahame at ...457... (Grahame White) Date: Sat, 29 May 2004 14:12:45 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405291215.33736.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405291401.45544.gambas@...1...> <200405291215.33736.grahame@...457...> Message-ID: <200405291412.45253.grahame@...457...> On Saturday 29 May 2004 12:15, Grahame White wrote: > > > > Grahame > > > > > > D'oh after all that I forgot to attach the file. > > > > > > Grahame > > > > I made a blue spehre with Gimp and included it. > > Great, thanks. > > Grahame > Hmm, I was making some more updates. Mainly new boards, nothing added to the core really but now when I try running my program it gives me an error saying that Global (the class I store the global variables in) cannot be loaded. I've had a look at the area it's telling has problems but I can't see anything wrong there, It's not even an area of code I've touched in the past few days :/ I'd be greatfull if someone could take a look and see if they get the same error. Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.tar.gz Type: application/x-tgz Size: 8064 bytes Desc: not available URL: From trorrr at ...397... Sat May 29 15:27:19 2004 From: trorrr at ...397... (=?iso-8859-15?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sat, 29 May 2004 15:27:19 +0200 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405291412.45253.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405291215.33736.grahame@...457...> <200405291412.45253.grahame@...457...> Message-ID: <200405291527.20569.trorrr@...397...> El S?bado, 29 de Mayo de 2004 15:12, Grahame White escribi?: > On Saturday 29 May 2004 12:15, Grahame White wrote: > > > > > Grahame > > > > > > > > D'oh after all that I forgot to attach the file. > > > > > > > > Grahame > > > > > > I made a blue spehre with Gimp and included it. > > > > Great, thanks. > > > > Grahame > > Hmm, I was making some more updates. Mainly new boards, nothing added to > the core really but now when I try running my program it gives me an error > saying that Global (the class I store the global variables in) cannot be > loaded. Same error > > I've had a look at the area it's telling has problems but I can't see > anything wrong there, It's not even an area of code I've touched in the > past few days :/ > > I'd be greatfull if someone could take a look and see if they get the same > error. > > Grahame From bundeshund at ...467... Sat May 29 15:39:03 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Sat, 29 May 2004 15:39:03 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405291412.45253.grahame@...457...> References: <200405261951.26386.grahame@...457...> <200405291215.33736.grahame@...457...> <200405291412.45253.grahame@...457...> Message-ID: <200405291539.03821.bundeshund@...467...> Hello, this is my first posting to this group and I guess I have a very simple question for you. I try to write a little application with gambas and mysql. Now I run into trouble: I have a ComboBox where the user can select entries which I generated in the _new()-function using a sql-select-*-statement for all entries in this table. So far so good. All entries are selectable in the combobox. I have a TextBox, where the user can enter a serch text. With this text-string, I redo the sql-select for the entries, limiting the result by his entered search query. And now, I want to clear all old entries in the combobox, then add the new entries from the reselected sql-query. But how? When I use 'ComboBox.clear' the programm crashes with returncode(-1). So I tried to count from '0' to 'combobox.count' and delete each entry with 'combobox.remove'. This is nearly usable, but two old entries still survive this loop! Only when I repeat this loop three times, the combobox empty. What do I wrong? How to clear all combobox entries? Best regards, HM From grahame at ...457... Sat May 29 15:52:32 2004 From: grahame at ...457... (Grahame White) Date: Sat, 29 May 2004 14:52:32 +0100 Subject: [Gambas-user] simple solitaire example In-Reply-To: <200405291527.20569.trorrr@...397...> References: <200405261951.26386.grahame@...457...> <200405291412.45253.grahame@...457...> <200405291527.20569.trorrr@...397...> Message-ID: <200405291452.32820.grahame@...457...> > > Hmm, I was making some more updates. Mainly new boards, nothing added > > to the core really but now when I try running my program it gives me > > an error saying that Global (the class I store the global variables > > in) cannot be loaded. > > Same error Thanks for testing, at least I know it isn't a problem with my gambas install. Odd, I've tried replacing the Global.class file with a known good backup and I'm still getting the same error :/ Grahame From girardhenri at ...67... Sat May 29 16:46:00 2004 From: girardhenri at ...67... (Henri Girard) Date: Sat, 29 May 2004 16:46:00 +0200 Subject: [Gambas-user] distributing gambas application References: <200405291318.05317.gambas@...1...> Message-ID: Salut :) I use fedora core 2 (Olivier too...) but I have never done rpms ? is it difficult ? Well anyway we can prepare it .. kind regards Henri ----- Original Message ----- From: "Benoit Minisini" To: Sent: Saturday, May 29, 2004 1:18 PM Subject: [Gambas-user] distributing gambas application > One of the big problems of Gambas before having a 1.0 version is: > > *** How can I distribute my gambas applications ? *** > > I decided that Gambas will follow the standard Linux way of distributing > applications and not the Window way. > > I mean, the next version of Gambas IDE will have a wizard that will generate > binary packages of your projects. > > At the moment, only Mandrake RPMs are generated. These packages will require > the "gambas" package to be already installed. The "gambas" package will be > made by distribution maintainers, and will include all the needed stuff to > run a gambas project (gbx, gbi, gbc, gba, the *.info files, the > components...) > > So now I need the powerful skills of gambas users using something other than a > Mandrake! > > 1) I think that if every RPM based distributions use "gambas" as the name of > the main gambas package, the packages generated for the Mandrake will work > too. > > 2) How can I make a package for a Debian based system ? Need help! > > 3) Same question, but for FreeBSD. > > I'm waiting for answers :-) > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Sat May 29 16:49:36 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 29 May 2004 10:49:36 -0400 Subject: [Gambas-user] distributing gambas application In-Reply-To: <200405291318.05317.gambas@...1...> References: <200405291318.05317.gambas@...1...> Message-ID: <200405291049.36281.sourceforge-raindog2@...94...> On Saturday 29 May 2004 07:18, Benoit Minisini wrote: > installed. The "gambas" package will be made by distribution > maintainers, and will include all the needed stuff to run a > gambas project (gbx, gbi, gbc, gba, the *.info files, the > components...) As I mentioned before in private, since the components are .so and .la files Mandrake requires them to be in a package beginning with "lib", currently libgambas0. But the main package is still named gambas, so this should be good enough. I have also made an unofficial gambas-runtime package including the contents of gambas and libgambas0, and which provides the "gambas" rpm resource, so mandrake users would only have to install one package. Rob From gambas at ...1... Sat May 29 20:04:02 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 20:04:02 +0200 Subject: [Gambas-user] distributing gambas application In-Reply-To: <200405291049.36281.sourceforge-raindog2@...94...> References: <200405291318.05317.gambas@...1...> <200405291049.36281.sourceforge-raindog2@...94...> Message-ID: <200405292004.02074.gambas@...1...> On Saturday 29 May 2004 16:49, Rob wrote: > On Saturday 29 May 2004 07:18, Benoit Minisini wrote: > > installed. The "gambas" package will be made by distribution > > maintainers, and will include all the needed stuff to run a > > gambas project (gbx, gbi, gbc, gba, the *.info files, the > > components...) > > As I mentioned before in private, since the components are .so > and .la files Mandrake requires them to be in a package > beginning with "lib", currently libgambas0. But the main > package is still named gambas, so this should be good enough. > > I have also made an unofficial gambas-runtime package including > the contents of gambas and libgambas0, and which provides the > "gambas" rpm resource, so mandrake users would only have to > install one package. > > Rob > If I sum up things, we must have, in Mandrake: - gambas: gbx, gbi, gbc, gba, ./share/gambas/info/* - libgambas0: ./lib/* - gambas-runtime: gambas + libgambas0 - gambas-gui or gambas-ide: the IDE + the database manager - gambas-doc: the docs - gambas-devel: the *.so symbolic links. But in the case of gambas, their convention is not very relevant, as: - gbx (the interpreter) cannot load components without the *.so symbolic links. - gambas-gui is not the gui of the gambas interpreter, it is a gambas IDE written in gambas. - the gambas components (libgambas0) are tied to the interpreter, and only the interpreter will use them. On the other hand, a new major version of the interpreter will require new major version of libraries. I think that before the 1.0, I will give to the components a 1.0 version in the so file (if I find how to do that!) Is it possible to swap gambas & gambas-runtime names, so that just a "Requires: gambas" is sufficient in the RPM made by the IDE ? Is it possible to make a circular dependency so that installing one of the three packages gambas, gambas-runtime & gambas-devel installs the two other ones ? Is it possible that installing gambas-gui implies gambas-doc ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sat May 29 22:25:13 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 22:25:13 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405291539.03821.bundeshund@...467...> References: <200405261951.26386.grahame@...457...> <200405291412.45253.grahame@...457...> <200405291539.03821.bundeshund@...467...> Message-ID: <200405292225.13653.gambas@...1...> On Saturday 29 May 2004 15:39, Hans-Martin Bundeshund wrote: > Hello, > > this is my first posting to this group and I guess I have a very simple > question for you. > > I try to write a little application with gambas and mysql. Now I run into > trouble: > > I have a ComboBox where the user can select entries which I generated in > the _new()-function using a sql-select-*-statement for all entries in this > table. So far so good. All entries are selectable in the combobox. > > I have a TextBox, where the user can enter a serch text. With this > text-string, I redo the sql-select for the entries, limiting the result by > his entered search query. > > And now, I want to clear all old entries in the combobox, then add the new > entries from the reselected sql-query. But how? > > When I use 'ComboBox.clear' the programm crashes with returncode(-1). > So I tried to count from '0' to 'combobox.count' and delete each entry with > 'combobox.remove'. This is nearly usable, but two old entries still survive > this loop! Only when I repeat this loop three times, the combobox empty. > > What do I wrong? How to clear all combobox entries? > > Best regards, > HM > I see no problem with clearing the combobox on my machine. Can you send me the project that crashes so that I debug it ? Regards, -- Benoit Minisini mailto:gambas at ...1... From bundeshund at ...467... Sat May 29 23:43:06 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Sat, 29 May 2004 23:43:06 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405292225.13653.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405291539.03821.bundeshund@...467...> <200405292225.13653.gambas@...1...> Message-ID: <200405292343.06784.bundeshund@...467...> Am Samstag, 29. Mai 2004 22:25 schrieb Benoit Minisini: ... > I see no problem with clearing the combobox on my machine. > > Can you send me the project that crashes so that I debug it ? Oh, I see. I created a small application, only have a combobox and a button: +++ PUBLIC SUB _new() combobox1.Add("Entry1") combobox1.Add("Entry2") combobox1.Add("Entry3") END PUBLIC SUB Button1_Click() combobox1.Clear combobox1.Add("New1") combobox1.Add("New2") combobox1.Add("New3") END +++ For my suprise this works for me, too. So I must make some mistake, filling my combobox, I guess. Here is my source: +++ ... $hConn.Open 'sstring = "a simple sql-select" rData = $hConn.Exec(sstring) FOR EACH rData.Field TRY rData.MoveTo(rDZ) TRY ProdukteListBox.add(rData!id & "-" & rData!name1 & " - " & Str(rData!datum) & " - " & rData!status1) INC rDZ NEXT $hConn.Close ME.SetFocus ME.Refresh ... +++ Regards, HM From gambas at ...1... Sat May 29 23:49:25 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 23:49:25 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405292343.06784.bundeshund@...467...> References: <200405261951.26386.grahame@...457...> <200405292225.13653.gambas@...1...> <200405292343.06784.bundeshund@...467...> Message-ID: <200405292349.25855.gambas@...1...> On Saturday 29 May 2004 23:43, Hans-Martin Bundeshund wrote: > Am Samstag, 29. Mai 2004 22:25 schrieb Benoit Minisini: > ... > > > I see no problem with clearing the combobox on my machine. > > > > Can you send me the project that crashes so that I debug it ? > > Oh, I see. I created a small application, only have a combobox and a > button: > > +++ > PUBLIC SUB _new() > combobox1.Add("Entry1") > combobox1.Add("Entry2") > combobox1.Add("Entry3") > END > > > PUBLIC SUB Button1_Click() > combobox1.Clear > combobox1.Add("New1") > combobox1.Add("New2") > combobox1.Add("New3") > END > +++ > > For my suprise this works for me, too. So I must make some mistake, filling > my combobox, I guess. Here is my source: > > +++ > ... > $hConn.Open > 'sstring = "a simple sql-select" > rData = $hConn.Exec(sstring) > FOR EACH rData.Field > TRY rData.MoveTo(rDZ) > TRY ProdukteListBox.add(rData!id & "-" & rData!name1 & " - " & > Str(rData!datum) & " - " & rData!status1) > INC rDZ > NEXT > $hConn.Close > ME.SetFocus > ME.Refresh > ... > +++ > > > Regards, > HM > If you program crashed, it means that there is a bug somewhere in the interpreter or in the qt component. But this bug could be very nasty, and having just a little piece of your code can't help me fixing it. I need the entire project, and the version of Gambas you used to run it. Regards, -- Benoit Minisini mailto:gambas at ...1... From bundeshund at ...467... Sun May 30 00:05:16 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Sun, 30 May 2004 00:05:16 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405292349.25855.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405292343.06784.bundeshund@...467...> <200405292349.25855.gambas@...1...> Message-ID: <200405300005.16328.bundeshund@...467...> Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini: > If you program crashed, it means that there is a bug somewhere in the > interpreter or in the qt component. This is possible, but I don't hope/thing so. I use SuSE 9.1 with KDE 3.2.2, gambas 0.92 with mysql-support. As you see, the sample I quoted, works form me. I think it must have be something with my code. Do you know a link where I can see a example for working with comboboxes? > > But this bug could be very nasty, and having just a little piece of your > code can't help me fixing it. OK, I understand. But I had have problems wirting the 'insert-into-combobox.text'-code. As You can see, I allways use the TRY-function, without I get some errors. I think I make some basicly wrong with my filling the 'combobox.text'. > > I need the entire project, and the version of Gambas you used to run it. If so, how can I send it to You? > Regards, HM From gambas at ...1... Sun May 30 00:12:02 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 May 2004 00:12:02 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405300005.16328.bundeshund@...467...> References: <200405261951.26386.grahame@...457...> <200405292349.25855.gambas@...1...> <200405300005.16328.bundeshund@...467...> Message-ID: <200405300012.02811.gambas@...1...> On Sunday 30 May 2004 00:05, Hans-Martin Bundeshund wrote: > Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini: > > If you program crashed, it means that there is a bug somewhere in the > > interpreter or in the qt component. > > This is possible, but I don't hope/thing so. I use SuSE 9.1 with KDE 3.2.2, > gambas 0.92 with mysql-support. As you see, the sample I quoted, works form > me. I think it must have be something with my code. Do you know a link > where I can see a example for working with comboboxes? > > > But this bug could be very nasty, and having just a little piece of your > > code can't help me fixing it. > > OK, I understand. But I had have problems wirting the > 'insert-into-combobox.text'-code. As You can see, I allways use the > TRY-function, without I get some errors. I think I make some basicly wrong > with my filling the 'combobox.text'. > > > I need the entire project, and the version of Gambas you used to run it. > > If so, how can I send it to You? > > > Regards, > HM > Use the "make source archive" entry in the IDE menu, and send me the tar.gz file to my e-mail in the signature. Don't forget to tell me where to click to get the crash. Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...11... Sun May 30 03:03:41 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Sun, 30 May 2004 03:03:41 +0200 Subject: [Gambas-user] need a little help Message-ID: <200405300303.41758.abidoo.too@...11...> hi all I don't remember how to free a class (close) I've put classes in an array... but how to free them... Just delete the entry is not sufficient. and the _free event don't work in this case.... Fabien From trorrr at ...397... Sun May 30 03:24:34 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 03:24:34 +0200 Subject: [Gambas-user] Possible bug in Gambas Message-ID: <200405300324.34884.trorrr@...397...> Hi, i'm experimenting the same error of 'solitaire' reported Grahame White in some projects i've running in 0.91 version. The error occurs on executing the project, and it says: ERROR: #2: Cannot load class 'CmdLine': Unable to load class file where CmdLine is the classname. This error is only raised when a class does not have a Form with his same name. Hope this could be fixed as early as you can. Bye. From trorrr at ...397... Sun May 30 03:30:47 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 03:30:47 +0200 Subject: [Gambas-user] Possible bug in Gambas In-Reply-To: <200405300324.34884.trorrr@...397...> References: <200405300324.34884.trorrr@...397...> Message-ID: <200405300330.47810.trorrr@...397...> El Domingo, 30 de Mayo de 2004 03:24, H?ctor Fern?ndez L?pez escribi?: > Hi, i'm experimenting the same error of 'solitaire' reported Grahame White > in some projects i've running in 0.91 > version. The error occurs on executing the project, and it says: > ERROR: #2: Cannot load class 'CmdLine': Unable to load class file > where CmdLine is the classname. This error is only raised when a class > does not have a Form with his same name. Hope this could be fixed as early > as you can. Bye. I forgive say that the error appears in gambas 0.93b > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From trorrr at ...397... Sun May 30 03:48:06 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 03:48:06 +0200 Subject: [Gambas-user] Possible bug in Gambas In-Reply-To: <200405300330.47810.trorrr@...397...> References: <200405300324.34884.trorrr@...397...> <200405300330.47810.trorrr@...397...> Message-ID: <200405300348.06274.trorrr@...397...> El Domingo, 30 de Mayo de 2004 03:30, H?ctor Fern?ndez L?pez escribi?: > El Domingo, 30 de Mayo de 2004 03:24, H?ctor Fern?ndez L?pez escribi?: > > Hi, i'm experimenting the same error of 'solitaire' reported Grahame > > White in some projects i've running in > > 0.91 version. The error occurs on executing the project, and it says: > > ERROR: #2: Cannot load class 'CmdLine': Unable to load class file where > > CmdLine is the classname. This error is only raised when a class does > > not have a Form with his same name. Hope this could be fixed as early as > > you can. Bye. > > I forgive say that the error appears in gambas 0.93b > I was testing Read Only projects, so i changed permissions, and now it runs well. Sorry about this tension minutes. So, the problem with solitaire is that the class is Read Only or something like that. From trorrr at ...397... Sun May 30 03:57:57 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 03:57:57 +0200 Subject: [Gambas-user] Something is happening with Process... Message-ID: <200405300357.57534.trorrr@...397...> Hi again. Gambas 0.93b gives me this error: Unknown symbol 'Send' in class 'Process' when i, by example, try to use FConsole example. It highlightes $hProcess.Send(sLig) line. This is no caused by Read Only projects or something else. I opened the Gambas Help Viewer Process section, and Send does not appear. What's happened with Send?? From bundeshund at ...467... Sun May 30 07:28:40 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Sun, 30 May 2004 07:28:40 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405300012.02811.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405300005.16328.bundeshund@...467...> <200405300012.02811.gambas@...1...> Message-ID: <200405300728.40738.bundeshund@...467...> Am Sonntag, 30. Mai 2004 00:12 schrieb Benoit Minisini: > On Sunday 30 May 2004 00:05, Hans-Martin Bundeshund wrote: > > Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini: > > > If you program crashed, it means that there is a bug somewhere in the > > > interpreter or in the qt component. > > > > This is possible, but I don't hope/thing so. I use SuSE 9.1 with KDE > > 3.2.2, gambas 0.92 with mysql-support. As you see, the sample I quoted, > > works form me. I think it must have be something with my code. Do you > > know a link where I can see a example for working with comboboxes? > > > > > But this bug could be very nasty, and having just a little piece of > > > your code can't help me fixing it. > > > > OK, I understand. But I had have problems wirting the > > 'insert-into-combobox.text'-code. As You can see, I allways use the > > TRY-function, without I get some errors. I think I make some basicly > > wrong with my filling the 'combobox.text'. > > > > > I need the entire project, and the version of Gambas you used to run > > > it. > > > > If so, how can I send it to You? > > > > > > Regards, > > HM > > Use the "make source archive" entry in the IDE menu, and send me the tar.gz > file to my e-mail in the signature. Don't forget to tell me where to click > to get the crash. Sorry for the delay. One last question: as I wrote this application is sql-based, so you need some filled sql-tables to run it. How to resolve this problem? > > Regards, HM From gambas at ...1... Sun May 30 09:14:49 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 May 2004 09:14:49 +0200 Subject: [Gambas-user] need a little help In-Reply-To: <200405300303.41758.abidoo.too@...11...> References: <200405300303.41758.abidoo.too@...11...> Message-ID: <200405300914.50028.gambas@...1...> On Sunday 30 May 2004 03:03, Fabien Bodard wrote: > hi all > > I don't remember how to free a class (close) > > I've put classes in an array... but how to free them... Just delete the > entry is not sufficient. > > and the _free event don't work in this case.... > > Fabien > You can't explicitely free a object (I think you mixed up class and object so I corrected). An object is freed when nothing has a reference on it. So check your code to see which variable or array or collection has a reference on your objects. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 30 09:16:57 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 May 2004 09:16:57 +0200 Subject: [Gambas-user] Something is happening with Process... In-Reply-To: <200405300357.57534.trorrr@...397...> References: <200405300357.57534.trorrr@...397...> Message-ID: <200405300916.57958.gambas@...1...> On Sunday 30 May 2004 03:57, H?ctor Fern?ndez L?pez wrote: > Hi again. Gambas 0.93b gives me this error: > Unknown symbol 'Send' in class 'Process' > when i, by example, try to use FConsole example. It highlightes > $hProcess.Send(sLig) line. This is no caused by Read Only projects or > something else. I opened the Gambas Help Viewer Process section, and Send > does not appear. What's happened with Send?? > Read the changelog man :-) Now, instead of doing: MyProcess.Send(Data) You do: PRINT #MyProcess, Data; Cool, isn't it ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 30 09:23:25 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 May 2004 09:23:25 +0200 Subject: [Gambas-user] Sound SDL In-Reply-To: <20040526052250.24032.qmail@...211...> References: <20040526052250.24032.qmail@...211...> Message-ID: <200405300923.25917.gambas@...1...> On Wednesday 26 May 2004 07:22, Devilyn wrote: > Ok got SDL up and running in Gambas. But I do not know > what commands to use... I only plan on using WAV files > for my game program. Can someone post some demo code > on how to play a WAV file using the Sound Componet. > Maybe how to start 1 wav and loop it or stop the wav > from playing... then I assume you just do the same to > play more than one at a time? > Little help? > Dev > DIM hChannel AS Channel DIM hSound AS Sound hSound = NEW Sound("/path/to/mysound.wav") hChannel = hSound.Play(8) ' Plays 8 times. If you use -1, the sound is played infinitely. ... hChannel.Stop ' Stop the sound played on this channel. Is it a bit clearer ? -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Sun May 30 11:07:37 2004 From: grahame at ...457... (Grahame White) Date: Sun, 30 May 2004 10:07:37 +0100 Subject: [Gambas-user] Possible bug in Gambas In-Reply-To: <200405300348.06274.trorrr@...397...> References: <200405300324.34884.trorrr@...397...> <200405300330.47810.trorrr@...397...> <200405300348.06274.trorrr@...397...> Message-ID: <200405301007.37934.grahame@...457...> On Sunday 30 May 2004 02:48, H?ctor Fern?ndez L?pez wrote: > El Domingo, 30 de Mayo de 2004 03:30, H?ctor Fern?ndez L?pez escribi?: > > El Domingo, 30 de Mayo de 2004 03:24, H?ctor Fern?ndez L?pez escribi?: > > > Hi, i'm experimenting the same error of 'solitaire' reported Grahame > > > White in some projects i've running > > > in 0.91 version. The error occurs on executing the project, and it > > > says: ERROR: #2: Cannot load class 'CmdLine': Unable to load class > > > file where CmdLine is the classname. This error is only raised when > > > a class does not have a Form with his same name. Hope this could be > > > fixed as early as you can. Bye. > > > > I forgive say that the error appears in gambas 0.93b > > I was testing Read Only projects, so i changed permissions, and now it > runs well. Sorry about this tension minutes. So, the problem with > solitaire is that the class is Read Only or something like that. I wish that were the problem. One of the first things I did was to check the permissons of all the files in the project archive and they all had the same permissions : grahame at ...468...:~/source_code/solitaire$ ls -l total 76 -rw-r--r-- 1 grahame grahame 409 May 26 16:24 CBoardDesign.class -rw-r--r-- 1 grahame grahame 133 May 27 23:46 CMove.class -rw-r--r-- 1 grahame grahame 561 May 29 20:16 FBoardSelect.class -rw-r--r-- 1 grahame grahame 379 May 28 22:43 FBoardSelect.form -rw-r--r-- 1 grahame grahame 10139 May 29 21:09 FGameArea.class -rw-r--r-- 1 grahame grahame 1204 May 28 22:22 FGameArea.form -rw-r--r-- 1 grahame grahame 657 May 29 20:54 Global.class -rw-r--r-- 1 grahame grahame 5305 May 29 20:16 MBoards.module -rw-r--r-- 1 grahame grahame 2461 May 28 23:09 ball.png -rw-r--r-- 1 grahame grahame 183 May 27 21:47 new.png -rw-r--r-- 1 grahame grahame 250 May 27 21:48 quit.png -rw-r--r-- 1 grahame grahame 228 May 27 21:47 redo.png -rw-r--r-- 1 grahame grahame 225 May 27 21:47 undo.png I've tried deleting the Global.class file and recreating it from scratch but still no go. I tried importing the file from a known working backup of the project. I spent about 2 hours trying out various things last night but I still can't get the solitaire project to work again. Grahame From grahame at ...457... Sun May 30 12:21:48 2004 From: grahame at ...457... (Grahame White) Date: Sun, 30 May 2004 11:21:48 +0100 Subject: [Gambas-user] Solitaire fixed In-Reply-To: <200405301007.37934.grahame@...457...> References: <200405300324.34884.trorrr@...397...> <200405300348.06274.trorrr@...397...> <200405301007.37934.grahame@...457...> Message-ID: <200405301121.48164.grahame@...457...> > I spent about 2 hours trying out various things last night but I still > can't get the solitaire project to work again. > > Grahame > Well I finally figured out what was wrong... One of the board layouts was only half coded which only goes to show that debugging whilst tired is a silly thing to try :) So here's the updated version new : Added several new boards Game now tells player if they win Made the finish cell have a sunken border (the finish cell is the cell that the last ball must end up in to win) Added a tmp ball graphic taken from the eremit[1] solitaire game Benoit - If you could send me the ball graphic you made I'll use that instead. Grahame [1] http://www.student.hig.se/~nd02aho/stuff/eremit/Eremit.html -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.v0.4.tar.gz Type: application/x-tgz Size: 8032 bytes Desc: not available URL: From trorrr at ...397... Sun May 30 14:21:41 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 14:21:41 +0200 Subject: [Gambas-user] About Replace$ Message-ID: <200405301421.42105.trorrr@...397...> Hi, i try to convert every space in a string in a \+space for passing it to a process as a unique parameter. I use: SomeString = Replace$(SourceString, " ", "\ ") and it says me: Bad character constant in string en linea 31 en Principal.class am i doing something wrong? From daniel.campos at ...338... Sun May 30 14:41:54 2004 From: daniel.campos at ...338... (Daniel) Date: Sun, 30 May 2004 14:41:54 +0200 Subject: [Gambas-user] About Replace$ In-Reply-To: <200405301421.42105.trorrr@...397...> References: <200405301421.42105.trorrr@...397...> Message-ID: <1085920914.3225.3.camel@...40...> El dom, 30-05-2004 a las 14:21, H?ctor Fern?ndez L?pez escribi?: > Hi, i try to convert every space in a string in a \+space for passing it to a > process as a unique parameter. I use: > SomeString = Replace$(SourceString, " ", "\ ") > and it says me: > Bad character constant in string en linea 31 en Principal.class > > am i doing something wrong? '\' is an special character, to represent carry returns and other special control characters, so I think you should use this instead: SomeString = Replace$(SourceString, " ", "\\ ") Like C,C++ or bash Regards, Daniel Campos > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From trorrr at ...397... Sun May 30 18:23:30 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 18:23:30 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <200405251843.31884.gambas@...1...> References: <1302945043@...20...> <200405251843.31884.gambas@...1...> Message-ID: <200405301823.30541.trorrr@...397...> El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribi?: > On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > > I read a bit docu... there is a remote interface for mpg321 available... > > you can set mpg321 in an interactive mode. That means that you can type > > in a command for stop, ff or rew, but I do not know how to send these > > "keys" from gambas... I tried to write it to stdout, but that did not > > work.. ;-( > > > > - Tim - > > Something like that: > > DIM hProcess AS Process > > EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess > > ... > > PRINT #hProcess, "The keys"; > > > PUBLIC SUB Process_Read() > > DIM sRead AS String > > READ #hProcess, sRead, -256 > > PRINT "mpg321 sent: "; sRead > > END > > > Look at the examples that use external programs, like the video player that > uses mplayer and send it commands. > > Regards, I am using mpg321 in remote control mode. When i load a song, Process_Error raises giving me: (each line is each sStr returned) m c o p w a r n ing: user defined signal handler found for SIG_PIPE, overriding and after less than a second the song stops playing until i close the app. Then mpg321 continues playing and i must close it with KILL. Is there someone using mpg321 on interactive mode from gambas without this error? From trorrr at ...397... Sun May 30 18:37:44 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 18:37:44 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <200405301823.30541.trorrr@...397...> References: <1302945043@...20...> <200405251843.31884.gambas@...1...> <200405301823.30541.trorrr@...397...> Message-ID: <200405301837.44606.trorrr@...397...> El Domingo, 30 de Mayo de 2004 18:23, H?ctor Fern?ndez L?pez escribi?: > El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribi?: > > On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > > > I read a bit docu... there is a remote interface for mpg321 > > > available... you can set mpg321 in an interactive mode. That means that > > > you can type in a command for stop, ff or rew, but I do not know how to > > > send these "keys" from gambas... I tried to write it to stdout, but > > > that did not work.. ;-( > > > > > > - Tim - > > > > Something like that: > > > > DIM hProcess AS Process > > > > EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess > > > > ... > > > > PRINT #hProcess, "The keys"; > > > > > > PUBLIC SUB Process_Read() > > > > DIM sRead AS String > > > > READ #hProcess, sRead, -256 > > > > PRINT "mpg321 sent: "; sRead > > > > END > > > > > > Look at the examples that use external programs, like the video player > > that uses mplayer and send it commands. > > > > Regards, > > I am using mpg321 in remote control mode. When i load a song, > Process_Error raises giving me: (each line is each sStr returned) > > > m > c > o > p > > w > a > r > n > ing: user defined signal handler found for SIG_PIPE, overriding > > > and after less than a second the song stops playing until i close the app. > Then mpg321 continues playing and i must close it with KILL. Is there > someone using mpg321 on interactive mode from gambas without this error? > I should clarify that if i use: EXEC [ "mpg321", "song.mp3" ] FOR READ WRITE AS $hProcess it returns the same message as above before any other string sent by the process. So, why mpg321 stops playing? From trorrr at ...397... Sun May 30 19:15:48 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Sun, 30 May 2004 19:15:48 +0200 Subject: [Gambas-user] MP3 In-Reply-To: <200405301837.44606.trorrr@...397...> References: <1302945043@...20...> <200405301823.30541.trorrr@...397...> <200405301837.44606.trorrr@...397...> Message-ID: <200405301915.49187.trorrr@...397...> El Domingo, 30 de Mayo de 2004 18:37, H?ctor Fern?ndez L?pez escribi?: > El Domingo, 30 de Mayo de 2004 18:23, H?ctor Fern?ndez L?pez escribi?: > > El Martes, 25 de Mayo de 2004 18:43, Benoit Minisini escribi?: > > > On Tuesday 25 May 2004 14:21, Tim Hanschen wrote: > > > > I read a bit docu... there is a remote interface for mpg321 > > > > available... you can set mpg321 in an interactive mode. That means > > > > that you can type in a command for stop, ff or rew, but I do not know > > > > how to send these "keys" from gambas... I tried to write it to > > > > stdout, but that did not work.. ;-( > > > > > > > > - Tim - > > > > > > Something like that: > > > > > > DIM hProcess AS Process > > > > > > EXEC [ "mpg321", "options" ] FOR READ WRITE AS #hProcess > > > > > > ... > > > > > > PRINT #hProcess, "The keys"; > > > > > > > > > PUBLIC SUB Process_Read() > > > > > > DIM sRead AS String > > > > > > READ #hProcess, sRead, -256 > > > > > > PRINT "mpg321 sent: "; sRead > > > > > > END > > > > > > > > > Look at the examples that use external programs, like the video player > > > that uses mplayer and send it commands. > > > > > > Regards, > > > > I am using mpg321 in remote control mode. When i load a song, > > Process_Error raises giving me: (each line is each sStr returned) > > > > > > m > > c > > o > > p > > > > w > > a > > r > > n > > ing: user defined signal handler found for SIG_PIPE, overriding > > > > > > and after less than a second the song stops playing until i close the > > app. Then mpg321 continues playing and i must close it with KILL. Is > > there someone using mpg321 on interactive mode from gambas without this > > error? > > I should clarify that if i use: > EXEC [ "mpg321", "song.mp3" ] FOR READ WRITE AS $hProcess > it returns the same message as above before any other string sent by the > process. So, why mpg321 stops playing? > PROBLEM SOLVED. I've done several changes and now it works. From grahame at ...457... Sun May 30 21:40:42 2004 From: grahame at ...457... (Grahame White) Date: Sun, 30 May 2004 20:40:42 +0100 Subject: [Gambas-user] Properties window vanishes Message-ID: <200405302040.42794.grahame@...457...> I'm getting a problem with gambas where after I run my program the properties window vanishes and all attempts, short of exiting gambas, fail to bring it back. I don't know if anyone else has noticed this behaviour. Every now and then I also have a problem where a class file I've edited wont open after I've run my program. As above it takes restarting gambas to be able to open the class again. Grahame From _root at ...324... Sun May 30 22:16:19 2004 From: _root at ...324... (-=FoX=-) Date: Sun, 30 May 2004 22:16:19 +0200 Subject: [Gambas-user] distributing gambas application In-Reply-To: <200405291318.05317.gambas@...1...> References: <200405291318.05317.gambas@...1...> Message-ID: <40BA4113.7040201@...324...> Benoit Minisini wrote: >2) How can I make a package for a Debian based system ? Need help! > > Is not so simple to make it in automatic way. If you want to make a deb package you need some tools like dpkg and others... Here you can find the official explain: http://www.nl.debian.org/doc/manuals/maint-guide/index.en.html I want to remember that a Debian user can simply convert an rpm package in deb package with "alien" tool. Alien is also available in rpm format, so a Mdk user can convert an rpm to a deb. I suggest you to try to implement a simple frontend for alien as "deb maker". We can make a try. Can you send me an rpm package maked with gambas? I try to convert it with alien. News: There is in project to insert gambas in the official debian sid repositories: http://www.debian.org/devel/wnpp/being_packaged (Search for Gambas) bye Fox :) -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Amanti del digitale ? arrivato il prodotto che aspettavate! Per ricevere i fax sul PC! * Scoprite come cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1567&d=30-5 From rh549 at ...469... Sun May 30 22:57:48 2004 From: rh549 at ...469... (Ron) Date: Sun, 30 May 2004 16:57:48 -0400 Subject: [Gambas-user] need a little help Message-ID: <001701c44688$c420b170$0100a8c0@...470...> ok have SuSE 8.2 running and as well just downloaded the most current RPM and did the install when I type gambas in the command window I this error Cannot preload libraries: Invalid argument but the main screen for Alpha version (0.56) comes up a when I make a new project I get three screens a toolbox, project, properties and thats it/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mardus at ...298... Sun May 30 23:37:58 2004 From: mardus at ...298... (Marcelo Duschkin) Date: Sun, 30 May 2004 18:37:58 -0300 Subject: [Gambas-user] Re: MP3 In-Reply-To: <200405301915.49187.trorrr@...397...> References: <1302945043@...20...> <200405301837.44606.trorrr@...397...> <200405301915.49187.trorrr@...397...> Message-ID: <200405301837.58744.mardus@...298...> El Dom 30 May 2004 14:15, H?ctor Fern?ndez L?pez escribi?: |> PROBLEM SOLVED. I've done several changes and now it works. |> Can you tell us how? It will be very usefull. PD: ?Conoces gambas-user-es? -- Para el cierre: --- El Ping?inor?culo sol?a citar: Windows ME, todos los bugs reservados! - - - Marcelo Duschkin - Buenos Aires - Argentina mardus at ...298... www.websdelsur.com.ar www.lahueya.com.ar From grahame at ...457... Mon May 31 02:04:49 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 01:04:49 +0100 Subject: [Gambas-user] anyone see what is happening here? Message-ID: <200405310104.49657.grahame@...457...> I've started adding the infrastructure for highscore tables in my project, where the score is the time taken to complete the board. When the project creates the highscore arrays it sets the default scores to 10 hours and the default name to "A N Other". Done using the equivalent of : global.highscoreentry.score = time(10, 0, 0) global.highscoreentry.name = "A N Other" Now if, right after declaring this, I do a : print global.highscoreentry.score I get 10:00:00 come up in the console, as expected. However when I actually display the highscore table the score entries are all 00:00:00, obviously not what was expected. The funny thing is that the name is displayed as it should be. I've attached my project as it is now. To reproduce : 1) load the project in gambas 2) goto Game->Show Highscores Simple as that. I'm pretty sure I've declared the variables with the correct scope because, as I mentioned above, the name is being displayed correctly. Any help would be appreciated Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.v0.5.tar.gz Type: application/x-tgz Size: 9714 bytes Desc: not available URL: From rizky at ...225... Mon May 31 05:24:38 2004 From: rizky at ...225... (Rizky Tahara Shita) Date: Mon, 31 May 2004 10:24:38 +0700 Subject: [Gambas-user] H/W ID Message-ID: <6.0.0.22.2.20040531102348.01c91498@...329...> in visual basic, we can use the WMI to get the hardware ID's number. how do i do that in gambas ? From sourceforge-raindog2 at ...94... Mon May 31 07:18:05 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 31 May 2004 01:18:05 -0400 Subject: [Gambas-user] H/W ID In-Reply-To: <6.0.0.22.2.20040531102348.01c91498@...329...> References: <6.0.0.22.2.20040531102348.01c91498@...329...> Message-ID: <200405310118.05891.sourceforge-raindog2@...94...> On Sunday 30 May 2004 23:24, Rizky Tahara Shita wrote: > in visual basic, we can use the WMI to get the hardware ID's > number. how do i do that in gambas ? You mean the processor serial number? Mac address? "Hardware ID's number" may have some specific meaning in windows, but nowhere else. If it's the processor serial number, see what "cat /proc/cpuinfo" tells you - my two machines here are cpu id level 1 (no ID) and level 2 (ID disabled) so I couldn't tell you what the serial number looks like exactly. I'm pretty sure the linux kernel disables the PSN by default unless the user has built support in or specifies some boot parameter like "enablecpuid" (it's not that, but it's something like it.) There is also a program called x86info that will retrieve the PSN if it hasn't been disabled. Rob From vbtricks at ...451... Mon May 31 11:01:54 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Mon, 31 May 2004 11:01:54 +0200 Subject: [Gambas-user] How to access SubItems in a Columnview Message-ID: <40BAF482.7050100@...451...> I added a columnview to my form with 4 columns, now I want to access the third subitem (this word is from VB's listview) of the second item for example: | Column 1 | Column 2| Column 3| Column 4 | |-----------------------------------------| | Item 1 | | | | | Item 2 | | * HERE *| | Dim sCurItem As String sCurItem = "item2" ColumnView1.Add(sCurItem, "Item 2") now how to write the third subitem of this item? Stefan ___________________________________________________________________________________ Muede auf kleines Postfach? http://my-mail.ch/?redirect=9903 Tigra TwinTop Game! Gewinnen Sie eine Staedtereise! http://my-mail.ch/?redirect=1745 From grahame at ...457... Mon May 31 12:07:34 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 11:07:34 +0100 Subject: [Gambas-user] user name Message-ID: <200405311107.34639.grahame@...457...> Is there a simple way to get the current users name? I'm currently adding a highscore table and I'd like it so that when the player is asked to enter their name their user name is entered as a default into the text box. Grahame From trorrr at ...397... Mon May 31 12:14:04 2004 From: trorrr at ...397... (=?iso-8859-1?q?H=E9ctor=20Fern=E1ndez=20L=F3pez?=) Date: Mon, 31 May 2004 12:14:04 +0200 Subject: [Gambas-user] user name In-Reply-To: <200405311107.34639.grahame@...457...> References: <200405311107.34639.grahame@...457...> Message-ID: <200405311214.04558.trorrr@...397...> El Lunes, 31 de Mayo de 2004 12:07, Grahame White escribi?: > Is there a simple way to get the current users name? > > I'm currently adding a highscore table and I'd like it so that when the > player is asked to enter their name their user name is entered as a > default into the text box. > You can use Application.User . Bye > Grahame > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon May 31 12:25:24 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 May 2004 12:25:24 +0200 Subject: [Gambas-user] How to access SubItems in a Columnview In-Reply-To: <40BAF482.7050100@...451...> References: <40BAF482.7050100@...451...> Message-ID: <200405311225.24858.gambas@...1...> On Monday 31 May 2004 11:01, VBTricks.de.vu Webmaster wrote: > I added a columnview to my form with 4 columns, now I want to access the > third subitem (this word is from VB's listview) of the second item for > > example: > | Column 1 | Column 2| Column 3| Column 4 | > |-----------------------------------------| > | Item 1 | | | | > | Item 2 | | * HERE *| | > > Dim sCurItem As String > sCurItem = "item2" > ColumnView1.Add(sCurItem, "Item 2") > > now how to write the third subitem of this item? > > Stefan ColumnView1[sCurItem][x] = "Text" where x is the column number, starting with zero. Regards, -- Benoit Minisini mailto:gambas at ...1... From grahame at ...457... Mon May 31 13:48:50 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 12:48:50 +0100 Subject: [Gambas-user] Creating a directory Message-ID: <200405311248.50222.grahame@...457...> Currently I have a section of code something like this dim path as string path = "/home/" & application.user & "/.gbdir" if exist(path) then ' do stuff else mkdir path endif So basically is the directory there, if not make it. However all I'm getting is a file/directory doesn't exist error message popping up. Well duh of course it doesn't that's why I'm trying to create it :/ Any ideas? Grahame From gambas at ...1... Mon May 31 13:56:26 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 May 2004 13:56:26 +0200 Subject: [Gambas-user] Creating a directory In-Reply-To: <200405311248.50222.grahame@...457...> References: <200405311248.50222.grahame@...457...> Message-ID: <200405311356.26089.gambas@...1...> On Monday 31 May 2004 13:48, Grahame White wrote: > Currently I have a section of code something like this > > dim path as string > > path = "/home/" & application.user & "/.gbdir" > > if exist(path) then > ' do stuff > else > mkdir path > endif > > > So basically is the directory there, if not make it. > > However all I'm getting is a file/directory doesn't exist error message > popping up. Well duh of course it doesn't that's why I'm trying to create > it :/ > > Any ideas? > > Grahame > You must be more precise if you want any help. Which error number did you get ? Which line raises the error ? Which code did you write in "'do stuff" ? What is the value of Application.User ? And so on... -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Mon May 31 14:25:13 2004 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 31 May 2004 08:25:13 -0400 Subject: [Gambas-devel] [Gambas-user] Properties window vanishes In-Reply-To: <200405311244.13460.grahame@...457...> References: <200405311244.13460.grahame@...457...> Message-ID: <200405310825.13613.sourceforge-raindog2@...94...> On Monday 31 May 2004 07:44, Grahame White wrote: > I'm getting a problem with gambas where after I run my program > the properties window vanishes and all attempts, short of > exiting gambas, fail to bring it back. > I don't know if anyone else has noticed this behaviour. I haven't been able to duplicate this. Feel like posting the offending project? Rob From grahame at ...457... Mon May 31 14:43:09 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 13:43:09 +0100 Subject: [Gambas-user] Creating a directory In-Reply-To: <200405311356.26089.gambas@...1...> References: <200405311248.50222.grahame@...457...> <200405311356.26089.gambas@...1...> Message-ID: <200405311343.09344.grahame@...457...> On Monday 31 May 2004 12:56, Benoit Minisini wrote: > On Monday 31 May 2004 13:48, Grahame White wrote: > > Currently I have a section of code something like this > > > > dim path as string > > > > path = "/home/" & application.user & "/.gbdir" > > > > if exist(path) then > > ' do stuff > > else > > mkdir path > > endif > > > > > > So basically is the directory there, if not make it. > > > > However all I'm getting is a file/directory doesn't exist error > > message popping up. Well duh of course it doesn't that's why I'm > > trying to create it :/ > > > > Any ideas? > > > > Grahame > > You must be more precise if you want any help. > > Which error number did you get? There is no error number, just "file or directory does not exist" > Which line raises the error? the "mkdir path" line raises the error (found be using the dubugger to run lin by line) > Which code did you write in "'do stuff"? Doesn't matter as that section is not entered. It's not entered because the directory be tested for, /home/grahame/.gbdir, doesn't exist. I have confirmed this by tracing the path of execution with the gambas dubugger. > What is the value of Application.User? grahame print path shows /home/grahame/.gbdir > And so on... Grahame From grahame at ...457... Mon May 31 14:48:26 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 13:48:26 +0100 Subject: [Gambas-devel] [Gambas-user] Properties window vanishes In-Reply-To: <200405310825.13613.sourceforge-raindog2@...94...> References: <200405311244.13460.grahame@...457...> <200405310825.13613.sourceforge-raindog2@...94...> Message-ID: <200405311348.26268.grahame@...457...> On Monday 31 May 2004 13:25, Rob wrote: > On Monday 31 May 2004 07:44, Grahame White wrote: > > I'm getting a problem with gambas where after I run my program > > the properties window vanishes and all attempts, short of > > exiting gambas, fail to bring it back. > > I don't know if anyone else has noticed this behaviour. > > I haven't been able to duplicate this. Feel like posting the > offending project? > > Rob This is one project that does this. It's not only one I've had this problem with though. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.v0.5.tar.gz Type: application/x-tgz Size: 9714 bytes Desc: not available URL: From vbtricks at ...451... Mon May 31 16:03:17 2004 From: vbtricks at ...451... (VBTricks.de.vu Webmaster) Date: Mon, 31 May 2004 16:03:17 +0200 Subject: [Gambas-user] Replacement for DateAdd Message-ID: <40BB3B25.1050608@...451...> Is there a replacement for DateAdd in Gambas? Stefan ___________________________________________________________________________________ Sagen Sie nicht, wir haetten Sie nicht gewarnt! http://my-mail.ch/?redirect=9901 Tigra TwinTop Game! Gewinnen Sie eine Staedtereise! http://my-mail.ch/?redirect=1745 From grahame at ...457... Mon May 31 16:07:39 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 15:07:39 +0100 Subject: [Gambas-user] Creating a directory In-Reply-To: <200405311248.50222.grahame@...457...> References: <200405311248.50222.grahame@...457...> Message-ID: <200405311507.39164.grahame@...457...> On Monday 31 May 2004 12:48, Grahame White wrote: > Currently I have a section of code something like this > > dim path as string > > path = "/home/" & application.user & "/.gbdir" > > if exist(path) then > ' do stuff > else > mkdir path > endif > > > So basically is the directory there, if not make it. > > However all I'm getting is a file/directory doesn't exist error message > popping up. Well duh of course it doesn't that's why I'm trying to > create it :/ > > Any ideas? > > Grahame Nevermind, me making typos again. *sigh* "/home/" & application.user & "./gbdir" instead of "/home/" & application.user & "/.gbdir" Grahame From gambas at ...1... Mon May 31 16:34:37 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 May 2004 16:34:37 +0200 Subject: [Gambas-user] Replacement for DateAdd In-Reply-To: <40BB3B25.1050608@...451...> References: <40BB3B25.1050608@...451...> Message-ID: <200405311634.37743.gambas@...1...> On Monday 31 May 2004 16:03, VBTricks.de.vu Webmaster wrote: > Is there a replacement for DateAdd in Gambas? > > Stefan No! I must admit that I never used this function in VB. I looked its syntax on internet, but I didn't understand all its syntax. What does exactly DateAdd("Y", 1, Now) for example ? If somebody could explain me each part of the syntax of this function, I may implement it in a future release. Regards, -- Benoit Minisini mailto:gambas at ...1... From bundeshund at ...467... Mon May 31 16:44:11 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Mon, 31 May 2004 16:44:11 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405300012.02811.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405300005.16328.bundeshund@...467...> <200405300012.02811.gambas@...1...> Message-ID: <200405311644.11600.bundeshund@...467...> Dear Benoit, Am Sonntag, 30. Mai 2004 00:12 schrieb Benoit Minisini: > > Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini >... > Use the "make source archive" entry in the IDE menu, and send me the tar.gz > file to my e-mail in the signature. Don't forget to tell me where to click > to get the crash. > Did You get my mail? Is it useful for You? If not, i'll write a smaller sample. Please let me know. > Regards, HM From grahame at ...457... Mon May 31 16:50:48 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 15:50:48 +0100 Subject: [Gambas-user] writting an array to a file Message-ID: <200405311550.48086.grahame@...457...> Looking through the helpfiles I came across : Write SUB Write ( File AS File [ , Start AS Integer, Length AS Integer ] ) Write array contents to a file. Start specifies where the first element to write. By default, data are written from the first element of the array. Length is the number of elements that will be written to the file. By default, data are written until the end of the array is reached. But how is it used? The only other reference to write I can find that looks even remotely useful is for WRITE. The problem is that WRITE seems to be for writing individual variables to the output stream :/ I tried this : OPEN path FOR WRITE CREATE AS #Scoretable WRITE #Scoretable, Global.highscoreboard CLOSE #Scoretable but all I got was "Type mismatch: wanted Standard type, got Object[] instead" Grahame If you want more info on Global.highscoreboard then check one of my earlier emails where I attached the project I'm working on From gambas at ...1... Mon May 31 17:10:11 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 May 2004 17:10:11 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405311644.11600.bundeshund@...467...> References: <200405261951.26386.grahame@...457...> <200405300012.02811.gambas@...1...> <200405311644.11600.bundeshund@...467...> Message-ID: <200405311710.11711.gambas@...1...> On Monday 31 May 2004 16:44, Hans-Martin Bundeshund wrote: > Dear Benoit, > > Am Sonntag, 30. Mai 2004 00:12 schrieb Benoit Minisini: > > > Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini > > > >... > > Use the "make source archive" entry in the IDE menu, and send me the > > tar.gz file to my e-mail in the signature. Don't forget to tell me where > > to click to get the crash. > > Did You get my mail? Is it useful for You? If not, i'll write a smaller > sample. Please let me know. > > > Regards, > > HM > > Yes. I just didn't have the time to look at it... -- Benoit Minisini mailto:gambas at ...1... From bundeshund at ...467... Mon May 31 17:28:33 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Mon, 31 May 2004 17:28:33 +0200 Subject: [Gambas-user] ComboBox.Clean basic question In-Reply-To: <200405311710.11711.gambas@...1...> References: <200405261951.26386.grahame@...457...> <200405311644.11600.bundeshund@...467...> <200405311710.11711.gambas@...1...> Message-ID: <200405311728.33152.bundeshund@...467...> Am Montag, 31. Mai 2004 17:10 schrieb Benoit Minisini: > On Monday 31 May 2004 16:44, Hans-Martin Bundeshund wrote: > > Dear Benoit, > > > > Am Sonntag, 30. Mai 2004 00:12 schrieb Benoit Minisini: > > > > Am Samstag, 29. Mai 2004 23:49 schrieb Benoit Minisini > > > > > >... > > > Use the "make source archive" entry in the IDE menu, and send me the > > > tar.gz file to my e-mail in the signature. Don't forget to tell me > > > where to click to get the crash. > > > > Did You get my mail? Is it useful for You? If not, i'll write a smaller > > sample. Please let me know. > > > > > Regards, > > > > HM > > Yes. I just didn't have the time to look at it... No problem! You work is worth a gift. A good bottle wine would be the best. But wine from germany to france? Hm... You have much better wines as we have. Do You like beer? German Bier? If so, I'll spend a collection to You! Just send me a adress to send to... Best regards, HM From rh549 at ...469... Mon May 31 18:16:11 2004 From: rh549 at ...469... (Ron) Date: Mon, 31 May 2004 12:16:11 -0400 Subject: [Gambas-user] need some help Message-ID: <001301c4472a$978c4f50$0100a8c0@...470...> ok I have gambas installed on Suse 8.2 but when I run the program I get an error stating unable to preload lib's . Anyone have this and what did you do to fix it -------------- next part -------------- An HTML attachment was scrubbed... URL: From grahame at ...457... Mon May 31 19:04:21 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 18:04:21 +0100 Subject: [Gambas-user] solitaire 0.9 Message-ID: <200405311804.21727.grahame@...457...> And another update, should be the last for a while unless any serious bugs come to light. new: Highscore tables added. They save to ~/.gbsolitaire/highscore few minor bug fixes a minor bit of code cleanup Any further releases will most likely only be code clean ups, bug fixes and maybe some additional board layouts Thanks for all the help :) Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.v0.9.tar.gz Type: application/x-tgz Size: 10782 bytes Desc: not available URL: From bundeshund at ...467... Mon May 31 19:10:39 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Mon, 31 May 2004 19:10:39 +0200 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405311804.21727.grahame@...457...> References: <200405311804.21727.grahame@...457...> Message-ID: <200405311910.39339.bundeshund@...467...> Am Montag, 31. Mai 2004 19:04 schrieb Grahame White: > And another update, should be the last for a while unless any serious bugs > come to light. > > new: > Highscore tables added. They save to ~/.gbsolitaire/highscore > few minor bug fixes > a minor bit of code cleanup > > > Any further releases will most likely only be code clean ups, bug fixes and > maybe some additional board layouts > > Thanks for all the help :) > > Grahame Hi Grahame, I 'installed' solitaire 0.9 and tried to start it using the gambas-ide (F5). One error comes up by the first start, because there is no highscore-file existing for read. after the second start it runs. HTH HM From grahame at ...457... Mon May 31 19:59:15 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 18:59:15 +0100 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405311910.39339.bundeshund@...467...> References: <200405311804.21727.grahame@...457...> <200405311910.39339.bundeshund@...467...> Message-ID: <200405311859.15714.grahame@...457...> On Monday 31 May 2004 18:10, Hans-Martin Bundeshund wrote: > Am Montag, 31. Mai 2004 19:04 schrieb Grahame White: > > And another update, should be the last for a while unless any serious > > bugs come to light. > > > > new: > > Highscore tables added. They save to ~/.gbsolitaire/highscore > > few minor bug fixes > > a minor bit of code cleanup > > > > > > Any further releases will most likely only be code clean ups, bug > > fixes and maybe some additional board layouts > > > > Thanks for all the help :) > > > > Grahame > > Hi Grahame, > > I 'installed' solitaire 0.9 and tried to start it using the gambas-ide > (F5). One error comes up by the first start, because there is no > highscore-file existing for read. after the second start it runs. > > HTH > HM Thanks for that, I forgot to update one of the path references. Fixed in this version. Grahame -------------- next part -------------- A non-text attachment was scrubbed... Name: solitaire.v0.9.2.tar.gz Type: application/x-tgz Size: 10779 bytes Desc: not available URL: From grahame at ...457... Mon May 31 20:35:24 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 19:35:24 +0100 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405311859.15714.grahame@...457...> References: <200405311804.21727.grahame@...457...> <200405311910.39339.bundeshund@...467...> <200405311859.15714.grahame@...457...> Message-ID: <200405311935.24871.grahame@...457...> On Monday 31 May 2004 18:59, Grahame White wrote: > On Monday 31 May 2004 18:10, Hans-Martin Bundeshund wrote: > > Am Montag, 31. Mai 2004 19:04 schrieb Grahame White: > > > And another update, should be the last for a while unless any > > > serious bugs come to light. > > > > > > new: > > > Highscore tables added. They save to ~/.gbsolitaire/highscore > > > few minor bug fixes > > > a minor bit of code cleanup > > > > > > > > > Any further releases will most likely only be code clean ups, bug > > > fixes and maybe some additional board layouts > > > > > > Thanks for all the help :) > > > > > > Grahame > > > > Hi Grahame, > > > > I 'installed' solitaire 0.9 and tried to start it using the gambas-ide > > (F5). One error comes up by the first start, because there is no > > highscore-file existing for read. after the second start it runs. > > > > HTH > > HM > > Thanks for that, I forgot to update one of the path references. Fixed in > this version. Bah, I just spotted another bug : In FNewhighscore lines 58 and 59 are : global.highscoreboard[global.selectedlayout].highscore[i].score = working[i].score global.highscoreboard[global.selectedlayout].highscore[i].name = working[i].name they should be : global.highscoreboard[global.selectedlayout].highscore[i].score = working[i - 1].score global.highscoreboard[global.selectedlayout].highscore[i].name = working[i - 1].name Grahame From bundeshund at ...467... Mon May 31 21:54:32 2004 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Mon, 31 May 2004 21:54:32 +0200 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405311935.24871.grahame@...457...> References: <200405311804.21727.grahame@...457...> <200405311859.15714.grahame@...457...> <200405311935.24871.grahame@...457...> Message-ID: <200405312154.32574.bundeshund@...467...> Am Montag, 31. Mai 2004 20:35 schrieb Grahame White: > Bah, I just spotted another bug : > > In FNewhighscore lines 58 and 59 are : > > > global.highscoreboard[global.selectedlayout].highscore[i].score = > working[i].score > global.highscoreboard[global.selectedlayout].highscore[i].name = > working[i].name > > > they should be : > > > global.highscoreboard[global.selectedlayout].highscore[i].score = > working[i - 1].score > global.highscoreboard[global.selectedlayout].highscore[i].name = working[i > - 1].name > I started solitaire a few minutes again. Sorry, but I am too dump to play. I don't know how to. I see a playfield with all fields filled with a ball, only one field is empty. I can click on a ball, the ball is selected and red colored. And now? I guess I must 'move' one ball near the empty field, or what? > > Grahame HM From abidoo.too at ...11... Mon May 31 22:03:36 2004 From: abidoo.too at ...11... (Fabien Bodard) Date: Mon, 31 May 2004 22:03:36 +0200 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405312154.32574.bundeshund@...467...> References: <200405311804.21727.grahame@...457...> <200405311935.24871.grahame@...457...> <200405312154.32574.bundeshund@...467...> Message-ID: <200405312203.36692.abidoo.too@...11...> Le lundi 31 Mai 2004 21:54, Hans-Martin Bundeshund a ?crit : > Am Montag, 31. Mai 2004 20:35 schrieb Grahame White: > > Bah, I just spotted another bug : > > > > In FNewhighscore lines 58 and 59 are : > > > > > > global.highscoreboard[global.selectedlayout].highscore[i].score = > > working[i].score > > global.highscoreboard[global.selectedlayout].highscore[i].name = > > working[i].name > > > > > > they should be : > > > > > > global.highscoreboard[global.selectedlayout].highscore[i].score = > > working[i - 1].score > > global.highscoreboard[global.selectedlayout].highscore[i].name = > > working[i - 1].name > > I started solitaire a few minutes again. Sorry, but I am too dump to play. > I don't know how to. I see a playfield with all fields filled with a ball, > only one field is empty. I can click on a ball, the ball is selected and > red colored. And now? I guess I must 'move' one ball near the empty field, > or what? > > > Grahame > > HM > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Grahame ! You must to add the help !!! I don't know how to play at your game !! Fabien From grahame at ...457... Mon May 31 22:37:12 2004 From: grahame at ...457... (Grahame White) Date: Mon, 31 May 2004 21:37:12 +0100 Subject: [Gambas-user] solitaire 0.9 In-Reply-To: <200405312203.36692.abidoo.too@...11...> References: <200405311804.21727.grahame@...457...> <200405312154.32574.bundeshund@...467...> <200405312203.36692.abidoo.too@...11...> Message-ID: <200405312137.12189.grahame@...457...> > > I started solitaire a few minutes again. Sorry, but I am too dump to > > play. I don't know how to. I see a playfield with all fields filled > > with a ball, only one field is empty. I can click on a ball, the ball > > is selected and red colored. And now? I guess I must 'move' one ball > > near the empty field, or what? > > > > > Grahame > > > > HM > Grahame ! You must to add the help !!! I don't know how to play at > your game !! > > Fabien > OK guys I'll add in the help for the 1.0 version. Until then here's how to play : A valid move is made by jumping one ball over a ball in an ajoining square. The ball jumped is then removed from play. Moves can only be made vertically and horizonally and not diagonally. for example if we use O as a ball and _ as an empty square the basic board layout is (best viewed with a fixed-width font) OOO OOO OOOOOOO OOO_OOO OOOOOOO OOO OOO A valid opening move is OOO O_O OOO_OOO OOOOOOO OOOOOOO OOO OOO An other valid move is OOO O_O OOOO__O OOOOOOO OOOOOOO OOO OOO As you can see each more removes one ball from the board, the object of the game is to remove all but the last ball. To make things a little more difficult you have to work it out so that the last ball lands on the cell with the sunken border. I know English aren't either of your first languages, and I'm not a very good explainer anyway, so I've included some links to various sites on the game that may help. http://www.mathematische-basteleien.de/solitaire.htm http://euler.free.fr/PegSolitaire.htm http://www.ionet.net/~bkeltch/pegs.html I hope that helps until I get around to writting the help. Grahame From mardus at ...298... Mon May 31 22:45:46 2004 From: mardus at ...298... (Marcelo Duschkin) Date: Mon, 31 May 2004 17:45:46 -0300 Subject: [Gambas-user] Re: Using serial component for plc comunications In-Reply-To: <4074FF30.20101@...324...> References: <4074FF30.20101@...324...> Message-ID: <200405311745.46951.mardus@...298...> El Jue 08 Abr 2004 04:28, -=FoX=- escribi?: |> Hi :) |> I have a problem with communications between pc and plc using the serial |> component[...] |> The problem is the non printable character at the begin of the string as |> you can see in the attachment. (the second test is between two pc with |> gambas ;) ) I have same problem, and can't find an answer in the list messages. What can I do? -- Para el cierre: --- El Ping?inor?culo sol?a citar: ?Windows poco ?til? ?Y con que te crees que juega ahora el perro? - - - Marcelo Duschkin - Buenos Aires - Argentina mardus at ...298... www.websdelsur.com.ar www.lahueya.com.ar From daniel.campos at ...338... Mon May 31 23:09:43 2004 From: daniel.campos at ...338... (Daniel) Date: Mon, 31 May 2004 23:09:43 +0200 Subject: [Gambas-user] Re: Using serial component for plc comunications In-Reply-To: <200405311745.46951.mardus@...298...> References: <4074FF30.20101@...324...> <200405311745.46951.mardus@...298...> Message-ID: <1086037782.3343.1.camel@...40...> El lun, 31-05-2004 a las 22:45, Marcelo Duschkin escribi?: > El Jue 08 Abr 2004 04:28, -=FoX=- escribi?: > |> Hi :) > |> I have a problem with communications between pc and plc using the serial > |> component[...] > |> The problem is the non printable character at the begin of the string as > |> you can see in the attachment. (the second test is between two pc with > |> gambas ;) ) > > I have same problem, and can't find an answer in the list messages. > What can I do? I'll try to look what's happening, can you send me some samples? > > -- Para el cierre: --- > El Ping?inor?culo sol?a citar: > ?Windows poco ?til? ?Y con que te crees que juega ahora el perro? > - - - > Marcelo Duschkin - Buenos Aires - Argentina > mardus at ...298... > www.websdelsur.com.ar > www.lahueya.com.ar > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id?66&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mardus at ...298... Mon May 31 23:59:28 2004 From: mardus at ...298... (Marcelo Duschkin) Date: Mon, 31 May 2004 18:59:28 -0300 Subject: [Gambas-user] Re: Using serial component for plc comunications In-Reply-To: <1086037782.3343.1.camel@...40...> References: <4074FF30.20101@...324...> <200405311745.46951.mardus@...298...> <1086037782.3343.1.camel@...40...> Message-ID: <200405311859.28425.mardus@...298...> El Lun 31 May 2004 18:09, Daniel escribi?: |> I'll try to look what's happening, can you send me some samples? Thank you for your fast response. I need to connect a pc with a data logger, but for test purpouses, I do it with two pc's, both running the "SerialPort" example in Gambas. When I type "asdf" in the TxtSend text box and hit "CR", in the TextArea1 of the second PC appears "?asdf" where "?" is a little square. The hex code of this character is 06 [ACK] This char is always in front of wathever string I send. I've tried in the 2nd pc Hyperterminal in W98 (sorry for that ;) and that confirmed the char is added during transmission. -- Para el cierre: --- El Ping?inor?culo sol?a citar: ?Pirater?a yooooo??? Lo que hago es transferencia de tecnolog?a. - - - Marcelo Duschkin - Buenos Aires - Argentina mardus at ...298... www.websdelsur.com.ar www.lahueya.com.ar