From gambasfr at ...11... Thu Dec 1 01:05:06 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 1 Dec 2005 01:05:06 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <1133385994.2927.7.camel@...37...> References: <7259b5ae0511270809x44799c09u@...627...> <200511301329.38933.gambasfr@...11...> <1133385994.2927.7.camel@...37...> Message-ID: <200512010105.06137.gambasfr@...11...> Le Mercredi 30 Novembre 2005 22:26, Fabricio Santos a ?crit?: > On Wed, 2005-11-30 at 13:29 +0100, Fabien Bodard wrote: > > The sole thing is that the gambas ide run with the gb.qt and gb.qt.kde > > components > > > > and the ide is in the gambas-1.9.20 package... > > > > but i can undertstand your ideas if you plan to use gambas without the > > ide... > > > > Fabien > > Viva Fabien, > > I am not really sure about that. The gambas-1.9.20 is just a metapackage > to install the whole thing. The IDE is in gambas-ide 1.9.20-2 and I have > the Gambas IDE working. See attached image. > > Or am I totally missing the point? :-) so you have qt and kdebase installed ! You're right for the meta package ! > -fs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronald_gambas at ...43... Thu Dec 1 03:49:08 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Wed, 30 Nov 2005 18:49:08 -0800 (PST) Subject: [Gambas-user] persistent environment variables In-Reply-To: <20051130081857.54722.qmail@...1034...> Message-ID: <20051201024908.70379.qmail@...1254...> edit /etc/ld.conf i think insert the path there..and do ldconfig Ramon Orticio wrote: dear friends, i'm a newbie in linux and gambas. i installed gambas 1.0.6 in redhat 9 and run gambas successfully. but i need to type export LD_LIBRARY_PATH=/path/to/qt/lib everytime i run gambas otherwise i get rellocation error. how could i set the environment variables once and for all in such a way that i won't be typing the export statements and run gambas without it. thank you for any info. rporticio __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Thu Dec 1 11:33:42 2005 From: johnhedge at ...626... (john hedge) Date: Thu, 1 Dec 2005 21:33:42 +1100 Subject: [Gambas-user] menu editor 'picture' Message-ID: <6e3a096b0512010233m5f4b3385v14234d42de25d0f0@...627...> Hi, I've spent a very good afternoon building my menu bar using the menu editor. Not hard. Very similar to VB I seem to recall. I've tried to put an icon on the bar but without success. I've chosen the icons (.png) and created a directory under data and put them there. I've pointed the menu editor at them but no show. I'm using Gambas 1.9.20 Is there a secret here? Do I need to do some coding? Do the icons need to be a certain size? (48x48 at present) TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: From rk at ...1255... Thu Dec 1 15:45:06 2005 From: rk at ...1255... (Ralf Kirmis) Date: Thu, 1 Dec 2005 15:45:06 +0100 Subject: [Gambas-user] external Library Message-ID: Hello, is it possible to use an external link library like http://serdisplib.sourceforge.net (for controlling an lcd display), and call functions from that library ? regards, Mit freundlichen Gr??en Ralf Kirmis -------------- next part -------------- An HTML attachment was scrubbed... URL: From felixcafarelli at ...1176... Thu Dec 1 17:53:51 2005 From: felixcafarelli at ...1176... (Felice Cafarelli) Date: Thu, 1 Dec 2005 17:53:51 +0100 Subject: [Gambas-user] Automatic selection in a listbox Message-ID: <200512011753.52269.felixcafarelli@...1176...> Hi all, I had a problem with a listbox in gambas1.0.13: I populate dinamically (values from db) a listbox, and I want to automatically select the first value in the list after the population. I tried with the property INDEX, but I got only '-1' indexes, so i cannot distinguish the first item in the list. What can i do? I post here the code: FOR i = 1 TO rNumber lstUsers.Add(rData!user & "(" & lstUsers.Index & ")") IF lstUsers.Index = 0 THEN lstUsers.SetFocus lstUsers.Current.Selected ENDIF rData.MoveNext NEXT Result is this list Bob(-1) Simon(-1) Teddy(-1) So I want Bob to be automatically selected... any idea? Cheers Felix From felice.cafarelli at ...324... Thu Dec 1 18:55:52 2005 From: felice.cafarelli at ...324... (Felice Cafarelli) Date: Thu, 1 Dec 2005 18:55:52 +0100 Subject: [Gambas-user] Automatic selection in a listbox Message-ID: <200512011855.52740.felice.cafarelli@...324...> Subject: Automatic selection in a listbox Date: 17:53, gioved? 1 dicembre 2005 From: Felice Cafarelli To: gambas-user at lists.sourceforge.net Hi all, I had a problem with a listbox in gambas1.0.13: I populate dinamically (values from db) a listbox, and I want to automatically select the first value in the list after the population. I tried with the property INDEX, but I got only '-1' indexes, so i cannot distinguish the first item in the list. What can i do? I post here the code: FOR i = 1 TO rNumber lstUsers.Add(rData!user & "(" & lstUsers.Index & ")") IF lstUsers.Index = 0 THEN lstUsers.SetFocus lstUsers.Current.Selected ENDIF rData.MoveNext NEXT Result is this list Bob(-1) Simon(-1) Teddy(-1) So I want Bob to be automatically selected... any idea? Cheers Felix From johnhedge at ...626... Thu Dec 1 22:06:38 2005 From: johnhedge at ...626... (john hedge) Date: Fri, 2 Dec 2005 08:06:38 +1100 Subject: [Gambas-user] menu editor 'picture' Message-ID: <6e3a096b0512011306i69983bb2gb7dbc95f30f5bcf5@...627...> Hi, In Menu editor there's an ability to choose a picture. Is this to go on the menu bar? I've chosen the icons (.png) and created a directory under data and put them there. I've pointed the menu editor at them which then displays the picture in the editor but when I run the application they don't appear. I'm using Gambas 1.9.20 Is there a secret here? Do I need to do some coding? Do the icons need to be a certain size? (48x48 at present) TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gambas-user at lists.sourceforge.net Thu Dec 1 23:45:17 2005 From: Gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Thu, 01 Dec 2005 23:45:17 +0100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> Message-ID: <438F7CFD.6060302@lists.sourceforge.net> john hedge schrieb: > Hi, > > I've attached two files. One showing a screenshot of the error message > and the other a listing of my code. > > I'm very new to all this and I'm copying a code tutorial in Linux > Format by Dr Mark Bain. > > If I need to give more detail for you to assist me, just ask. > > Any help would be appreciated. > > TIA. > > John > Hi John The error-message says that at position 40 from the sql is a error. This is by the "=" & resManager!ID What is the value for resManager!ID at this moment? Which type has the field manager_id? (numeric or string) I suggest to copy the sql-content at this point and try it with a sql-tool. And add a space between office and where, should work without but.... Werner From gambas at ...1... Thu Dec 1 23:59:44 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Dec 2005 23:59:44 +0100 Subject: [Gambas-user] menu editor 'picture' In-Reply-To: <6e3a096b0512010233m5f4b3385v14234d42de25d0f0@...627...> References: <6e3a096b0512010233m5f4b3385v14234d42de25d0f0@...627...> Message-ID: <200512012359.44982.gambas@...1...> On Thursday 01 December 2005 11:33, john hedge wrote: > Hi, > > I've spent a very good afternoon building my menu bar using the menu > editor. Not hard. Very similar to VB I seem to recall. > > I've tried to put an icon on the bar but without success. I've chosen the > icons (.png) and created a directory under data and put them there. I've > pointed the menu editor at them but no show. > > I'm using Gambas 1.9.20 > > Is there a secret here? Do I need to do some coding? Do the icons need to > be a certain size? (48x48 at present) > > TIA > > John ?? It seems to work well, as the IDE is itself written in Gambas, and you can see menus with icons in it... Be more precise about what you did, or send a project... Regards, -- Benoit Minisini From gambas at ...1... Fri Dec 2 00:00:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 00:00:12 +0100 Subject: [Gambas-user] menu editor 'picture' In-Reply-To: <6e3a096b0512011306i69983bb2gb7dbc95f30f5bcf5@...627...> References: <6e3a096b0512011306i69983bb2gb7dbc95f30f5bcf5@...627...> Message-ID: <200512020000.12676.gambas@...1...> On Thursday 01 December 2005 22:06, john hedge wrote: > Hi, > > In Menu editor there's an ability to choose a picture. Is this to go on the > menu bar? > > I've chosen the icons (.png) and created a directory under data and put > them there. I've pointed the menu editor at them which then displays the > picture in the editor but when I run the application they don't appear. > > I'm using Gambas 1.9.20 > > Is there a secret here? Do I need to do some coding? Do the icons need to > be a certain size? (48x48 at present) > > TIA > > John But... I already read that!!! -- Benoit Minisini From gambas at ...1... Fri Dec 2 00:02:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 00:02:27 +0100 Subject: [Gambas-user] Automatic selection in a listbox In-Reply-To: <200512011753.52269.felixcafarelli@...1176...> References: <200512011753.52269.felixcafarelli@...1176...> Message-ID: <200512020002.27804.gambas@...1...> On Thursday 01 December 2005 17:53, Felice Cafarelli wrote: > Hi all, I had a problem with a listbox in gambas1.0.13: > I populate dinamically (values from db) a listbox, and I want to > automatically select the first value in the list after the population. I > tried with the property INDEX, but I got only '-1' indexes, so i cannot > distinguish the first item in the list. What can i do? > I post here the code: > > FOR i = 1 TO rNumber > lstUsers.Add(rData!user & "(" & lstUsers.Index & ")") > IF lstUsers.Index = 0 THEN > lstUsers.SetFocus > lstUsers.Current.Selected > ENDIF > rData.MoveNext > NEXT > > Result is this list > > Bob(-1) > Simon(-1) > Teddy(-1) > > So I want Bob to be automatically selected... any idea? > Cheers > Felix > If you want to set the current item (which is selected if the ListBox is in single selection mode), you must do MyListBox.Index = n, where n is the index of the item (between 0 and MyListBox.Count - 1) If the ListBox is in multiple selection mode, then you can do MyListBox[n].Selected = TRUE / FALSE, to set the selected state of the n-th item. Regards, -- Benoit Minisini From gambas at ...1... Fri Dec 2 00:03:21 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 00:03:21 +0100 Subject: [Gambas-user] Automatic selection in a listbox In-Reply-To: <200512011855.52740.felice.cafarelli@...324...> References: <200512011855.52740.felice.cafarelli@...324...> Message-ID: <200512020003.21530.gambas@...1...> On Thursday 01 December 2005 18:55, Felice Cafarelli wrote: > Subject: Automatic selection in a listbox > Date: 17:53, gioved? 1 dicembre 2005 > From: Felice Cafarelli > To: gambas-user at lists.sourceforge.net > > Hi all, I had a problem with a listbox in gambas1.0.13: > I populate dinamically (values from db) a listbox, and I want to > automatically select the first value in the list after the population. I > tried with the property INDEX, but I got only '-1' indexes, so i cannot > distinguish the first item in the list. What can i do? > I post here the code: > > FOR i = 1 TO rNumber > lstUsers.Add(rData!user & "(" & lstUsers.Index & ")") > IF lstUsers.Index = 0 THEN > lstUsers.SetFocus > lstUsers.Current.Selected > ENDIF > rData.MoveNext > NEXT > > Result is this list > > Bob(-1) > Simon(-1) > Teddy(-1) > > So I want Bob to be automatically selected... any idea? > Cheers > Felix > > Do you have the same repeat symptom as John Hedge ? :-) -- Benoit Minisini From gambas at ...1229... Fri Dec 2 00:06:41 2005 From: gambas at ...1229... (Fabricio Santos) Date: Fri, 02 Dec 2005 00:06:41 +0100 Subject: [Gambas-user] Automatic selection in a listbox In-Reply-To: <200512011753.52269.felixcafarelli@...1176...> References: <200512011753.52269.felixcafarelli@...1176...> Message-ID: <1133478401.21167.14.camel@...37...> On Thu, 2005-12-01 at 17:53 +0100, Felice Cafarelli wrote: > FOR i = 1 TO rNumber > lstUsers.Add(rData!user & "(" & lstUsers.Index & ")") > IF lstUsers.Index = 0 THEN > lstUsers.SetFocus > lstUsers.Current.Selected > ENDIF > rData.MoveNext > NEXT I am not really sure what you are trying to achieve with the above piece of code. But I would scrap the whole thing and do this: rData.MoveFirst FOR EACH rData lstUsers.Add(rData!user) NEXT lstUsers.Index = 0 I have not tested this but this did populate the list and showed the first item as selected: ListBox1.Add("Item 1") ListBox1.Add("Item 2") ListBox1.Add("Item 3") ListBox1.Index = 0 From gambas at ...1... Fri Dec 2 00:12:53 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 00:12:53 +0100 Subject: [Gambas-user] life of an object In-Reply-To: References: Message-ID: <200512020012.53448.gambas@...1...> On Wednesday 30 November 2005 22:44, Hugo wrote: > Hi, > when a form is closed , can I still get some atributes of it , or is it > garbage collected right after one closes it, trouble is I need to get some > data from a form I show to the user. > I do something like this: > sub getAnswerFromUser() > Dim frm as SomeForm > dim st as string > frm = NEW SomeForm > frm.title = 'Some Title' > frm.show() > st = frm.someAtt 'at this point a get Invalid Object runtime error > return st 'this should be the answer > end > is this code correct ? > > thanks for any help > Hugo This code is correct, but a form becomes invalid as soon as it is deleted. frm.Show() should show the form modeless, except if a modal window is already displayed. Then it is shown modal. So it may be destroyed when frm.Show() terminates. If you want to have public variables in the form to return some information, make them static. Static variables don't need any object to be valid. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Dec 2 00:31:22 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 1 Dec 2005 18:31:22 -0500 Subject: [Gambas-user] Re: [Gambas-devel] pipe sample In-Reply-To: References: Message-ID: <200512011831.25515.sourceforge-raindog2@...94...> On Thu December 1 2005 11:39, csorda at ...69... wrote: > My application will have to read data from the standard input > (pipe) and to visualize them on a form. I hope to have been Here you go.... In the future, this sort of question should go to the gambas-user mailing list. (A good rule of thumb is: if you're programming in Gambas, post to gambas-user, and if you're programming in C to enhance or fix Gambas, post to gambas-devel.) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: popstdin-0.0.4.tar.gz Type: application/x-tgz Size: 1014 bytes Desc: not available URL: From johnhedge at ...626... Fri Dec 2 04:22:51 2005 From: johnhedge at ...626... (john hedge) Date: Fri, 2 Dec 2005 14:22:51 +1100 Subject: [Gambas-user] menu editor 'picture' In-Reply-To: <200512020000.12676.gambas@...1...> References: <6e3a096b0512011306i69983bb2gb7dbc95f30f5bcf5@...627...> <200512020000.12676.gambas@...1...> Message-ID: <6e3a096b0512011922h71b4aeb4icc76587c31f68cdd@...627...> Benoit, Thanks for your response. I'm sorry it appeared as though I was sending you the same message as a reply. I sent it because I didn't think my first e-mail had got to the list. There was obviously a time overlap. You have also answered my question by pointing out that Gambas is written in Gambas. I was trying to put a picture on the top rung of the menu tree. It isn't meant to do this, as I realise now; it is meant for the 2nd tier or lower. My question should have been: How do you set up a toolbar? My apologies for the very basic questions. My only excuse is that I'm new to all this. Thanks. John On 12/2/05, Benoit Minisini wrote: > > On Thursday 01 December 2005 22:06, john hedge wrote: > > Hi, > > > > In Menu editor there's an ability to choose a picture. Is this to go on > the > > menu bar? > > > > I've chosen the icons (.png) and created a directory under data and put > > them there. I've pointed the menu editor at them which then displays the > > picture in the editor but when I run the application they don't appear. > > > > I'm using Gambas 1.9.20 > > > > Is there a secret here? Do I need to do some coding? Do the icons need > to > > be a certain size? (48x48 at present) > > > > TIA > > > > John > > But... I already read that!!! > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 rohnny at ...1248... Fri Dec 2 10:41:38 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 02 Dec 2005 10:41:38 +0100 Subject: [Gambas-user] Re: pipe sample Message-ID: <439016D2.40508@...1248...> I have put an example in the codesnip section at http://forum.stormweb.no hope it can be of any help. Regards R. Stormo From htakada at ...626... Fri Dec 2 19:29:49 2005 From: htakada at ...626... (Hugo) Date: Fri, 2 Dec 2005 15:29:49 -0300 Subject: [Gambas-user] life of an object In-Reply-To: <200512020012.53448.gambas@...1...> References: <200512020012.53448.gambas@...1...> Message-ID: Thanks Benoit, I declared one static public variable in the form as you suggested but I'm still having the same problem, did I misunderstand you ? what am I doing wrong ? thanks again Hugo On 01/12/05, Benoit Minisini wrote: > > On Wednesday 30 November 2005 22:44, Hugo wrote: > > Hi, > > when a form is closed , can I still get some atributes of it , or is it > > garbage collected right after one closes it, trouble is I need to get > some > > data from a form I show to the user. > > I do something like this: > > sub getAnswerFromUser() > > Dim frm as SomeForm > > dim st as string > > frm = NEW SomeForm > > frm.title = 'Some Title' > > frm.show() > > st = frm.someAtt 'at this point a get Invalid Object runtime error > > return st 'this should be the answer > > end > > is this code correct ? > > > > thanks for any help > > Hugo > > This code is correct, but a form becomes invalid as soon as it is deleted. > > frm.Show() should show the form modeless, except if a modal window is > already > displayed. Then it is shown modal. So it may be destroyed when frm.Show() > terminates. > > If you want to have public variables in the form to return some > information, > make them static. Static variables don't need any object to be valid. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambas at ...1... Fri Dec 2 21:01:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 21:01:38 +0100 Subject: [Gambas-user] life of an object In-Reply-To: References: <200512020012.53448.gambas@...1...> Message-ID: <200512022101.38676.gambas@...1...> On Friday 02 December 2005 19:29, Hugo wrote: > Thanks Benoit, I declared one static public variable in the form as you > suggested but I'm still having the same problem, did I misunderstand you ? > what am I doing wrong ? > > thanks again > > Hugo > Look in the FNewIcon.class file of the IDE source code, you will see a dialog that returns information in static public variables. Regards, -- Benoit Minisini From dcamposf at ...626... Fri Dec 2 22:37:46 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 2 Dec 2005 21:37:46 +0000 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <200511291005.53255.faasse@...1252...> References: <20051129042206.D9B3612660@...773...> <20051129055438.31366.qmail@...1250...> <7259b5ae0511282219p1fe15709h@...627...> <200511291005.53255.faasse@...1252...> Message-ID: <7259b5ae0512021337j81f485bw@...627...> Hi: Could you send me your patch? I will add it! thanks, D. Campos 2005/11/29, p.r. faasse : > > When I tried to do UDP broadcasts (Gambas-1.0.13) I got a 'permission > denied'. > > I have solved by adding the SO_BROADCAST/setsockopt in the source of the > Gambas > network UDP component and re-compiling Gambas itself. Is there any way i > could make the > developers add this to the network component by default? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 a.ciric at ...1147... Fri Dec 2 22:42:29 2005 From: a.ciric at ...1147... (Alex Ciric) Date: Fri, 02 Dec 2005 22:42:29 +0100 Subject: [Gambas-user] Can I embed a form into another form? In-Reply-To: <438304BF.6080101@...679...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> Message-ID: <4390BFC5.1070506@...1147...> Hi together. I have different forms and i want to show them in a single "main"-form as the user selects them. Do you know how to do this? It would be nice, because otherwise the users have to deal with many different forms when they perform theirs tasks. TIA Alex From gambas at ...1... Fri Dec 2 22:47:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Dec 2005 22:47:39 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <7259b5ae0512021337j81f485bw@...627...> References: <20051129042206.D9B3612660@...773...> <200511291005.53255.faasse@...1252...> <7259b5ae0512021337j81f485bw@...627...> Message-ID: <200512022247.40249.gambas@...1...> On Friday 02 December 2005 22:37, Daniel Campos wrote: > Hi: > > Could you send me your patch? I will add it! > > thanks, > > D. Campos > Maybe you should better add option properties to the socket object (for example, in this case, Broadcast = TRUE / FALSE) Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Dec 2 23:13:10 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 2 Dec 2005 17:13:10 -0500 Subject: [Gambas-user] Can I embed a form into another form? In-Reply-To: <4390BFC5.1070506@...1147...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> <4390BFC5.1070506@...1147...> Message-ID: <200512021713.11763.sourceforge-raindog2@...94...> On Fri December 2 2005 16:42, Alex Ciric wrote: > I have different forms and i want to show them in a single > "main"-form as the user selects them. > Do you know how to do this? Sure. DIM MyEmbeddedForm AS Form MyEmbeddedForm = NEW SomeOtherFormInYourProject(ME) ' from here on you can just treat it like a control.... MyEmbeddedForm.Move(0,0,me.width,me.height) ' etc.... MyEmbeddedForm.Delete Give it a try.... I seem to remember there are issues as far as which form listens for the events generated by the embedded form, but I can't remember what they are. It's mentioned somewhere in the wiki, I think if you search for "listener" you'll find it. I have no idea what'll happen if your embedded form tries to access its Window object either. Rob From gambas at ...1229... Sat Dec 3 01:06:43 2005 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 03 Dec 2005 01:06:43 +0100 Subject: [Gambas-user] Cannot load class 'FMain': Unable to load class file Message-ID: <1133568403.8827.3.camel@...37...> Viva a todos, I have installed gambas 1.9.20 and when I try to start the Database example I get this error: Cannot load class 'FMain': Unable to load class file I Googled a bit around but could not find a smoking gun to this problem. Any hints on what is going on here? /fs From gambas at ...1229... Sat Dec 3 01:10:39 2005 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 03 Dec 2005 01:10:39 +0100 Subject: [Gambas-user] Cannot load class 'FMain': Unable to load class file In-Reply-To: <1133568403.8827.3.camel@...37...> References: <1133568403.8827.3.camel@...37...> Message-ID: <1133568639.9023.0.camel@...37...> Actually, most examples give me similar errors with just different class names. :-( /fs On Sat, 2005-12-03 at 01:06 +0100, Fabricio Santos wrote: > Viva a todos, > > I have installed gambas 1.9.20 and when I try to start the Database > example I get this error: > > Cannot load class 'FMain': Unable to load class file > > I Googled a bit around but could not find a smoking gun to this problem. > Any hints on what is going on here? > > /fs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From felice.cafarelli at ...324... Sat Dec 3 09:29:35 2005 From: felice.cafarelli at ...324... (Felice Cafarelli) Date: Sat, 3 Dec 2005 09:29:35 +0100 Subject: [Gambas-user] Idea - Builds & Package Creation Message-ID: <200512030929.35739.felice.cafarelli@...324...> Why not include in the build process and package creation an option to include the gb runtime library, so users does not have to download additional packages to run programs build with Gambas? Cheers Felix -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Solo su Occhialeria.it una vastissima scelta a prezzi insuperabili! * Per te le migliori marche e un incredibile assortimento. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=880&d=3-12 From gambas at ...1229... Sat Dec 3 13:13:11 2005 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 03 Dec 2005 13:13:11 +0100 Subject: [Gambas-user] Cannot load class 'FMain': Unable to load class file In-Reply-To: <1133568639.9023.0.camel@...37...> References: <1133568403.8827.3.camel@...37...> <1133568639.9023.0.camel@...37...> Message-ID: <1133611991.17844.2.camel@...37...> Sorry everyone... Beginner issue... As I installed Gambas with root the examples were all read only and this seemed to be causing the problem... :-( Copying the examples and changing the owner and group solved the problem. Thanks, -fs On Sat, 2005-12-03 at 01:10 +0100, Fabricio Santos wrote: > Actually, most examples give me similar errors with just different class > names. :-( > > /fs > > On Sat, 2005-12-03 at 01:06 +0100, Fabricio Santos wrote: > > Viva a todos, > > > > I have installed gambas 1.9.20 and when I try to start the Database > > example I get this error: > > > > Cannot load class 'FMain': Unable to load class file > > > > I Googled a bit around but could not find a smoking gun to this problem. > > Any hints on what is going on here? > > > > /fs > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bernieman at ...977... Sat Dec 3 13:42:30 2005 From: bernieman at ...977... (BernieMan) Date: Sat, 3 Dec 2005 13:42:30 +0100 Subject: [Gambas-user] ListView.add Message-ID: <20051203124230.GA12691@...1257...> Hello All, I have a few questions: I try to add an item with a button to a listview-element. It is working once. But when I tried it a second time ist says that the key already exists. So far so good ... - How can I find out the highest key-Value? - Or is there an easy way to add an item and to create an unused key ? thx in advance BernieMan From genone at ...89... Sat Dec 3 13:38:52 2005 From: genone at ...89... (Marius Mauch) Date: Sat, 03 Dec 2005 14:38:52 +0200 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <200512030929.35739.felice.cafarelli@...324...> References: <200512030929.35739.felice.cafarelli@...324...> Message-ID: <439191DC.6080902@...89...> Felice Cafarelli wrote: > Why not include in the build process and package creation an option to include > the gb runtime library, so users does not have to download additional > packages to run programs build with Gambas? Because it's a bad idea to repeat Windows mistakes. Linux systems have a proper package management system, so there is no need for stupid workarounds. Marius From gambas at ...1229... Sat Dec 3 16:29:06 2005 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 03 Dec 2005 16:29:06 +0100 Subject: [Gambas-user] Gambas example question Message-ID: <1133623747.17844.16.camel@...37...> Viva Andy, I was looking at this example in the Gambas help browser and I have a question about it: ================================== I suggest the following code. PRIVATE $hConn AS Connection PUBLIC SUB GoConnect() DIM sName AS String TRY $hConn.Close sName = "fgda" ... ================================== Is there a special reason for the variable name to include a $ sign? Or is it just part of Gambas to accept a $ sign on any variable name and you decided to use it there? I have browsed the docs extensively and couldn't find an answer to this question nor did I find general information on building identifier names, which characters are allowed and the sort. Although 12 years ago I wrote a compiler from scratch and am quite familiar with the theory of building compilers I am not in a good enough shape anymore to dive into the Gambas code and grammar to find all this out so any help will be welcome. Thanks, -fs From felice.cafarelli at ...324... Sat Dec 3 16:32:42 2005 From: felice.cafarelli at ...324... (Felice Cafarelli) Date: Sat, 3 Dec 2005 16:32:42 +0100 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <439191DC.6080902@...89...> References: <200512030929.35739.felice.cafarelli@...324...> <439191DC.6080902@...89...> Message-ID: <200512031632.42707.felice.cafarelli@...324...> Alle 13:38, sabato 3 dicembre 2005, Marius Mauch ha scritto: > Felice Cafarelli wrote: > > Why not include in the build process and package creation an option to > > include the gb runtime library, so users does not have to download > > additional packages to run programs build with Gambas? > > Because it's a bad idea to repeat Windows mistakes. Linux systems have a > proper package management system, so there is no need for stupid > workarounds. > > Marius Hi Marius, thanks for your KIND answer. I talked about 'OPTION'. The ability to option is a great choice of freedom in perfect free-software style. Is this a workaround? I don't know: I think a 'workaround' is an unusual way to do something... but what is unusual in building a software with libraries included? Many free-software deploy a library-free version and a library-with version. Are this softwares doing a STUPID WORKAROUND? Maybe here is not the right place to discuss it,,, I posted an idea for the gambas-ide, I would like to know the opinion of Benoit because it's the main developer, with opportunity reasons to regret it, if necessary, not the reasons of a linux-fundamentalist, only to spread shit on Microsoft-Way to do things. Cheers Felix -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Libri e CD musicali - Oltre 12.000 titoli nuovi scontati dal 60 all'80%! * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1898&d=3-12 From dcamposf at ...626... Sat Dec 3 17:41:07 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 3 Dec 2005 16:41:07 +0000 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <200512031632.42707.felice.cafarelli@...324...> References: <200512030929.35739.felice.cafarelli@...324...> <439191DC.6080902@...89...> <200512031632.42707.felice.cafarelli@...324...> Message-ID: <7259b5ae0512030841t64940630h@...627...> Hi: Mmmh... I think the "Stupid" word is not very polite, may be it is not a good idea to use it to talk about new Gambas propposals or ideas, at least in a public list. May be in a bar with two old friends and a lot of bier would be acceptable. Apart from this, I think it is possible to do it already, but not using rpm or deb packages, which are designed to be modular, so you have not to download many times the same pieces of code, but one of these "windows-like" installers for Linux that already exist, that try to manage the software for a lot of distributions at the same time, including libraries, or downloading them automatically from the internet, detecting previously the Linux flavor. In that sense, may be any code developer could be interested in adding support for http://autopackage.org/ , for example. Regards, D. Campos 2005/12/3, Felice Cafarelli : > > Alle 13:38, sabato 3 dicembre 2005, Marius Mauch ha scritto: > > Felice Cafarelli wrote: > > > Why not include in the build process and package creation an option to > > > include the gb runtime library, so users does not have to download > > > additional packages to run programs build with Gambas? > > > > Because it's a bad idea to repeat Windows mistakes. Linux systems have a > > proper package management system, so there is no need for stupid > > workarounds. > > > > Marius > > Hi Marius, thanks for your KIND answer. I talked about 'OPTION'. The > ability > to option is a great choice of freedom in perfect free-software style. > Is this a workaround? I don't know: I think a 'workaround' is an unusual > way > to do something... but what is unusual in building a software with > libraries > included? Many free-software deploy a library-free version and a > library-with > version. Are this softwares doing a STUPID WORKAROUND? > Maybe here is not the right place to discuss it,,, > I posted an idea for the gambas-ide, I would like to know the opinion of > Benoit because it's the main developer, with opportunity reasons to regret > it, if necessary, not the reasons of a linux-fundamentalist, only to > spread > shit on Microsoft-Way to do things. > Cheers > Felix > > > > > -- > > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > > > Sponsor: > > Libri e CD musicali - Oltre 12.000 titoli nuovi scontati dal 60 all'80%! > > * > > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1898&d=3-12 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambas at ...1... Sat Dec 3 17:57:08 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 3 Dec 2005 17:57:08 +0100 Subject: [Gambas-user] ListView.add In-Reply-To: <20051203124230.GA12691@...1257...> References: <20051203124230.GA12691@...1257...> Message-ID: <200512031757.08985.gambas@...1...> On Saturday 03 December 2005 13:42, BernieMan wrote: > Hello All, > I have a few questions: > > I try to add an item with a button to a listview-element. > It is working once. > > But when I tried it a second time ist says that > the key already exists. > So far so good ... > > - How can I find out the highest key-Value? > - Or is there an easy way to add an item and to create an unused key ? > > thx in advance > BernieMan > *You* choose the key, so you can do what you want :-) There is not "highest" key value, as key is a string. But as Gambas automatically convert numbers into strings when needed, you can use a global variable to store a numeric value that you increment each time you add an item, and that you use as a key: INC MyCounter MyListView.Add(MyCounter, "text", ... ) Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 3 17:58:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 3 Dec 2005 17:58:40 +0100 Subject: [Gambas-user] Gambas example question In-Reply-To: <1133623747.17844.16.camel@...37...> References: <1133623747.17844.16.camel@...37...> Message-ID: <200512031758.40336.gambas@...1...> On Saturday 03 December 2005 16:29, Fabricio Santos wrote: > Viva Andy, > > I was looking at this example in the Gambas help browser and I have a > question about it: > > ================================== > I suggest the following code. > > PRIVATE $hConn AS Connection > > PUBLIC SUB GoConnect() > DIM sName AS String > TRY $hConn.Close > sName = "fgda" > ... > ================================== > > Is there a special reason for the variable name to include a $ sign? Or > is it just part of Gambas to accept a $ sign on any variable name and > you decided to use it there? The last answer is right. I just wanted to have a character to make an easy distinction between global private class variables and local variables :-) Regards, -- Benoit Minisini From genone at ...89... Sat Dec 3 17:17:28 2005 From: genone at ...89... (Marius Mauch) Date: Sat, 03 Dec 2005 18:17:28 +0200 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <7259b5ae0512030841t64940630h@...627...> References: <200512030929.35739.felice.cafarelli@...324...> <439191DC.6080902@...89...> <200512031632.42707.felice.cafarelli@...324...> <7259b5ae0512030841t64940630h@...627...> Message-ID: <4391C518.5080904@...89...> Daniel Campos wrote: > Hi: > > Mmmh... I think the "Stupid" word is not very polite, may be it is not a > good idea to use it to talk about new Gambas propposals or ideas, at > least in a public list. May be in a bar with two old friends and a lot > of bier would be acceptable. From a package maintainer POV it is a stupid idea as it makes our life harder. > Apart from this, I think it is possible to do it already, but not using > rpm or deb packages, which are designed to be modular, so you have not > to download many times the same pieces of code, but one of these > "windows-like" installers for Linux that already exist, that try to > manage the software for a lot of distributions at the same time, > including libraries, or downloading them automatically from the > internet, detecting previously the Linux flavor. In that sense, may be > any code developer could be interested in adding support for > http://autopackage.org/ , for example. IMO the problem is that people bring the Windows mindset of download-execute-install (by clicking next->next->next) to Linux systems, where this is completely misplaced as it removes the package from the control of the package manager. All current package managers (or their respective frontends) have a nice dependency resolver that can fetch and install dependencies automatically, so there really isn't an argument to include all deps into the package. Instead it would result in several problems: - things would have to install in a package-specific location (like C:\Program Files\foo in Windows) - no central upgrade management, especially important for security fixes - potential for conflicts if multiple versions are installed Marius From gambas at ...1... Sat Dec 3 18:18:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 3 Dec 2005 18:18:26 +0100 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <439191DC.6080902@...89...> References: <200512030929.35739.felice.cafarelli@...324...> <439191DC.6080902@...89...> Message-ID: <200512031818.26630.gambas@...1...> On Saturday 03 December 2005 13:38, Marius Mauch wrote: > Felice Cafarelli wrote: > > Why not include in the build process and package creation an option to > > include the gb runtime library, so users does not have to download > > additional packages to run programs build with Gambas? > > Because it's a bad idea to repeat Windows mistakes. Linux systems have a > proper package management system, so there is no need for stupid > workarounds. > > Marius > Maybe this is not a polite answer, but mainly it is the right one :-) On Linux, program installation is usually managed and centralized by a package system. This system has the following avantages: * Less things to install, as everything is shared. * Fixing a bug or a security problem in a library fixes all the programs that use them. * You don't have to search on the internet to install most of the programs you need. * You can install and automatically configure thousands of machines in one shot. * ... So making standalone programs is highly inadvisable. Making a standalone package of a Gambas program is possible, but more difficult than you think. There is not just a 'gambas runtime'. There are many components too, that depend themselves on many many libraries. For example, if you make a gambas 1.0 program that needs the gb.sdl component, you will get these dependencies: my program --> gambas runtime & gb.sdl gambas runtime --> libc, libm, ... gb.sdl --> libSDL, libSDL_mixer, libvorbis, libogg, libsmpeg... And these libraries will depend on other ones, and so on. Moreover, theses dependencies are not the same on all Linux systems, and on other Unix systems too. But, when you make a package of your project with the IDE, you get a package that depends on *gambas* packages only. And the job of distribution maintainer is to make these gambas packages for you, with all the needed dependencies on the other packages including the needed libraries. The problem now is that not all distributions have correct gambas packages at the moment :-( You must understand that one of the main goal was to have a secure system. *Very* different from the Microsoft point of view :-) But you have standalone installation systems on Linux if you like: for example, the 'klik' system (http://klik.atekon.de). I hope things are more clear for you now. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Sat Dec 3 19:04:31 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 3 Dec 2005 13:04:31 -0500 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <200512030929.35739.felice.cafarelli@...324...> References: <200512030929.35739.felice.cafarelli@...324...> Message-ID: <200512031304.33145.sourceforge-raindog2@...94...> On Sat December 3 2005 03:29, Felice Cafarelli wrote: > Why not include in the build process and package creation an > option to include the gb runtime library, so users does not > have to download additional packages to run programs build > with Gambas? Unfortunately, there is currently no such thing as the "gb runtime library". There is /usr/bin/gbx, plus /usr/lib/lib.*.so, /usr/lib/lib.*.la, /usr/lib/lib.*.component, /usr/share/gambas/info/*.info and /usr/share/gambas/info/*.info where "*" represents each component you've used in your project. I hope that in the future, the Gambas interpreter becomes a library file which we can statically link into our projects somehow along with whatever components we need. You should know, however, that the executables that would be made this way would be gigantic, like at least 10MB for a Qt-based project. And then there's the question of which version of Qt the end user has installed on his system, etc. One possible solution to your question would be Klik, a single-file package installation system which seems to be gaining in popularity lately. At such time as I end up running a current version of Mandriva (I'm currently running a beta of the 2006 version because of compatibility problems with that version) I am going to look into building Gambas this way, and then figure out how to build Gambas projects this way. Rob From sourceforge-raindog2 at ...94... Sat Dec 3 19:07:24 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 3 Dec 2005 13:07:24 -0500 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <439191DC.6080902@...89...> References: <200512030929.35739.felice.cafarelli@...324...> <439191DC.6080902@...89...> Message-ID: <200512031307.24855.sourceforge-raindog2@...94...> On Sat December 3 2005 07:38, Marius Mauch wrote: > Because it's a bad idea to repeat Windows mistakes. Linux > systems have a proper package management system, so there is > no need for stupid workarounds. You may think that single-file program distribution with sandboxing is a stupid workaround, but many of us who are Linux fans and dislike Microsoft disagree with you. Sometimes you want to just compile one version of your code, not build a package for every possible Linux distribution ever made or rely upon the charity of distribution maintainers to write spec files or ebuilds. Rob From sourceforge-raindog2 at ...94... Sat Dec 3 19:12:42 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 3 Dec 2005 13:12:42 -0500 Subject: [Gambas-user] Idea - Builds & Package Creation In-Reply-To: <4391C518.5080904@...89...> References: <200512030929.35739.felice.cafarelli@...324...> <7259b5ae0512030841t64940630h@...627...> <4391C518.5080904@...89...> Message-ID: <200512031312.44383.sourceforge-raindog2@...94...> On Sat December 3 2005 11:17, Marius Mauch wrote: > From a package maintainer POV it is a stupid idea as it makes > our life harder. I am a package maintainer too, and people distributing self-contained programs that install entirely in a user's home directory doesn't make my life any harder. If anything, third-party RPM's designed for more than one distribution do, because they put stuff in the wrong places. > - no central upgrade management, especially important for > security fixes - potential for conflicts if multiple versions > are installed My clients that do central upgrade management also have policies preventing users from installing packages on their own. Self-contained software distribution is designed for someone who just wants to try a program quickly without installing a compiler or tracking down dependencies, not an enterprise user. Rob From jfabiani at ...1109... Sat Dec 3 19:52:07 2005 From: jfabiani at ...1109... (johnf) Date: Sat, 3 Dec 2005 10:52:07 -0800 Subject: [Gambas-user] Gambas example question In-Reply-To: <1133623747.17844.16.camel@...37...> References: <1133623747.17844.16.camel@...37...> Message-ID: <200512031052.07624.jfabiani@...1109...> On Saturday 03 December 2005 07:29, Fabricio Santos wrote: > Viva Andy, > > I was looking at this example in the Gambas help browser and I have a > question about it: > > ================================== > I suggest the following code. > > PRIVATE $hConn AS Connection > > PUBLIC SUB GoConnect() > DIM sName AS String > TRY $hConn.Close > sName = "fgda" > ... > ================================== > > Is there a special reason for the variable name to include a $ sign? Or > is it just part of Gambas to accept a $ sign on any variable name and > you decided to use it there? > > I have browsed the docs extensively and couldn't find an answer to this > question nor did I find general information on building identifier > names, which characters are allowed and the sort. > > Although 12 years ago I wrote a compiler from scratch and am quite > familiar with the theory of building compilers I am not in a good enough > shape anymore to dive into the Gambas code and grammar to find all this > out so any help will be welcome. > > Thanks, > > -fs Not really sure but I think the "$" make the variable private within a class. John From dcamposf at ...626... Sat Dec 3 19:57:07 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 3 Dec 2005 18:57:07 +0000 Subject: [Gambas-user] external Library In-Reply-To: References: Message-ID: <7259b5ae0512031057s5b2a86ci@...627...> May be http://64.128.110.55/help/lang/extdecl can help you... Regards, D. Campos 2005/12/1, Ralf Kirmis : > > Hello, > > is it possible to use an external link library like > http://serdisplib.sourceforge.net (for controlling an lcd display), > and call functions from that library ? > > regards, > > Mit freundlichen Gr??en > > Ralf Kirmis > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shankarkrupa at ...43... Sun Dec 4 06:10:52 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Sat, 3 Dec 2005 21:10:52 -0800 (PST) Subject: [Gambas-user] Re: Dealing with keycodes Message-ID: <20051204051052.58321.qmail@...1260...> --Daniel Campos wrote: >> >> Just asking the possiblity, would it be possible to >> watch the keystrokes and control the text through >> Gambas? >> >May be using API calls: you should create a not visible window, >and >Grab the Server so it receive all key signals... This would be >the >starting point but I don't know more about it Thanks for the idea. I will look into this in more detail after I have done some application softwares. But definitely I have to do it. Krupa __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From shankarkrupa at ...43... Sun Dec 4 06:22:30 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Sat, 3 Dec 2005 21:22:30 -0800 (PST) Subject: [Gambas-user] RE: SQLite support Message-ID: <20051204052230.51975.qmail@...1261...> --nigel at ...38... wrote: >Generally, if sqlite is installed to default places, configure will >find it. Please >make sure you are using the sqlite 2.8 version as sqlite 3.? is only >supported in the gambas >development version. Nigel, Yes, so that is the problem. I had installed sqlite 3.0 and was trying it. I installed sqlite 2.8 as you said, and it installed without any problem. :-) Great, and thank you. >Again, make sure you have all the development packages for mysql. If >they are in the standard >places, they will be found. I dont actually know how to do all these. :-( Of course when I installed gambas 1.0 from the debian site, mysql worked without any problem. --gambasfr at ...11... wrote: >hum... are you sur you have installed the header package for mysql, >sqlite,= >=20 >libcurl, and anything else on witch component you want to use ? >these package have name like libsqlite-dev Thanks Fabien, I have installed sqlite 2.8 and it compiled this time without fail. So I will just start working with what I have for now. Otherwise it will take me a lot of time even to start. Once I have done a few softwares, I will try more of reinstallations. Krupa __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From shankarkrupa at ...43... Sun Dec 4 06:32:15 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Sat, 3 Dec 2005 21:32:15 -0800 (PST) Subject: [Gambas-user] Audio device hasn't been opened Message-ID: <20051204053215.13248.qmail@...1262...> When I tried to run the Snake example, I got this error: Audio device hasn't been opened and the debugger highlighted the line New Sound("filename.wav") I am able to play mp3 and wav files with mpg123 and noatun. And I am sure I installed sdl. Of course no audio file was playing when I tried to run the gambas program. When I try to create a new Sound object also, I get the same error. Are there any additional libraries need to be installed, or any setting change is needed? Krupa __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From rporticio at ...43... Mon Dec 5 04:20:29 2005 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 4 Dec 2005 19:20:29 -0800 (PST) Subject: [Gambas-user] persistent envirtonment variable Message-ID: <20051205032029.69373.qmail@...1263...> thank you for your help. i just added the export line in the .bash_profile file and it works. for those who have similar problem here is what i did. type $ vi .bash_profile type i to insert the export LD_LIBRARY_PATH=/home/gambas/qt/lib press esc and type:w and :q restart the computer and presto $gambas is automatically executed thanks again. mon __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From faasse at ...1252... Mon Dec 5 10:52:20 2005 From: faasse at ...1252... (p.r. faasse) Date: Mon, 5 Dec 2005 10:52:20 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <7259b5ae0512021337j81f485bw@...627...> References: <20051129042206.D9B3612660@...773...> <200511291005.53255.faasse@...1252...> <7259b5ae0512021337j81f485bw@...627...> Message-ID: <200512051052.21090.faasse@...1252...> On Friday 02 December 2005 22:37, Daniel Campos wrote: > Hi: > > Could you send me your patch? I will add it! > > thanks, > > D. Campos Gladly. Should i mail it here, or somewhere else? It is currently the only change i've made to Gambas, so i'll have to beg indulgance for the inexperienced way i went about it :-) On the same note (and having seen Bienot's comments w.r.t. properties/socket component), there are a few other socket options you might want to consider: - UDP: SO_BROADCAST: as described before: without it you will not be allowed to do broadcasts. I can not really think of any reason to forbid this, but wiser men may say otherwise. This option makes sense for UDP only (as far as i can tell that is :-). - UDP/TCP: SO_REUSEADDRESS: May save you the 4-minutes 'wait-time' when a server crashes. With REUSEADDRESS you can restart a 'bind-ed' server immediately, without it you get 'address in use' errors for the first 4 minutes (=time-wait time), then you can reactivate the server. I'm not sure if this is always a good idea, but in 'C' i've been using this socket option for quite some time for all servers and have not seen a reason not to use it yet. - TCP: SO_NOWAIT: Is somewhat more subtle; I use it when i want to communicate over TCP using small packets. 'Normal' TCP has the 'privilege' to 'pack' more of these small transmissions into one 'full' IP packet before actually sending out the data onto the net. With SO_NOWAIT you tell the stack that you want the data to be transmitted immediately. I use this when i -for instance- do status polls of a device over a network at -say- 10 Hz. In this kind of situation I want the stack to not 'join-up' more status poll requests into one packet, but to send each 'write' to the actual network because i want one answer from the device for each status poll transmission. I think that this option is not something you should want to impose on all TCP sockets, but it is the only way i know of to get something like the status polls i've described above to work good :-) No critisism intended, but the current socket component implementation does not give access to socket options. Perhaps the 'right way' to go about it would be to implement a socket option interface instead of hard-coding some socket options themselves into the socket component. The default behaviour of sockets is quite well-tuned for what appears to be the 'standard use' of sockets, and socket options seem to be intended to permit fine-tuning the TCP stack's behaviour to specific needs (such as mine :-). Unless told otherwise, i'll get my modified source of 'socket.c', and include it into a mail here, That will be tomorrow, i'm not at the Gambas development machine at this moment... :-( > 2005/11/29, p.r. faasse : > > > > When I tried to do UDP broadcasts (Gambas-1.0.13) I got a 'permission > > denied'. > > > > I have solved by adding the SO_BROADCAST/setsockopt in the source of the > > Gambas > > network UDP component and re-compiling Gambas itself. Is there any way i > > could make the > > developers add this to the network component by default? > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From faasse at ...1252... Mon Dec 5 11:31:33 2005 From: faasse at ...1252... (p.r. faasse) Date: Mon, 5 Dec 2005 11:31:33 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <200512051052.21090.faasse@...1252...> References: <20051129042206.D9B3612660@...773...> <7259b5ae0512021337j81f485bw@...627...> <200512051052.21090.faasse@...1252...> Message-ID: <200512051131.33738.faasse@...1252...> On Monday 05 December 2005 10:52, p.r. faasse wrote: > On Friday 02 December 2005 22:37, Daniel Campos wrote: > > Hi: > > > > Could you send me your patch? I will add it! > > > > thanks, > > > > D. Campos > > No critisism intended, but the current socket component implementation does not give access to socket options. > Perhaps the 'right way' to go about it would be to implement a socket option interface instead of hard-coding some > socket options themselves into the socket component. The default behaviour of sockets is quite well-tuned for what > appears to be the 'standard use' of sockets, and socket options seem to be intended to permit fine-tuning the TCP > stack's behaviour to specific needs (such as mine :-). > Seeing the 'external functions' interface mail: would it be an option to expose the actual network socket as a property of the socket object? A combination of an (integer, read-only) socket property and a 'declare' of the 'setsockopt' system library function would permit full access (mistakes here are my own :-) to socket options with minimal impact upon the socket component itself. greetings, Peter Faasse From mconfortino at ...1062... Mon Dec 5 17:39:40 2005 From: mconfortino at ...1062... (Marcelo Confortino) Date: Mon, 05 Dec 2005 13:39:40 -0300 Subject: [Gambas-user] Greetings!! In-Reply-To: <4390BFC5.1070506@...1147...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> <4390BFC5.1070506@...1147...> Message-ID: <43946D4C.5090500@...1062...> Just wanted to say Hi! to everybody, from the southest user of Gambas. M. -------------- next part -------------- A non-text attachment was scrubbed... Name: mconfortino.vcf Type: text/x-vcard Size: 333 bytes Desc: not available URL: From htakada at ...626... Mon Dec 5 20:32:53 2005 From: htakada at ...626... (Hugo) Date: Mon, 5 Dec 2005 16:32:53 -0300 Subject: [Gambas-user] object instantiation Message-ID: Hi, is it possible to instantiate an object from a string. I mean something like this: sub foo( p as string) dim anyObject as variant anyObject = New string.asClass() anyObject.show() .... .... end thanks Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Dec 5 20:52:56 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Dec 2005 20:52:56 +0100 Subject: [Gambas-user] object instantiation In-Reply-To: References: Message-ID: <200512052052.56112.gambas@...1...> On Monday 05 December 2005 20:32, Hugo wrote: > Hi, is it possible to instantiate an object from a string. I mean something > like this: > > sub foo( p as string) > dim anyObject as variant > anyObject = New string.asClass() > anyObject.show() > .... > .... > end > > thanks > > Hugo Yes! sub foo(p as string) dim anyObject as object anyObject = New(p) anyObject.show() ... ... end -- Benoit Minisini From htakada at ...626... Mon Dec 5 20:58:52 2005 From: htakada at ...626... (Hugo) Date: Mon, 5 Dec 2005 16:58:52 -0300 Subject: [Gambas-user] life of an object In-Reply-To: <200512022101.38676.gambas@...1...> References: <200512020012.53448.gambas@...1...> <200512022101.38676.gambas@...1...> Message-ID: I think I got it, my problem is/was that I was refering to the instance instead of the class , this code works now. PUBLIC SUB Button1_Click() DIM clave AS String DIM frm AS FrmSeleccionRegistro 'la finalidad de esta funcion es que muestra un form de seleccion de registros frm = NEW FrmSeleccionRegistro(variables.PaisesTitulos, variables.PaisesCampos, variables.PaisesAlign, variables.PaisesAncho, resSQl.sql_tbPaises, "Seleccion de Pais") frm.show() clave = FrmSeleccionRegistro.publicVariable ' here frm.publicVariable was the problem RETURN END Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From htakada at ...626... Mon Dec 5 22:24:16 2005 From: htakada at ...626... (Hugo) Date: Mon, 5 Dec 2005 18:24:16 -0300 Subject: [Gambas-user] Greetings!! In-Reply-To: <43946D4C.5090500@...1062...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> <4390BFC5.1070506@...1147...> <43946D4C.5090500@...1062...> Message-ID: hola Marcelo !, bienvenido al club !! Hugo On 05/12/05, Marcelo Confortino wrote: > > Just wanted to say Hi! to everybody, from the southest user of Gambas. M. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Tue Dec 6 02:02:45 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 6 Dec 2005 12:02:45 +1100 Subject: [Gambas-user] Programming object coordinates Message-ID: <6e3a096b0512051702r6de32543qb69a04b1f8b909fa@...627...> Hi, The properties of an object allow the x & y coordinates to be chosen. However, I have noticed that the x coordinates of a line of adjacent buttons can change by one after running the program. Q. Is there a way of programming the x & y coordinates of an object (button) into the code? TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: From rporticio at ...43... Tue Dec 6 09:25:17 2005 From: rporticio at ...43... (Ramon Orticio) Date: Tue, 6 Dec 2005 00:25:17 -0800 (PST) Subject: [Gambas-user] 2 Questions Message-ID: <20051206082517.16079.qmail@...1037...> dear friends, 1. what is the equivalent of \\name_of_computer\folder path in gambas. in microsoft vb the latter is used in connecting to files located in a networked computer. 2. can gambas connect to files in openoffice applications such as the openoffice.org calc or spreadsheets like vba to microsoft excel. if yes how? thnaks again. mon __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From eilert-sprachen at ...221... Tue Dec 6 10:07:40 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 06 Dec 2005 10:07:40 +0100 Subject: [Gambas-user] 2 Questions In-Reply-To: <20051206082517.16079.qmail@...1037...> References: <20051206082517.16079.qmail@...1037...> Message-ID: <439554DC.2060503@...221...> Hi Ramon, Ramon Orticio schrieb: > dear friends, > > 1. what is the equivalent of \\name_of_computer\folder > path in gambas. > in microsoft vb the latter is used in connecting to > files located in a networked computer. The question is: How do you connect Linux machines' directories? I'm using NFS here, and in this case you will have just an ordinary directory as NFS share of the other machine. Gambas would not need to have any special way to access this directory, a simple path into it would do. If you want to connect to Windows machines, I know Samba. From the POV of the Windows computer, this will look like any ordinary share from another Windows computer, but for Linux it is - again - a simple directory. At least this is the way I've used it here. > > 2. can gambas connect to files in openoffice > applications such as the openoffice.org calc or > spreadsheets like vba to microsoft excel. if yes how? Hm, I don't think so, but AFAIK OOo has its own Basic to do such jobs. Rolf From faasse at ...1252... Tue Dec 6 10:14:00 2005 From: faasse at ...1252... (p.r. faasse) Date: Tue, 6 Dec 2005 10:14:00 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <7259b5ae0512021337j81f485bw@...627...> References: <20051129042206.D9B3612660@...773...> <200511291005.53255.faasse@...1252...> <7259b5ae0512021337j81f485bw@...627...> Message-ID: <200512061014.00276.faasse@...1252...> On Friday 02 December 2005 22:37, Daniel Campos wrote: > Hi: > > Could you send me your patch? I will add it! > > thanks, > > D. Campos Hold on to your hat: here it comes: I've limited the code to the dgram_start routine of CUdpSocket.c, to not bother you with all sections of code that i have *not* modified. My modifications are between the and comment lines. Note that i have misused the error-code: error code 10 is probably not the best one possible, but i have not found anything better in the list of socket error codes. int dgram_start(CUDPSOCKET *mythis,int myport) { int NoBlock=1; // const int on = 1; // struct sockaddr_in Srv; if (mythis->iStatus > 0) return 1; if ( (myport <0) || (myport>65535) ) return 8; if ( (mythis->Socket = socket(AF_INET,SOCK_DGRAM,0))<1 ) { mythis->iStatus=-2; GB.Ref(mythis); GB.Post(CUdpSocket_post_error,(long)mythis); return 2; } // // // // enable broadcasts, reuseaddress // if ( setsockopt(mythis->Socket, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) ) { // close (mythis->Socket); mythis->iStatus=-10; GB.Ref(mythis); GB.Post(CUdpSocket_post_error,(long)mythis); return 10; // } // if ( setsockopt(mythis->Socket, SOL_SOCKET, SO_BROADCAST, &on, sizeof(on)) ) { // close (mythis->Socket); mythis->iStatus=-10; GB.Ref(mythis); GB.Post(CUdpSocket_post_error,(long)mythis); return 10; // } // // // Srv.sin_family=AF_INET; Srv.sin_addr.s_addr=htonl(INADDR_ANY); Srv.sin_port=htons(myport); bzero(&(Srv.sin_zero),8); if ( bind (mythis->Socket,(struct sockaddr*)&Srv,sizeof(struct sockaddr)) < 0) { close (mythis->Socket); mythis->iStatus=-10; GB.Ref(mythis); GB.Post(CUdpSocket_post_error,(long)mythis); return 10; } mythis->iStatus=1; ioctl(mythis->Socket,FIONBIO,&NoBlock); GB.Watch (mythis->Socket,GB_WATCH_WRITE,(void *)CUdpSocket_CallBack,(long)mythis); mythis->stream.desc=&UdpSocketStream; mythis->stream._free[0]=(long)mythis; return 0; } From htakada at ...626... Tue Dec 6 15:00:43 2005 From: htakada at ...626... (Hugo) Date: Tue, 6 Dec 2005 11:00:43 -0300 Subject: [Gambas-user] life of an object In-Reply-To: References: <200512020012.53448.gambas@...1...> <200512022101.38676.gambas@...1...> Message-ID: but I think it would be better to access the instance variable and not the class variable, is it possible to make a form valid after it was closed at least until the function returns to the caller. On 05/12/05, Hugo wrote: > > I think I got it, my problem is/was that I was refering to the instance > instead of the class , this code works now. > > PUBLIC SUB Button1_Click() > DIM clave AS String > DIM frm AS FrmSeleccionRegistro > 'la finalidad de esta funcion es que muestra un form de seleccion de > registros > frm = NEW FrmSeleccionRegistro(variables.PaisesTitulos, > variables.PaisesCampos, variables.PaisesAlign, variables.PaisesAncho, > resSQl.sql_tbPaises, "Seleccion de Pais") > frm.show() > clave = FrmSeleccionRegistro.publicVariable ' here frm.publicVariablewas the problem > RETURN > END > > Hugo > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Dec 6 15:38:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Dec 2005 15:38:58 +0100 Subject: [Gambas-user] life of an object In-Reply-To: References: Message-ID: <200512061538.59042.gambas@...1...> On Tuesday 06 December 2005 15:00, Hugo wrote: > but I think it would be better to access the instance variable and not the > class variable, is it possible to make a form valid after it was closed at > least until the function returns to the caller. > So do I :-) But having parts of an object invalid and other parts valid would make the Gambas object model too complex... Regards, -- Benoit Minisini From jfabiani at ...1109... Tue Dec 6 17:43:33 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 6 Dec 2005 08:43:33 -0800 Subject: [Gambas-user] 2 Questions In-Reply-To: <439554DC.2060503@...221...> References: <20051206082517.16079.qmail@...1037...> <439554DC.2060503@...221...> Message-ID: <200512060843.33661.jfabiani@...1109...> > > 2. can gambas connect to files in openoffice > > applications such as the openoffice.org calc or > > spreadsheets like vba to microsoft excel. if yes how? > > Hm, I don't think so, but AFAIK OOo has its own Basic to do such jobs. > > Rolf Is this right I can't open, create and run OOo from Gambas? John From sourceforge-raindog2 at ...94... Tue Dec 6 19:18:03 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 6 Dec 2005 13:18:03 -0500 Subject: [Gambas-user] 2 Questions In-Reply-To: <200512060843.33661.jfabiani@...1109...> References: <20051206082517.16079.qmail@...1037...> <439554DC.2060503@...221...> <200512060843.33661.jfabiani@...1109...> Message-ID: <200512061318.04623.sourceforge-raindog2@...94...> On Tue December 6 2005 11:43, johnf wrote: > > > 2. can gambas connect to files in openoffice > > > applications such as the openoffice.org calc or > > > spreadsheets like vba to microsoft excel. if yes how? > > Hm, I don't think so, but AFAIK OOo has its own Basic to do > > such jobs. > Is this right I can't open, create and run OOo from Gambas? You can run OOo from Gambas pretty easily, but no one's written a component to read/write OOo documents yet. All the pieces are there (gb.xml... well, i guess there's no gb.compress.zip yet) but no one's done it yet. Since the appearance of gb.pdf I'm optimistic that someone will try it soon, though. I'd do it myself if I weren't completely swamped with work. Rob From jfabiani at ...1109... Tue Dec 6 20:48:16 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 6 Dec 2005 11:48:16 -0800 Subject: [Gambas-user] 2 Questions In-Reply-To: <200512061318.04623.sourceforge-raindog2@...94...> References: <20051206082517.16079.qmail@...1037...> <200512060843.33661.jfabiani@...1109...> <200512061318.04623.sourceforge-raindog2@...94...> Message-ID: <200512061148.16733.jfabiani@...1109...> On Tuesday 06 December 2005 10:18, Rob Kudla wrote: > On Tue December 6 2005 11:43, johnf wrote: > > > > 2. can gambas connect to files in openoffice > > > > applications such as the openoffice.org calc or > > > > spreadsheets like vba to microsoft excel. if yes how? > > > > > > Hm, I don't think so, but AFAIK OOo has its own Basic to do > > > such jobs. > > > > Is this right I can't open, create and run OOo from Gambas? > > You can run OOo from Gambas pretty easily, but no one's written a > component to read/write OOo documents yet. All the pieces are > there (gb.xml... well, i guess there's no gb.compress.zip yet) > but no one's done it yet. > > Since the appearance of gb.pdf I'm optimistic that someone will > try it soon, though. I'd do it myself if I weren't completely > swamped with work. > > Rob I was not aware that OOo documents are XML files? I thought it was something to do with "odt". I have been checking and I believe the OOo guys are trying to setup a universal way of accessing and creating OOo documents. There is a SDK and a binary "URE" (UNO Runtime) (UNO = universal network object?) that the OOo doc suggest will be the way to automate OOo. But at the moment it is a little over my head with regard to GAMBAS. It only has Java and C++ examples. Also it looks like it's some sort of client/server environment. Not what I was expecting..... John From gambasfr at ...11... Tue Dec 6 22:17:31 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 6 Dec 2005 22:17:31 +0100 Subject: [Gambas-user] Problem with Open Write on a file Message-ID: <200512062217.31373.gambasfr@...11...> Hi, I've a problen with that : PRIVATE SUB Save(sFile AS String, sData AS String) DIM oFile AS File oFile = OPEN sFile FOR WRITE PRINT #oFile, sData CLOSE #oFile END It say me access forbidden... but i've all the right It's the same for File.Save I've gambas 1.9.22 on kubuntu 5.1 I'm I the only one with this problem ? Fabien From nando_f at ...951... Tue Dec 6 22:24:35 2005 From: nando_f at ...951... (nando) Date: Tue, 6 Dec 2005 16:24:35 -0500 Subject: [Gambas-user] Problem with Open Write on a file In-Reply-To: <200512062217.31373.gambasfr@...11...> References: <200512062217.31373.gambasfr@...11...> Message-ID: <20051206212426.M39044@...951...> Unix Permissions...! ---------- Original Message ----------- From: Fabien Bodard To: gambas-user at lists.sourceforge.net Sent: Tue, 6 Dec 2005 22:17:31 +0100 Subject: [Gambas-user] Problem with Open Write on a file > Hi, > > I've a problen with that : > PRIVATE SUB Save(sFile AS String, sData AS String) > > DIM oFile AS File > oFile = OPEN sFile FOR WRITE > > PRINT #oFile, sData > > CLOSE #oFile > > END > > It say me access forbidden... but i've all the right > > It's the same for File.Save > > I've gambas 1.9.22 on kubuntu 5.1 > > I'm I the only one with this problem ? > > Fabien > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Tue Dec 6 23:42:44 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 6 Dec 2005 17:42:44 -0500 Subject: [Gambas-user] 2 Questions In-Reply-To: <200512061148.16733.jfabiani@...1109...> References: <20051206082517.16079.qmail@...1037...> <200512061318.04623.sourceforge-raindog2@...94...> <200512061148.16733.jfabiani@...1109...> Message-ID: <200512061742.45669.sourceforge-raindog2@...94...> On Tue December 6 2005 14:48, johnf wrote: > I was not aware that OOo documents are XML files? I thought > it was something to do with "odt". I have been checking and I Actually, .odt and .sxw files (and all the other Staroffice/Openoffice file formats starting with Openoffice 1.0/Staroffice 6) are just JAR (Java archive) files even though they don't have any Java in them. In turn, JAR files are just ZIP files with a particular directory layout. So if you go like this: unzip -l mydocument.odt you get something like this: Length Date Time Name -------- ---- ---- ---- 39 11-09-05 06:37 mimetype 0 11-09-05 06:37 Configurations2/ 0 11-09-05 06:37 Pictures/ 130 11-09-05 06:37 layout-cache 20926 11-09-05 06:37 content.xml 16383 11-09-05 06:37 styles.xml 1120 11-09-05 06:37 meta.xml 15555 11-09-05 06:37 Thumbnails/thumbnail.png 7090 11-09-05 06:37 settings.xml 1173 11-09-05 06:37 META-INF/manifest.xml -------- ------- 62416 10 files The XML file "content.xml" contains the marked up text of your document; "styles.xml" contains all the formatting information, even for the formatting you do without explicitly applying a style. There are DTD's out there for all 5 of the XML files, of course. I myself have done a lot of work with Openoffice documents in Perl, though since discovering the OODoc module I stopped getting into the nitty gritty of the XML files. > believe the OOo guys are trying to setup a universal way of > accessing and creating OOo documents. There is a SDK and a > binary "URE" (UNO Runtime) (UNO = universal network object?) > that the OOo doc suggest will be the way to automate OOo. But > at the moment it is a little over my head with regard to > GAMBAS. It only has Java and C++ examples. Also it looks > like it's some sort of client/server environment. Not what I > was expecting..... Writing an UNO component for Gambas is way, way out of my league, but if all you want to do is read and write OOo documents, the tools are already available even without a "gb.xml.ooo" component having been written. Rob From jfabiani at ...1109... Wed Dec 7 00:09:54 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 6 Dec 2005 15:09:54 -0800 Subject: [Gambas-user] 2 Questions In-Reply-To: <200512061742.45669.sourceforge-raindog2@...94...> References: <20051206082517.16079.qmail@...1037...> <200512061148.16733.jfabiani@...1109...> <200512061742.45669.sourceforge-raindog2@...94...> Message-ID: <200512061509.54389.jfabiani@...1109...> On Tuesday 06 December 2005 14:42, Rob Kudla wrote: > On Tue December 6 2005 14:48, johnf wrote: > > I was not aware that OOo documents are XML files? I thought > > it was something to do with "odt". I have been checking and I > > Actually, .odt and .sxw files (and all the other > Staroffice/Openoffice file formats starting with Openoffice > 1.0/Staroffice 6) are just JAR (Java archive) files even though > they don't have any Java in them. In turn, JAR files are just > ZIP files with a particular directory layout. So if you go like > this: > > unzip -l mydocument.odt > > you get something like this: > > Length Date Time Name > -------- ---- ---- ---- > 39 11-09-05 06:37 mimetype > 0 11-09-05 06:37 Configurations2/ > 0 11-09-05 06:37 Pictures/ > 130 11-09-05 06:37 layout-cache > 20926 11-09-05 06:37 content.xml > 16383 11-09-05 06:37 styles.xml > 1120 11-09-05 06:37 meta.xml > 15555 11-09-05 06:37 Thumbnails/thumbnail.png > 7090 11-09-05 06:37 settings.xml > 1173 11-09-05 06:37 META-INF/manifest.xml > -------- ------- > 62416 10 files > > The XML file "content.xml" contains the marked up text of your > document; "styles.xml" contains all the formatting information, > even for the formatting you do without explicitly applying a > style. There are DTD's out there for all 5 of the XML files, of > course. > > I myself have done a lot of work with Openoffice documents in > Perl, though since discovering the OODoc module I stopped > getting into the nitty gritty of the XML files. > > > believe the OOo guys are trying to setup a universal way of > > accessing and creating OOo documents. There is a SDK and a > > binary "URE" (UNO Runtime) (UNO = universal network object?) > > that the OOo doc suggest will be the way to automate OOo. But > > at the moment it is a little over my head with regard to > > GAMBAS. It only has Java and C++ examples. Also it looks > > like it's some sort of client/server environment. Not what I > > was expecting..... > > Writing an UNO component for Gambas is way, way out of my league, > but if all you want to do is read and write OOo documents, the > tools are already available even without a "gb.xml.ooo" > component having been written. > > Rob Not sure what you mean by DTD's. John From gambas at ...1... Wed Dec 7 00:37:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 7 Dec 2005 00:37:20 +0100 Subject: [Gambas-user] Problem with Open Write on a file In-Reply-To: <200512062217.31373.gambasfr@...11...> References: <200512062217.31373.gambasfr@...11...> Message-ID: <200512070037.21399.gambas@...1...> On Tuesday 06 December 2005 22:17, Fabien Bodard wrote: > Hi, > > I've a problen with that : > PRIVATE SUB Save(sFile AS String, sData AS String) > > DIM oFile AS File > oFile = OPEN sFile FOR WRITE > > PRINT #oFile, sData > > CLOSE #oFile > > END > > It say me access forbidden... but i've all the right > > It's the same for File.Save > > I've gambas 1.9.22 on kubuntu 5.1 > > I'm I the only one with this problem ? > > Fabien > What is the value of sFile? -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed Dec 7 01:12:04 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 6 Dec 2005 19:12:04 -0500 Subject: [Gambas-user] 2 Questions In-Reply-To: <200512061509.54389.jfabiani@...1109...> References: <20051206082517.16079.qmail@...1037...> <200512061742.45669.sourceforge-raindog2@...94...> <200512061509.54389.jfabiani@...1109...> Message-ID: <200512061912.05718.sourceforge-raindog2@...94...> On Tue December 6 2005 18:09, johnf wrote: > Not sure what you mean by DTD's. A DTD is a "data type definition", which is basically a file format definition of an XML document which can be read programmatically (because the DTD itself is also an XML document.) If someone releases an XML based file format and releases the DTD for that format, it becomes A LOT easier to make other programs work with that format. Openoffice.org released the DTD's for their file formats along with the formats themselves, unlike certain companies who want you to sign NDA's or agree to other restrictions to use their DTD's. A good starting point for understanding the OpenDocument format can be found here, though they gloss over the DTD: http://books.evc-cit.info/odbook/book.html The DTD files themselves are installed along with Openoffice. On my machine they're located here: /usr/lib/openoffice/share/dtd/ Gambas' gb.xml.libxml component has some DTD-related functionality, but I couldn't tell you what it does exactly. It looks to me like XML is pretty much the ASCII of the future, so if you're looking to manipulate documents you'll want to learn how to deal with XML. Good luck.... Rob From rohnny at ...1248... Wed Dec 7 09:15:57 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Wed, 07 Dec 2005 09:15:57 +0100 Subject: [Gambas-user] how to use sqlite3 Message-ID: <43969A3D.9000702@...1248...> I'm trying to take use of sqlite3, but as I understand it does make a database where you want and not at a host. How tried the database manager in gambas but only ask for host How to open and close a database named test.db at my home? Using Gambas 1.9.22 with sqlite3 3.2.1 Rohnny From gambasfr at ...11... Wed Dec 7 11:58:15 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 7 Dec 2005 11:58:15 +0100 Subject: [Gambas-user] Problem with Open Write on a file In-Reply-To: <200512070037.21399.gambas@...1...> References: <200512062217.31373.gambasfr@...11...> <200512070037.21399.gambas@...1...> Message-ID: <200512071158.15110.gambasfr@...11...> Le Mercredi 7 D?cembre 2005 00:37, Benoit Minisini a ?crit?: > On Tuesday 06 December 2005 22:17, Fabien Bodard wrote: > > Hi, > > > > I've a problen with that : > > PRIVATE SUB Save(sFile AS String, sData AS String) > > > > DIM oFile AS File > > oFile = OPEN sFile FOR WRITE > > > > PRINT #oFile, sData > > > > CLOSE #oFile > > > > END > > > > It say me access forbidden... but i've all the right > > > > It's the same for File.Save > > > > I've gambas 1.9.22 on kubuntu 5.1 > > > > I'm I the only one with this problem ? > > > > Fabien > > What is the value of sFile? it work now... :/ but i don't know why !... I've done nothing :) Maybe my gambas runtime waited from a Benoit word.... Regards, Fabien From gambasfr at ...11... Wed Dec 7 12:04:36 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 7 Dec 2005 12:04:36 +0100 Subject: [Gambas-user] how to use sqlite3 In-Reply-To: <43969A3D.9000702@...1248...> References: <43969A3D.9000702@...1248...> Message-ID: <200512071204.36150.gambasfr@...11...> Le Mercredi 7 D?cembre 2005 09:15, Rohnny Stormo a ?crit?: > I'm trying to take use of sqlite3, but as I understand it does make a > database > where you want and not at a host. > How tried the database manager in gambas but only ask for host > > How to open and close a database named test.db at my home? > Using Gambas 1.9.22 with sqlite3 3.2.1 It's really simple ! At the host place put the path of the directory where your databases ares, select the sqlite3 entry, and then push ok button Host PROPERTY Host AS String Returns or sets the host where the database server resides. This host can be a machine name, or an IP address. The default host is localhost. **** Note: Because Sqlite is not a server/client database, host in this context is redundant. However, as a feature of the sqlite driver, from version 0.95 it is possible to set the home path for the database using this property. *** http://binara.com/gambas-wiki/bin/view/Gambas/GbDbConnectionPHost Regard, Fabien > > > Rohnny > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rohnny at ...1248... Wed Dec 7 13:56:02 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Wed, 07 Dec 2005 13:56:02 +0100 Subject: [Gambas-user] Re: how to use sqlite3 Message-ID: <4396DBE2.5020708@...1248...> Tried that with gambas database manager. But got an error when I should create a table. Could not create database, unknown error It did ask for name, I inserted test1 as table name. In the host area it says, rohnny@/home/rstormo/test.db (sqlite3) There are no files in my home area called test.db Regards Rohnny From nigel at ...38... Wed Dec 7 19:48:17 2005 From: nigel at ...38... (nigel at ...38...) Date: Wed, 7 Dec 2005 19:48:17 +0100 (CET) Subject: [Gambas-user] Re: how to use sqlite3 Message-ID: <3452174.1133981297877.JavaMail.www@...1267...> > > In the host area it says, rohnny@/home/rstormo/test.db (sqlite3) > Try setting hConnection.host = "/home/rstormo" hConnection.name = test.db Nigel > There are no files in my home area called test.db > > Regards Rohnny > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From johnhedge at ...626... Thu Dec 8 00:18:37 2005 From: johnhedge at ...626... (john hedge) Date: Thu, 8 Dec 2005 10:18:37 +1100 Subject: [Gambas-user] error trap an sql insert on a unique column Message-ID: <6e3a096b0512071518v7061a3e6ibf4e8444aeac6b6b@...627...> Hi, I'm trying to setup a user input unique code. If the user enters a non unique code the error message "Query failed........." Stop Continue etc. appears and the program exits. Is it possible to capture this process before this occurs, as in TRY conn.Open and displays a relevant message indicating duplication? I've attached a screen shot which I hope helps show the situation. TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 147366 bytes Desc: not available URL: From dcamposf at ...626... Thu Dec 8 00:48:21 2005 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 8 Dec 2005 00:48:21 +0100 Subject: [Gambas-user] error trap an sql insert on a unique column In-Reply-To: <6e3a096b0512071518v7061a3e6ibf4e8444aeac6b6b@...627...> References: <6e3a096b0512071518v7061a3e6ibf4e8444aeac6b6b@...627...> Message-ID: <7259b5ae0512071548y385518a7i@...627...> I think: TRY res = conn.Exec(sql) IF ERROR THEN Message.Error(Error.Text) END IF Should work Regards, D. Campos 2005/12/8, john hedge : > > Hi, > > I'm trying to setup a user input unique code. > > If the user enters a non unique code the error message "Query > failed........." Stop Continue etc. appears and the program exits. > > Is it possible to capture this process before this occurs, as in TRY > conn.Open and displays a relevant message indicating duplication? > > I've attached a screen shot which I hope helps show the situation. > > TIA > > John > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Thu Dec 8 02:33:23 2005 From: johnhedge at ...626... (john hedge) Date: Thu, 8 Dec 2005 12:33:23 +1100 Subject: [Gambas-user] error trap an sql insert on a unique column In-Reply-To: <7259b5ae0512071548y385518a7i@...627...> References: <6e3a096b0512071518v7061a3e6ibf4e8444aeac6b6b@...627...> <7259b5ae0512071548y385518a7i@...627...> Message-ID: <6e3a096b0512071733h1d735576k8661746a2c56ace6@...627...> Thanks Daniel. Works a treat. I'd tried putting it in front of the sql statement and infront of conn.Exec(sql) but I hadn't thought about you suggestion. Thanks John On 12/8/05, Daniel Campos wrote: > > I think: > > TRY res = conn.Exec(sql) > IF ERROR THEN > Message.Error(Error.Text) > END IF > > Should work > > Regards, > > D. Campos > > 2005/12/8, john hedge : > > > > Hi, > > > > I'm trying to setup a user input unique code. > > > > If the user enters a non unique code the error message "Query > > failed........." Stop Continue etc. appears and the program exits. > > > > Is it possible to capture this process before this occurs, as in TRY > > conn.Open and displays a relevant message indicating duplication? > > > > I've attached a screen shot which I hope helps show the situation. > > > > TIA > > > > John > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Thu Dec 8 10:08:12 2005 From: johnhedge at ...626... (john hedge) Date: Thu, 8 Dec 2005 20:08:12 +1100 Subject: [Gambas-user] Insert into multiple database columns from numerous textboxes Message-ID: <6e3a096b0512080108x72585461x90874032f256af3d@...627...> Hi, DIM res AS Result DIM sql AS String IF textbox1.Text <> "" THEN sql = "insert into table (column1) values ('" & textbox1.Text & "')" res = conn.Exec(sql) END IF will move the data from one textbox into one column. How do you move data from a number of textboxes (all named tbXxxxx) into adjacent columns of the same table, please? TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: From na2492 at ...9... Thu Dec 8 11:07:32 2005 From: na2492 at ...9... (Charlie Reinl) Date: Thu, 8 Dec 2005 11:07:32 00100 Subject: [Gambas-user] Insert into multiple database columns from numerous textboxes Message-ID: <439805e4.cdf.0@...9...> >Hi, > >DIM res AS Result >DIM sql AS String > >IF textbox1.Text <> "" THEN >sql = "insert into table (column1) values ('" & textbox1.Text & "')" >res = conn.Exec(sql) >END IF > >will move the data from one textbox into one column. > >How do you move data from a number of textboxes (all named tbXxxxx) into >adjacent columns of the same table, please? > >TIA > >John > Salut, "insert into table (column1,column2,..) values ('" & textbox1.Text & "','" & textbox1.Text & "','" &..& "')" But you can use also the Gambas DB Functions, which are provided for that. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From rohnny at ...1248... Thu Dec 8 11:52:13 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Thu, 08 Dec 2005 11:52:13 +0100 Subject: [Gambas-user] RE: Re: how to use sqlite3 Message-ID: <4398105D.8090308@...1248...> Thanks Nigel. Thats did the trick. Summary: Open databasemanager -> Select Sqlite3 Host = /home/ Username= Password= When creating a database only write a name, without any dot. test = 0k test.db = failes Now you can add fields as you want. This looks like the only alternative to access under Linux. Regards Rohnny From ronald_gambas at ...43... Thu Dec 8 12:32:15 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Thu, 8 Dec 2005 03:32:15 -0800 (PST) Subject: [Gambas-user] crystal report. Message-ID: <20051208113215.10646.qmail@...1268...> is there a crystal report like in gambas? --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: From htakada at ...626... Thu Dec 8 13:11:57 2005 From: htakada at ...626... (Hugo) Date: Thu, 8 Dec 2005 09:11:57 -0300 Subject: [Gambas-user] how to show which column is currently selected in a tableview control Message-ID: Hi , is there a way to do it programatically ? thanks Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcamposf at ...626... Thu Dec 8 13:35:05 2005 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 8 Dec 2005 13:35:05 +0100 Subject: [Gambas-user] crystal report. In-Reply-To: <20051208113215.10646.qmail@...1268...> References: <20051208113215.10646.qmail@...1268...> Message-ID: <7259b5ae0512080435h4d1f1228l@...627...> Hi: This question comes from time to time to the list. Currently there's not any native report designer in Gambas. However you can use external tools like Kugar. You can communicate with Kugar sending data in XML format, that it will manage in order to show it as a report or print it. I think Fabien was working on a report designer... or am I wrong? Regards, D. Campos 2005/12/8, Ronald Medina : > > is there a crystal report like in gambas? > > ------------------------------ > Yahoo! Shopping > Find Great Deals on Holiday Gifts at Yahoo! Shopping > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From htakada at ...626... Thu Dec 8 13:48:18 2005 From: htakada at ...626... (Hugo) Date: Thu, 8 Dec 2005 09:48:18 -0300 Subject: [Gambas-user] crystal report. In-Reply-To: <7259b5ae0512080435h4d1f1228l@...627...> References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> Message-ID: I believe Christian Faure (from Paraguay) has done some work , Christian are you reading this ? Hugo On 08/12/05, Daniel Campos wrote: > > Hi: > > This question comes from time to time to the list. Currently there's not > any native report designer in Gambas. However you can use external tools > like Kugar. You can communicate with Kugar sending data in XML format, that > it will manage in order to show it as a report or print it. > > I think Fabien was working on a report designer... or am I wrong? > > Regards, > > D. Campos > > 2005/12/8, Ronald Medina : > > > > is there a crystal report like in gambas? > > > > ------------------------------ > > Yahoo! Shopping > > Find Great Deals on Holiday Gifts at Yahoo! Shopping > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Thu Dec 8 23:27:50 2005 From: johnhedge at ...626... (john hedge) Date: Fri, 9 Dec 2005 09:27:50 +1100 Subject: [Gambas-user] Insert into multiple database columns from numerous textboxes In-Reply-To: <439805e4.cdf.0@...9...> References: <439805e4.cdf.0@...9...> Message-ID: <6e3a096b0512081427p2c22d1a7t985a86dfdf7b15f1@...627...> Thanks Charlie, I thought it would be something like that. If I might stretch a friendship a little further; is there a 'howto' on the Gambas DB Functions that a programmer newbie like me can follow? I've Googled and looked on the Gambas site but I couldn't find anything. Thanks again. John On Thu, 8 Dec 2005 11:07:32 00100, Charlie Reinl wrote: > > >Hi, > > > >DIM res AS Result > >DIM sql AS String > > > >IF textbox1.Text <> "" THEN > >sql = "insert into table (column1) values ('" & textbox1.Text & "')" > >res = conn.Exec(sql) > >END IF > > > >will move the data from one textbox into one column. > > > >How do you move data from a number of textboxes (all named tbXxxxx) into > >adjacent columns of the same table, please? > > > >TIA > > > >John > > > Salut, > > "insert into table (column1,column2,..) values ('" & textbox1.Text & "','" > & textbox1.Text & "','" &..& "')" > > But you can use also the Gambas DB Functions, which are provided for that. > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 ronald_gambas at ...43... Fri Dec 9 02:09:50 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Thu, 8 Dec 2005 17:09:50 -0800 (PST) Subject: [Gambas-user] crystal report. In-Reply-To: Message-ID: <20051209010950.24894.qmail@...1269...> if only i was a millionaire i will put money on this development :) Hugo wrote: I believe Christian Faure (from Paraguay) has done some work , Christian are you reading this ? Hugo On 08/12/05, Daniel Campos < dcamposf at ...626...> wrote: Hi: This question comes from time to time to the list. Currently there's not any native report designer in Gambas. However you can use external tools like Kugar. You can communicate with Kugar sending data in XML format, that it will manage in order to show it as a report or print it. I think Fabien was working on a report designer... or am I wrong? Regards, D. Campos 2005/12/8, Ronald Medina : is there a crystal report like in gambas? --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: From isy21 at ...1082... Fri Dec 9 09:17:09 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Fri, 9 Dec 2005 15:17:09 +0700 Subject: [Gambas-user] Continue to next line Message-ID: <200512091517.09677.isy21@...1082...> Hi, all How to break a long line to 2 line or more ? Sample: dim txtvar as string txtvar="select mychar1,mychar2 from sampledata " & _ "where fcount=1" i try this "& _" but it don't work, how i con do this or i can't do this ? i need this only if, i debugging then i can read easyly and sometime i have to use a long command string Thanks -- Regards, Ignatius Syofian From rohnny at ...1248... Fri Dec 9 14:14:45 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 09 Dec 2005 14:14:45 +0100 Subject: [Gambas-user] DDE. (Passing values) Message-ID: <43998345.50404@...1248...> How to talk to a sub application in gambas. With this I mean I have 1 program that should send name and adress to another gambas program. Is there another way of doing this rather than exec["app1","get- name"] and app1 use print "name:"&name print "lastname:" &lastname Then in app2 parse this when process are terminated.? Regards Rohnny From sourceforge-raindog2 at ...94... Fri Dec 9 16:57:58 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 9 Dec 2005 10:57:58 -0500 Subject: [Gambas-user] Continue to next line In-Reply-To: <200512091517.09677.isy21@...1082...> References: <200512091517.09677.isy21@...1082...> Message-ID: <200512091057.59771.sourceforge-raindog2@...94...> On Fri December 9 2005 03:17, Ignatius Syofian wrote: > txtvar="select mychar1,mychar2 from sampledata " & _ > "where fcount=1" > i try this "& _" but it don't work, how i con do this or i > can't do this ? Just drop the underscore.... the Gambas compiler will look on the next line if it sees an & and then a line break. It may screw up the line numbering in the debugger, if I remember right. > i need this only if, i debugging then i can read easyly and > sometime i have to use a long command string You can't break up long Gambas commands like that unless you use the "string" & (line break) "string" trick. There's no exact equivalent to the "_" preprocessor directive in VB. Rob From abidoo.too at ...11... Fri Dec 9 18:10:59 2005 From: abidoo.too at ...11... (Muriel Bodard) Date: Fri, 9 Dec 2005 18:10:59 +0100 Subject: [Gambas-user] BUG : Gambas Crash on Class property using Message-ID: <200512091810.59204.abidoo.too@...11...> PUBLIC SUB tv_Activate() DIM hClass AS Class DIM Sym AS String DIM o AS Object DIM sClass AS String o = hReport.Find(tv.Current.Key) Sym = Object.Class(o) hClass = Classes[sym] PRINT hClass.Name FOR EACH sym IN hClass.Symbols IF hClass[sym].Kind = class.Property THEN lv(sym, sym) ENDIF NEXT This crash on two part : Classes[sName] and hClasse[sSymbol] Maybe a problem at the _get section ? I can't report any stack result on this computer (i've not gdb) But i'm sure you can reproduce it ! Can you Look at this for the next release... i need it for my report designer... That use a component... and local classes. I can use the .list and .info file too... Nevertheless it's not a good trade image (i know gambas is free) to have class that not work ;-) Thank Fabien From gambas at ...1... Fri Dec 9 22:01:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 9 Dec 2005 22:01:15 +0100 Subject: [Gambas-user] BUG : Gambas Crash on Class property using In-Reply-To: <200512091810.59204.abidoo.too@...11...> References: <200512091810.59204.abidoo.too@...11...> Message-ID: <200512092201.15582.gambas@...1...> On Friday 09 December 2005 18:10, Muriel Bodard wrote: > PUBLIC SUB tv_Activate() > > DIM hClass AS Class > DIM Sym AS String > DIM o AS Object > DIM sClass AS String > > o = hReport.Find(tv.Current.Key) > Sym = Object.Class(o) > hClass = Classes[sym] > > PRINT hClass.Name > FOR EACH sym IN hClass.Symbols > IF hClass[sym].Kind = class.Property THEN > lv(sym, sym) > ENDIF > > NEXT > > > This crash on two part : > > Classes[sName] > and > hClasse[sSymbol] > > Maybe a problem at the _get section ? > > > I can't report any stack result on this computer (i've not gdb) > > But i'm sure you can reproduce it ! > > Can you Look at this for the next release... i need it for my report > designer... That use a component... and local classes. > > I can use the .list and .info file too... > > Nevertheless it's not a good trade image (i know gambas is free) to have > class that not work ;-) > > Thank > > Fabien > Which version of gambas do you use? -- Benoit Minisini From gambasfr at ...11... Fri Dec 9 23:07:16 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Fri, 9 Dec 2005 23:07:16 +0100 Subject: [Gambas-user] BUG : Gambas Crash on Class property using In-Reply-To: <200512092201.15582.gambas@...1...> References: <200512091810.59204.abidoo.too@...11...> <200512092201.15582.gambas@...1...> Message-ID: <200512092307.16417.gambasfr@...11...> Le Vendredi 9 D?cembre 2005 22:01, Benoit Minisini a ?crit?: > On Friday 09 December 2005 18:10, Muriel Bodard wrote: > > PUBLIC SUB tv_Activate() > > > > DIM hClass AS Class > > DIM Sym AS String > > DIM o AS Object > > DIM sClass AS String > > > > o = hReport.Find(tv.Current.Key) > > Sym = Object.Class(o) > > hClass = Classes[sym] > > > > PRINT hClass.Name > > FOR EACH sym IN hClass.Symbols > > IF hClass[sym].Kind = class.Property THEN > > lv(sym, sym) > > ENDIF > > > > NEXT > > > > > > This crash on two part : > > > > Classes[sName] > > and > > hClasse[sSymbol] > > > > Maybe a problem at the _get section ? > > > > > > I can't report any stack result on this computer (i've not gdb) > > > > But i'm sure you can reproduce it ! > > > > Can you Look at this for the next release... i need it for my report > > designer... That use a component... and local classes. > > > > I can use the .list and .info file too... > > > > Nevertheless it's not a good trade image (i know gambas is free) to have > > class that not work ;-) > > > > Thank > > > > Fabien > > Which version of gambas do you use? 1.9.22 I've not used the 1.0 since 1.9.1 was released... And i'm doing a report component in gb... and gambas 1 not support gb writted components ;-) Thank for your quick answer... Salutation, Fabien Bodard From gambasfr at ...11... Fri Dec 9 23:20:36 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Fri, 9 Dec 2005 23:20:36 +0100 Subject: [Gambas-user] crystal report. In-Reply-To: <20051209010950.24894.qmail@...1269...> References: <20051209010950.24894.qmail@...1269...> Message-ID: <200512092320.36571.gambasfr@...11...> Le Vendredi 9 D?cembre 2005 02:09, Ronald Medina a ?crit?: > if only i was a millionaire i will put money on this development :) > > Hugo wrote: I believe Christian Faure (from Paraguay) > has done some work , Christian are you reading this ? > > Hugo > > On 08/12/05, Daniel Campos < dcamposf at ...626...> wrote: Hi: > > This question comes from time to time to the list. Currently there's not > any native report designer in Gambas. However you can use external tools > like Kugar. You can communicate with Kugar sending data in XML format, that > it will manage in order to show it as a report or print it. > > I think Fabien was working on a report designer... or am I wrong? > > Regards, > > D. Campos Yes :) But i can just show a screenshot at this time... i've not implemented the Field widgets. I'm currently working on it... and i hope to finish the first usable version since 1 month. It's not a common report tool.. as it work like the gambas form designer with container properties. For the desining all work good... but now my problem is to found the good way to query the datas and make autofilled field and autosizable... I think a field need to be a special container... i don't know... Benoit... Or someone else... if you have ideas about that.... tell me please ... it's time. The report engine in a component so it can be used directly in an application. Regards, Fabien Bodard ps : For this time i join a screenshot and an exemple of report template file. -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot24.png Type: image/png Size: 189630 bytes Desc: not available URL: -------------- next part -------------- { report rep Margins = 300 arrange = 2 LineStyle = 3 ForeColor = &H0000FF& { hBox hb1 LineStyle = 1 ForeColor = &Hc7c7c7& FillColor = &HccccEE& FillStyle = 1 Height = 1000 Width = 200 Spacing = 100 Padding = 30 { Image im2 Path = gambas.png } { vBox vb Padding = 100 Spacing = 200 { Label lab Text = GAMBAS REPORT ENGINE Font = 27,Bold } { Label lb Text = A New Way to Create Reports Under Linux !!! ForeColor = &H0000FF& Font = 15 } } } { hBox EspaceBlanc LineStyle = 0 Height = 300 } { hBox hbn LineStyle = 1 Height = 300 Spacing = 0 FillColor = &He7e7e7& FillStyle = 1 { hBox 1 LineStyle = 1 Expand = 1 { Label l1 Text = Label 1 Expand = 1 Alignment = 68 } } { hBox 1 LineStyle = 1 Expand = 1 { Label l1 Text = Label 1 Expand = 1 Alignment = 68 } } { hBox 1 LineStyle = 1 Expand = 1 { Label l1 Text = Label 1 Expand = 1 Alignment = 68 } } { hBox 1 LineStyle = 1 Expand = 1 { Label l1 Text = Label 1 Expand = 1 Alignment = 68 } } } { hBox d Height = 2000 { hBox 1 LineStyle = 1 Expand = 1 } { hBox 1 LineStyle = 1 Expand = 1 } { hBox 1 LineStyle = 1 Expand = 1 } { hBox 1 LineStyle = 1 Expand = 1 } } } } From nando_f at ...951... Sat Dec 10 08:21:00 2005 From: nando_f at ...951... (nando) Date: Sat, 10 Dec 2005 02:21:00 -0500 Subject: [Gambas-user] TRY bug example Message-ID: <20051210064345.M7636@...951...> Benoit, This is causing me a bit of trouble..and narrowed it down. Example 1: ------------------------------------------------------------- PUBLIC SUB Form_Open() PRINT ERROR TRY RMDIR "/home/stupid" 'make sure stupid does not exist PRINT ERROR PRINT "HELLO: " & ERROR & " is the error" TRY RMDIR "/home/stupid" TRY PRINT "HELLO: " & ERROR & " is the error" END Output I get on Console: ------------------------------------------------------------- False True HELLO: T is the error <--- Error shown as T and not True HELLO: is the error <--- The T or F value for ERROR is missing Example 2: ------------------------------------------------------------- Also, include TRY on the first and third lines and the output gets more wierd... PUBLIC SUB Form_Open() TRY PRINT ERROR TRY RMDIR "/home/stupid" TRY PRINT ERROR 'Error should be true from previous line PRINT "HELLO: " & ERROR & " is the error" TRY RMDIR "/home/stupid" TRY PRINT "HELLO: " & ERROR & " is the error" END Output is... ------------------------------------------------------------ False False <---- I expected True ...see question 3 below. HELLO: is the error <--- What is the error? HELLO: is the error -------------------------------------------------------------------- Questions ?? (1) Why does ERROR print out as False or True but sometimes is T or F ?? (2) Why is ERROR blank sometimes ?? (3) Is printing ERROR within a TRY statement showing the previous ERROR ? I'm thinking TRY PRINT can never make ERROR TRUE so that PRINT shouldn't affect ERROR. (4) Is it mandatory to ERROR.CLEAR after every TRY ?? (5) or does TRY clear ERROR after the next statement ?? I'm thinking ERROR should always be T/F or always True/False but not mixed. I get better consistent results with STR$(ERROR) but I didn't think I needed to force conversion. Thanks in advance. -Fernando From gambas at ...1... Sat Dec 10 11:10:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Dec 2005 11:10:58 +0100 Subject: [Gambas-user] TRY bug example In-Reply-To: <20051210064345.M7636@...951...> References: <20051210064345.M7636@...951...> Message-ID: <200512101110.58550.gambas@...1...> On Saturday 10 December 2005 08:21, nando wrote: > Benoit, > > This is causing me a bit of trouble..and narrowed it down. > First, read carefully the documentation about Val(), Str$(), and CStr(). The last function *does not* use localisation settings. > > Example 1: > ------------------------------------------------------------- > PUBLIC SUB Form_Open() > > PRINT ERROR > TRY RMDIR "/home/stupid" 'make sure stupid does not exist > PRINT ERROR > PRINT "HELLO: " & ERROR & " is the error" > TRY RMDIR "/home/stupid" > TRY PRINT "HELLO: " & ERROR & " is the error" > > END > > > > Output I get on Console: > ------------------------------------------------------------- > False > True > HELLO: T is the error <--- Error shown as T and not True > HELLO: is the error <--- The T or F value for ERROR is missing > > > > Example 2: > ------------------------------------------------------------- > Also, include TRY on the first and third lines and the output > gets more wierd... > > PUBLIC SUB Form_Open() > > TRY PRINT ERROR > TRY RMDIR "/home/stupid" > TRY PRINT ERROR 'Error should be true from previous line > PRINT "HELLO: " & ERROR & " is the error" > TRY RMDIR "/home/stupid" > TRY PRINT "HELLO: " & ERROR & " is the error" > > END > > Output is... > ------------------------------------------------------------ > > False > False <---- I expected True ...see question 3 below. > HELLO: is the error <--- What is the error? > HELLO: is the error > > > -------------------------------------------------------------------- > Questions ?? > (1) Why does ERROR print out as False or True but sometimes is T or F ?? Because PRINT use Str$() to convert boolean values to strings, whereas the '&' operator use CStr(). > (2) Why is ERROR blank sometimes ?? Because CStr(False) returns NULL. > (3) Is printing ERROR within a TRY statement showing the previous ERROR ? > I'm thinking TRY PRINT can never make ERROR TRUE so that PRINT > shouldn't affect ERROR. TRY clears the internal error flag before executing its statement. > (4) Is it mandatory to ERROR.CLEAR after every TRY ?? Usallay, you use TRY and read the ERROR flag just after. So it is not mandatory, and moreover it is useless! > (5) or does TRY clear ERROR after the next statement ?? See (3). > > I'm thinking ERROR should always be T/F or always True/False but not mixed. Mixed ??? ERROR returns a boolean value, that's all. > I get better consistent results with STR$(ERROR) but I didn't think I > needed to force conversion. See (1), and read the documentation about Str$() and CStr(). > > Thanks in advance. > -Fernando > Regards, -- Benoit Minisini From nando_f at ...951... Sat Dec 10 12:54:20 2005 From: nando_f at ...951... (nando) Date: Sat, 10 Dec 2005 06:54:20 -0500 Subject: [Gambas-user] TRY bug example In-Reply-To: <200512101110.58550.gambas@...1...> References: <20051210064345.M7636@...951...> <200512101110.58550.gambas@...1...> Message-ID: <20051210114256.M88829@...951...> Thank you Benoit. Although I find it a bit inconsistent, it makes sense for the way it has been implemented. You have answered many questions. And I sincerely do thank you. It clears some of the fog. Perhaps do you think that CStr(False) should return F instead of NULL? Since PRINT "HELLO: " & ERROR & " is the error" shows T for TRUE then would F be a logical for False if using CSTR in the &. You are converting to a string. -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Sat, 10 Dec 2005 11:10:58 +0100 Subject: Re: [Gambas-user] TRY bug example > On Saturday 10 December 2005 08:21, nando wrote: > > Benoit, > > > > This is causing me a bit of trouble..and narrowed it down. > > > > First, read carefully the documentation about Val(), Str$(), and CStr() > . The last function *does not* use localisation settings. > > > > > Example 1: > > ------------------------------------------------------------- > > PUBLIC SUB Form_Open() > > > > PRINT ERROR > > TRY RMDIR "/home/stupid" 'make sure stupid does not exist > > PRINT ERROR > > PRINT "HELLO: " & ERROR & " is the error" > > TRY RMDIR "/home/stupid" > > TRY PRINT "HELLO: " & ERROR & " is the error" > > > > END > > > > > > > > Output I get on Console: > > ------------------------------------------------------------- > > False > > True > > HELLO: T is the error <--- Error shown as T and not True > > HELLO: is the error <--- The T or F value for ERROR is missing > > > > > > > > Example 2: > > ------------------------------------------------------------- > > Also, include TRY on the first and third lines and the output > > gets more wierd... > > > > PUBLIC SUB Form_Open() > > > > TRY PRINT ERROR > > TRY RMDIR "/home/stupid" > > TRY PRINT ERROR 'Error should be true from previous line > > PRINT "HELLO: " & ERROR & " is the error" > > TRY RMDIR "/home/stupid" > > TRY PRINT "HELLO: " & ERROR & " is the error" > > > > END > > > > Output is... > > ------------------------------------------------------------ > > > > False > > False <---- I expected True ...see question 3 below. > > HELLO: is the error <--- What is the error? > > HELLO: is the error > > > > > > -------------------------------------------------------------------- > > Questions ?? > > (1) Why does ERROR print out as False or True but sometimes is T or F ?? > > Because PRINT use Str$() to convert boolean values to strings, whereas > the '&' operator use CStr(). > > > (2) Why is ERROR blank sometimes ?? > > Because CStr(False) returns NULL. > > > (3) Is printing ERROR within a TRY statement showing the previous ERROR ? > > I'm thinking TRY PRINT can never make ERROR TRUE so that PRINT > > shouldn't affect ERROR. > > TRY clears the internal error flag before executing its statement. > > > (4) Is it mandatory to ERROR.CLEAR after every TRY ?? > > Usallay, you use TRY and read the ERROR flag just after. So it is not > mandatory, and moreover it is useless! > > > (5) or does TRY clear ERROR after the next statement ?? > > See (3). > > > > > I'm thinking ERROR should always be T/F or always True/False but not mixed. > > Mixed ??? ERROR returns a boolean value, that's all. > > > I get better consistent results with STR$(ERROR) but I didn't think I > > needed to force conversion. > > See (1), and read the documentation about Str$() and CStr(). > > > > > Thanks in advance. > > -Fernando > > > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sat Dec 10 14:03:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Dec 2005 14:03:29 +0100 Subject: [Gambas-user] TRY bug example In-Reply-To: <20051210114256.M88829@...951...> References: <20051210064345.M7636@...951...> <200512101110.58550.gambas@...1...> <20051210114256.M88829@...951...> Message-ID: <200512101403.29948.gambas@...1...> On Saturday 10 December 2005 12:54, nando wrote: > Thank you Benoit. > Although I find it a bit inconsistent, > it makes sense for the way it has been implemented. > You have answered many questions. > And I sincerely do thank you. > It clears some of the fog. > > Perhaps do you think that CStr(False) should return F instead of NULL? > Since PRINT "HELLO: " & ERROR & " is the error" shows T for TRUE > then would F be a logical for False if using CSTR in the &. > You are converting to a string. > > -Fernando > Cxxx() functions are conversion functions, and CStr() does not return things that are necessarily readable by the human. CStr(FALSE) return NULL because CBool(aString) return FALSE only if the string is NULL. If CStr(FALSE) returns 'F', then CBool(CStr(FALSE)) = TRUE, which is not coherent! Try to think about all possible conversions between all possible datatypes, and you will see that actually Gambas conversion functions are coherent :-) Regards, -- Benoit Minisini From gambasfr at ...11... Sat Dec 10 16:41:02 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sat, 10 Dec 2005 16:41:02 +0100 Subject: [Gambas-user] TRY bug example In-Reply-To: <20051210114256.M88829@...951...> References: <20051210064345.M7636@...951...> <200512101110.58550.gambas@...1...> <20051210114256.M88829@...951...> Message-ID: <200512101641.02781.gambasfr@...11...> Le Samedi 10 D?cembre 2005 12:54, nando a ?crit?: > Thank you Benoit. > Although I find it a bit inconsistent, > it makes sense for the way it has been implemented. > You have answered many questions. > And I sincerely do thank you. > It clears some of the fog. > > Perhaps do you think that CStr(False) should return F instead of NULL? > Since PRINT "HELLO: " & ERROR & " is the error" shows T for TRUE > then would F be a logical for False if using CSTR in the &. > You are converting to a string. > > -Fernando > To print your error message you can use subst that use Str$ i think : PRINT subst("HELLO: &1 is the error", ERROR) Nevertheless ERROR is not made to be use by this way : TRY i = 1/0 IF ERROR THEN PRINT Error.Text ENDIF Error can be used in the CATCH part of the procedure too Regards, Fabien Bodard From rospolosco at ...152... Sat Dec 10 20:44:32 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 10 Dec 2005 20:44:32 +0100 Subject: [Gambas-user] little problem here... Message-ID: <200512102044.32583.rospolosco@...152...> Hi all. Hi Benoit. I'm porting a gambas1 project to gambas2 and I noticed a strange thing. In Gambas1 the command: PRINT 1 + 1 & " = 1 + 1" returns 2 = 1 + 1 In Gambas2 the same instruction returns 2 The second part of the string is missing... But if I put "1 + 1" beetwen round brackets it works fine. PRINT (1 + 1) & " = 1 + 1" returns 2 = 1 + 1 Please, I would like to know whether this is a new rule of Gambas2, (because I've a plenty of these strings to fix...) or a temporary bug (some kind of relation to new C-style assignment operators?). Regards, Stefano Palmeri P.S. My Gambas2 version is 1.9.20 From gambas at ...1... Sun Dec 11 01:17:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Dec 2005 01:17:54 +0100 Subject: [Gambas-user] little problem here... In-Reply-To: <200512102044.32583.rospolosco@...152...> References: <200512102044.32583.rospolosco@...152...> Message-ID: <200512110117.54989.gambas@...1...> On Saturday 10 December 2005 20:44, Stefano Palmeri wrote: > Hi all. Hi Benoit. > > I'm porting a gambas1 project to gambas2 and I noticed a strange thing. > > In Gambas1 the command: > > PRINT 1 + 1 & " = 1 + 1" > > returns > > 2 = 1 + 1 > > In Gambas2 the same instruction returns > > 2 > > The second part of the string is missing... > > But if I put "1 + 1" beetwen round brackets it works fine. > > PRINT (1 + 1) & " = 1 + 1" returns > > 2 = 1 + 1 > > Please, I would like to know whether this is a new rule > of Gambas2, (because I've a plenty of these strings to fix...) > or a temporary bug (some kind of relation to new C-style assignment > operators?). > > Regards, > > Stefano Palmeri > > P.S. My Gambas2 version is 1.9.20 > There were changes in operators priority in the development version. Now '&' is always applied before '+', whereas it was ambiguous in the stable version. So you have to use braces like you did when porting your code. Sorry for the inconvenience! Anyway, it was a very bad idea to write something like '1 + 1 & " = 1 + 1"'. Regards, -- Benoit Minisini From stefanopalmeri at ...152... Sun Dec 11 01:35:07 2005 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Sun, 11 Dec 2005 01:35:07 +0100 Subject: [Gambas-user] little problem here... In-Reply-To: <200512110117.54989.gambas@...1...> References: <200512102044.32583.rospolosco@...152...> <200512110117.54989.gambas@...1...> Message-ID: <200512110135.07411.stefanopalmeri@...152...> Alle 01:17, domenica 11 dicembre 2005, Benoit Minisini ha scritto: > Anyway, it was a very bad idea to write something like '1 + 1 & " = 1 + 1"'. > > Regards, > > -- > Benoit Minisini > Thanks for fast answer. Yes, that is a bad piece of code... :-) but I probably wrote it two days after I downloaded Gambas. It was about six months ago and the last time I wrote some Basic code before Gambas was in the age of Commodore... So, I'm a learning student... Regards, Stefano Palmeri From sourceforge-raindog2 at ...94... Sun Dec 11 01:36:39 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 10 Dec 2005 19:36:39 -0500 Subject: [Gambas-user] little problem here... In-Reply-To: <200512110117.54989.gambas@...1...> References: <200512102044.32583.rospolosco@...152...> <200512110117.54989.gambas@...1...> Message-ID: <200512101936.40671.sourceforge-raindog2@...94...> On Sat December 10 2005 19:17, Benoit Minisini wrote: > There were changes in operators priority in the development > version. Now '&' is always applied before '+', whereas it was > ambiguous in the stable version. I wonder if it should be the other way around. I think it's much more common to want to include a number in a string concatenation than it is to include a string in a numeric calculation, no? Rob From gambas at ...1... Sun Dec 11 01:50:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Dec 2005 01:50:59 +0100 Subject: [Gambas-user] little problem here... In-Reply-To: <200512101936.40671.sourceforge-raindog2@...94...> References: <200512102044.32583.rospolosco@...152...> <200512110117.54989.gambas@...1...> <200512101936.40671.sourceforge-raindog2@...94...> Message-ID: <200512110150.59810.gambas@...1...> On Sunday 11 December 2005 01:36, Rob Kudla wrote: > On Sat December 10 2005 19:17, Benoit Minisini wrote: > > There were changes in operators priority in the development > > version. Now '&' is always applied before '+', whereas it was > > ambiguous in the stable version. > > I wonder if it should be the other way around. I think it's much > more common to want to include a number in a string > concatenation than it is to include a string in a numeric > calculation, no? > > Rob > That's right... It should be the contrary. But why did I do that ? :-o -- Benoit Minisini From christian.faurebouvard at ...357... Mon Dec 12 02:10:07 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Sun, 11 Dec 2005 22:10:07 -0300 Subject: [Gambas-user] crystal report. In-Reply-To: References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> Message-ID: <200512112210.07602.christian.faurebouvard@...357...> El Jueves 08 Diciembre 2005 09:48, Hugo escribi?: > I believe Christian Faure (from Paraguay) has done some work , Christian > are you reading this ? > > Hugo > > On 08/12/05, Daniel Campos wrote: > > Hi: > > > > This question comes from time to time to the list. Currently there's not > > any native report designer in Gambas. However you can use external tools > > like Kugar. You can communicate with Kugar sending data in XML format, > > that it will manage in order to show it as a report or print it. > > > > I think Fabien was working on a report designer... or am I wrong? > > > > Regards, > > > > D. Campos > > > > 2005/12/8, Ronald Medina : > > > is there a crystal report like in gambas? > > > > > > ------------------------------ > > > Yahoo! Shopping > > > Find Great Deals on Holiday Gifts at Yahoo! > > > Shopping > >g.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsaw > > >Nob2xpZGF5LTA1+%0A> Yes! i am reading this! :-) and expect the Fabien version (impaciently :-) ), is necesary to have more than one tool for reports? i am sure that Fabien version is better. But anyway, I expect the new Super Gambas 2 version to be stable, to rewrite it, i've rewrited the viewer for version 2 and is very slow :-(, (debug options enabled?) and found problems to make a gambas component, Also, i need solve other problems: calculated fields: sumary fields, totals by page, and documentation, and user firendly interface, and ...much more. So, Anyone have time to help me? Regards. -- begin spanish section ------------------------------------------ Hugo, es un placer encontrarte en el foro de Gambas!!! Podr?amos organizar un grupo de Usuarios de Gambas en Paraguay? Est?s en el foro en espa?ol? -- end spanish section -------------------------------------------- From christian.faurebouvard at ...357... Mon Dec 12 02:15:30 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Sun, 11 Dec 2005 22:15:30 -0300 Subject: [Gambas-user] crystal report. In-Reply-To: <20051209010950.24894.qmail@...1269...> References: <20051209010950.24894.qmail@...1269...> Message-ID: <200512112215.30944.christian.faurebouvard@...357...> El Jueves 08 Diciembre 2005 22:09, Ronald Medina escribi?: > if only i was a millionaire i will put money on this development :) > Very good intention! Then, if you can, give some part of your time to help gambas development. Help is welcome in any project using gambas, including report engine. Regards, Christian From rporticio at ...43... Mon Dec 12 04:27:51 2005 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 11 Dec 2005 19:27:51 -0800 (PST) Subject: [Gambas-user] Basic steps Message-ID: <20051212032751.30805.qmail@...1263...> dear friends thank you for your ideas. sincerely, the more i do not know about the concepts you've proposed. the more i know the more i do not know. but it tickles my imagination to learn more. in your expert opinion what are the basics steps in creating a programming language like gambas. that means creating a programming language from scratch. thanks for your expert advise. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ronald_gambas at ...43... Mon Dec 12 06:16:32 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Sun, 11 Dec 2005 21:16:32 -0800 (PST) Subject: [Gambas-user] crystal report. In-Reply-To: <200512112215.30944.christian.faurebouvard@...357...> Message-ID: <20051212051632.4892.qmail@...1271...> Now that is the very right thing to do :) Christian Faure wrote: El Jueves 08 Diciembre 2005 22:09, Ronald Medina escribi?: > if only i was a millionaire i will put money on this development :) > Very good intention! Then, if you can, give some part of your time to help gambas development. Help is welcome in any project using gambas, including report engine. Regards, Christian ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Mon Dec 12 06:38:55 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 12 Dec 2005 00:38:55 -0500 Subject: [Gambas-user] Basic steps In-Reply-To: <20051212032751.30805.qmail@...1263...> References: <20051212032751.30805.qmail@...1263...> Message-ID: <200512120038.57293.sourceforge-raindog2@...94...> On Sun December 11 2005 22:27, Ramon Orticio wrote: > but it tickles my imagination to learn more. in your > expert opinion what are the basics steps in creating a > programming language like gambas. that means creating > a programming language from scratch. For the technical details on how Benoit went about creating the Gambas compiler and interpreter and from thence the IDE, you should probably ask on the gambas-devel list. In general, though, I'd think you would first decide what kind of architecture you're interested in (pure interpreter, P-code interpreter, virtual machine, native code compiler, etc.) and then design your language's syntax/grammar and the means for extending your language, and then implement the compiler and/or interpreter, most often in C or C++. I would like to suggest, though, as gently as possible, that if you have trouble understanding concepts like mount points and the complexities of interfacing with different API's (such as that of Openoffice), it may not yet be time to start writing your own language. You may want to buy a book on computer languages, like Friedman's "Essentials of Programming Languages", and if you don't find it to be way over your head, maybe try to implement one of the conceptually simpler languages like Forth or Lisp before trying to tackle a higher-level language like BASIC. Rob From gambas at ...1229... Mon Dec 12 08:30:30 2005 From: gambas at ...1229... (Fabricio Santos) Date: Mon, 12 Dec 2005 08:30:30 +0100 Subject: [Gambas-user] little problem here... References: <200512102044.32583.rospolosco@...152...> <200512110117.54989.gambas@...1...> <200512101936.40671.sourceforge-raindog2@...94...> <200512110150.59810.gambas@...1...> Message-ID: <001f01c5feed$f301c190$0201a8c0@...1243...> >> I wonder if it should be the other way around. I think it's much >> more common to want to include a number in a string >> concatenation than it is to include a string in a numeric >> calculation, no? >> >> Rob >> > > That's right... It should be the contrary. > > But why did I do that ? :-o > Because then the & operator would have two different precedences depending on the type of the immediate operands... And that would be ambiguous. Fabr?cio Santos From dcamposf at ...626... Mon Dec 12 12:31:15 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 12 Dec 2005 12:31:15 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <200512061014.00276.faasse@...1252...> References: <20051129042206.D9B3612660@...773...> <200511291005.53255.faasse@...1252...> <7259b5ae0512021337j81f485bw@...627...> <200512061014.00276.faasse@...1252...> Message-ID: <7259b5ae0512120331q581a3698g@...627...> Ok, finally I found time to add the patch. I did not found any reason to limit the use of any of the two options, so I've added the patch directly to the CUdpSocket.c file. Beno?t, could you replace the existing one in the gb.net component? In the future I will try to add more options but I'm quite busy now... May be p.r. Faassewould like to do it? :-) Regards, D. Campos 2005/12/6, p.r. faasse : > > On Friday 02 December 2005 22:37, Daniel Campos wrote: > > Hi: > > > > Could you send me your patch? I will add it! > > > > thanks, > > > > D. Campos > > Hold on to your hat: here it comes: I've limited the code to the > dgram_start routine of CUdpSocket.c, to not > bother you with all sections of code that i have *not* modified. My > modifications are between the and comment > lines. Note that i have misused the error-code: error code 10 is probably > not the best one possible, but i have not found anything > better in the list of socket error codes. > > int dgram_start(CUDPSOCKET *mythis,int myport) > { > int NoBlock=1; > // > const int on = 1; > // > struct sockaddr_in Srv; > > if (mythis->iStatus > 0) return 1; > if ( (myport <0) || (myport>65535) ) return 8; > > if ( (mythis->Socket = socket(AF_INET,SOCK_DGRAM,0))<1 ) > { > mythis->iStatus=-2; > GB.Ref(mythis); > GB.Post(CUdpSocket_post_error,(long)mythis); > return 2; > } > > // > // > // > // enable broadcasts, reuseaddress > // > if ( setsockopt(mythis->Socket, SOL_SOCKET, SO_REUSEADDR, &on, > sizeof(on)) ) { > // > close (mythis->Socket); > mythis->iStatus=-10; > GB.Ref(mythis); > GB.Post(CUdpSocket_post_error,(long)mythis); > return 10; > // > } > // > if ( setsockopt(mythis->Socket, SOL_SOCKET, SO_BROADCAST, &on, > sizeof(on)) ) { > // > close (mythis->Socket); > mythis->iStatus=-10; > GB.Ref(mythis); > GB.Post(CUdpSocket_post_error,(long)mythis); > return 10; > // > } > // > // > // > > > Srv.sin_family=AF_INET; > Srv.sin_addr.s_addr=htonl(INADDR_ANY); > Srv.sin_port=htons(myport); > bzero(&(Srv.sin_zero),8); > > if ( bind (mythis->Socket,(struct sockaddr*)&Srv,sizeof(struct > sockaddr)) < 0) > { > close (mythis->Socket); > mythis->iStatus=-10; > GB.Ref(mythis); > GB.Post(CUdpSocket_post_error,(long)mythis); > return 10; > } > > mythis->iStatus=1; > ioctl(mythis->Socket,FIONBIO,&NoBlock); > GB.Watch (mythis->Socket,GB_WATCH_WRITE,(void > *)CUdpSocket_CallBack,(long)mythis); > mythis->stream.desc=&UdpSocketStream; > mythis->stream._free[0]=(long)mythis; > return 0; > } > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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: -------------- next part -------------- A non-text attachment was scrubbed... Name: CUdpSocket.c Type: text/x-csrc Size: 12293 bytes Desc: not available URL: From liutauras at ...1236... Mon Dec 12 12:31:18 2005 From: liutauras at ...1236... (Liutauras Adomaitis) Date: Mon, 12 Dec 2005 13:31:18 +0200 Subject: [Gambas-user] Dealing with "enter" key In-Reply-To: <20051212032751.30805.qmail@...1263...> References: <20051212032751.30805.qmail@...1263...> Message-ID: <200512121331.18201.liutauras@...1236...> Hello, I want to program a text box, which will help me to jump to specific row in the columnview control. The idea is to make such a textbox, where after entering a row number and presing "ENTER" key focus will move to columnview control and jump to the specific row, which item key value equal to textbox value. How to do that? Liutauras Adomaitis From eilert-sprachen at ...221... Mon Dec 12 13:19:40 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 12 Dec 2005 13:19:40 +0100 Subject: [Gambas-user] Dealing with "enter" key In-Reply-To: <200512121331.18201.liutauras@...1236...> References: <20051212032751.30805.qmail@...1263...> <200512121331.18201.liutauras@...1236...> Message-ID: <439D6ADC.4020202@...221...> Liutauras Adomaitis schrieb: >Hello, > >I want to program a text box, which will help me to jump to specific row in >the columnview control. The idea is to make such a textbox, where after >entering a row number and presing "ENTER" key focus will move to columnview >control and jump to the specific row, which item key value equal to textbox >value. > > I would use TextBox_KeyPress and within it select case Key.Code case Key.Enter 'set Columnview here end select Do not forget that Enter and Return are two different keys. I don't know the way how to set Columnview to a specific item, but there is .Find which might look for the item wanted and .ColumnViewItem.Selected which seems to do what you intend. Maybe you will have to use .EnsureVisible... Rolf From faasse at ...1252... Mon Dec 12 13:38:19 2005 From: faasse at ...1252... (p.r. faasse) Date: Mon, 12 Dec 2005 13:38:19 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <7259b5ae0512120331q581a3698g@...627...> References: <20051129042206.D9B3612660@...773...> <200512061014.00276.faasse@...1252...> <7259b5ae0512120331q581a3698g@...627...> Message-ID: <200512121338.20010.faasse@...1252...> On Monday 12 December 2005 12:31, Daniel Campos wrote: > Ok, finally I found time to add the patch. I did not found any reason to > limit the use of any of the two options, so I've added the patch directly > to the CUdpSocket.c file. Beno?t, could you replace the existing one in the > gb.net component? In the future I will try to add more options but I'm quite > busy now... May be p.r. Faassewould like to do it? :-) > > Regards, > > D. Campos > At the moment, i'm more or less learning to program in Gambas. I do have ideas w.r.t. making/changing Gambas components (Posix IPC is one i'm missing at the moment), but i do not grade my skills in that area 'up to par' at the moment. Glad you found the socket options ones relevant, kind regards, Peter Faasse From dcamposf at ...626... Mon Dec 12 16:22:54 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 12 Dec 2005 16:22:54 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <200512121338.20010.faasse@...1252...> References: <20051129042206.D9B3612660@...773...> <200512061014.00276.faasse@...1252...> <7259b5ae0512120331q581a3698g@...627...> <200512121338.20010.faasse@...1252...> Message-ID: <7259b5ae0512120722t808ee3cy@...627...> Finally, I will change more things (hopefully tomorrow I will have the patch): The "id" and "handle" properties will provive access to the socket descriptor in both Socket and UdpSocket. And when a Socket or UdpSocket gets the socket descriptor calling "socket()", these objects will raise a "Socket" event, prior to the connection process. That way any programmer interested in low-level features will be able to use the setsockopt() and ioctl() functions using "API calls" prior to the connect() or bind() call, calling them in the event, or after that, in any point of the code just using the "id" value. Regards, D. Campos 2005/12/12, p.r. faasse : > > On Monday 12 December 2005 12:31, Daniel Campos wrote: > > Ok, finally I found time to add the patch. I did not found any reason to > > limit the use of any of the two options, so I've added the patch > directly > > to the CUdpSocket.c file. Beno?t, could you replace the existing one in > the > > gb.net component? In the future I will try to add more options but I'm > quite > > busy now... May be p.r. Faassewould like to do it? :-) > > > > Regards, > > > > D. Campos > > > > At the moment, i'm more or less learning to program in Gambas. I do have > ideas > w.r.t. making/changing Gambas components (Posix IPC is one i'm missing at > the > moment), but i do not grade my skills in that area 'up to par' at the > moment. > > Glad you found the socket options ones relevant, kind regards, > > Peter Faasse > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick > _______________________________________________ > 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 htakada at ...626... Mon Dec 12 18:52:29 2005 From: htakada at ...626... (Hugo) Date: Mon, 12 Dec 2005 14:52:29 -0300 Subject: [Gambas-user] crystal report. In-Reply-To: <200512112210.07602.christian.faurebouvard@...357...> References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> <200512112210.07602.christian.faurebouvard@...357...> Message-ID: Hola Christian , por supuesto que podemos organizar un grupo de usuarios, actualmente estoy trabajando en un proyecto con Gambas con dos personas mas, es cuesti?n de fijar una fecha para compartir una cerveza y discutir el tema , jeje, un abrazo Hugo > -- begin spanish section ------------------------------------------ > > Hugo, es un placer encontrarte en el foro de Gambas!!! > Podr?amos organizar un grupo de Usuarios de Gambas en Paraguay? > Est?s en el foro en espa?ol? > > -- end spanish section -------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From htakada at ...626... Mon Dec 12 18:55:10 2005 From: htakada at ...626... (Hugo) Date: Mon, 12 Dec 2005 14:55:10 -0300 Subject: [Gambas-user] Fwd: how to show which column is currently selected in a tableview control In-Reply-To: References: Message-ID: sorry if it's a repost, I believe this didnt get to the user list Subject: how to show which column is currently selected in a tableview control To: gambas-user at lists.sourceforge.net Hi , is there a way to do it programatically ? thanks Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Dec 12 19:04:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Dec 2005 19:04:45 +0100 Subject: [Gambas-user] Fwd: how to show which column is currently selected in a tableview control In-Reply-To: References: Message-ID: <200512121904.45323.gambas@...1...> On Monday 12 December 2005 18:55, Hugo wrote: > sorry if it's a repost, I believe this didnt get to the user list > > Subject: how to show which column is currently selected in a tableview > control > To: gambas-user at lists.sourceforge.net > > Hi , is there a way to do it programatically ? > > thanks > > Hugo Sorry, but there is no selected column at the moment in the tableview, only selected lines! But you can simulate it by using the ColumnClick event, storing yourself the state of the column, drawing cells inside a selected column with the selected color background, and a lot of elbow grease. :-) Regards, -- Benoit Minisini From jfabiani at ...1109... Mon Dec 12 19:12:26 2005 From: jfabiani at ...1109... (johnf) Date: Mon, 12 Dec 2005 10:12:26 -0800 Subject: [Gambas-user] two ?'s openoffice and archives Message-ID: <200512121012.26636.jfabiani@...1109...> Hi, Does anyone have an example of using openoffice from gambas? Is there an archive somewhere of this list? John From htakada at ...626... Mon Dec 12 20:09:09 2005 From: htakada at ...626... (Hugo) Date: Mon, 12 Dec 2005 16:09:09 -0300 Subject: [Gambas-user] Fwd: how to show which column is currently selected in a tableview control In-Reply-To: <200512121904.45323.gambas@...1...> References: <200512121904.45323.gambas@...1...> Message-ID: Thanks Benoit, I'll give it a try, I just need to change the color of the column heading, that's enough for me , I'll see what I can do, by the way , can you give me any hints where to begin looking at ? thanks again Hugo On 12/12/05, Benoit Minisini wrote: > > On Monday 12 December 2005 18:55, Hugo wrote: > > sorry if it's a repost, I believe this didnt get to the user list > > > > Subject: how to show which column is currently selected in a tableview > > control > > To: gambas-user at lists.sourceforge.net > > > > Hi , is there a way to do it programatically ? > > > > thanks > > > > Hugo > > Sorry, but there is no selected column at the moment in the tableview, > only > selected lines! > > But you can simulate it by using the ColumnClick event, storing yourself > the > state of the column, drawing cells inside a selected column with the > selected > color background, and a lot of elbow grease. :-) > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambasfr at ...11... Mon Dec 12 22:36:51 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Mon, 12 Dec 2005 22:36:51 +0100 Subject: [Gambas-user] crystal report. In-Reply-To: <200512112210.07602.christian.faurebouvard@...357...> References: <20051208113215.10646.qmail@...1268...> <200512112210.07602.christian.faurebouvard@...357...> Message-ID: <200512122236.51460.gambasfr@...11...> Le Lundi 12 D?cembre 2005 02:10, Christian Faure a ?crit?: > El Jueves 08 Diciembre 2005 09:48, Hugo escribi??: > > I believe Christian Faure (from Paraguay) has done some work , Christian > > are you reading this ? > > > > Hugo > > > > On 08/12/05, Daniel Campos wrote: > > > Hi: > > > > > > This question comes from time to time to the list. Currently there's > > > not any native report designer in Gambas. However you can use external > > > tools like Kugar. You can communicate with Kugar sending data in XML > > > format, that it will manage in order to show it as a report or print > > > it. > > > > > > I think Fabien was working on a report designer... or am I wrong? > > > > > > Regards, > > > > > > D. Campos > > > > > > 2005/12/8, Ronald Medina : > > > > is there a crystal report like in gambas? > > > > > > > > ------------------------------ > > > > Yahoo! Shopping > > > > Find Great Deals on Holiday Gifts at Yahoo! > > > > Shopping > > >in > > > > g.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHN > > > >saw Nob2xpZGF5LTA1+%0A> > > Yes! > i am reading this! :-) > and expect the Fabien version (impaciently :-) ), > is necesary to have more than one tool for reports? > i am sure that Fabien version is better. > But anyway, > I expect the new Super Gambas 2 version to be stable, > to rewrite it, > i've rewrited the viewer for version 2 and is very slow :-(, > (debug options enabled?) > and found problems to make a gambas component, > Also, i need solve other problems: > calculated fields: sumary fields, totals by page, > and documentation, and user firendly interface, and ...much more. > > So, > Anyone have time to help me? > > Regards. Yes me Christian :) It will be wonderfull to merge the both project in one real project... In fact i work on is based on Benoit's ideas about reports... But before i need to add some feature on my enginer... like fields and resolve the page calculation problems... regards, Fabien Bodard From rporticio at ...43... Tue Dec 13 09:50:18 2005 From: rporticio at ...43... (Ramon Orticio) Date: Tue, 13 Dec 2005 00:50:18 -0800 (PST) Subject: [Gambas-user] basic advise Message-ID: <20051213085018.83230.qmail@...1021...> rob, thanks for your reply and for your patience to neophytes like me. i'll take note of your advise. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rporticio at ...43... Tue Dec 13 09:50:55 2005 From: rporticio at ...43... (Ramon Orticio) Date: Tue, 13 Dec 2005 00:50:55 -0800 (PST) Subject: [Gambas-user] basic suggestion Message-ID: <20051213085055.53871.qmail@...1034...> rob, thanks for your reply and for your patience to neophytes like me. i'll take note of your suggestion. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From liutauras at ...1236... Tue Dec 13 11:42:56 2005 From: liutauras at ...1236... (Liutauras Adomaitis) Date: Tue, 13 Dec 2005 12:42:56 +0200 Subject: [Gambas-user] Fwd: how to show which column is currently selected in a tableview control In-Reply-To: References: <200512121904.45323.gambas@...1...> Message-ID: <200512131242.56372.liutauras@...1236...> On Monday 12 December 2005 21:09, Hugo wrote: > Thanks Benoit, I'll give it a try, I just need to change the color of the > column heading, that's enough for me , I'll see what I can do, by the way , > can you give me any hints where to begin looking at ? I'm also interested in any solution how to select column or row, how to show selected column or row in most easy and noticeable way for user. Liutauras Adomaitis From dcamposf at ...626... Tue Dec 13 13:30:34 2005 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 13 Dec 2005 13:30:34 +0100 Subject: [Gambas-user] gb.net updated Message-ID: <7259b5ae0512130430u3409acaeo@...627...> Hi: New version of gb.net component. It adds an "id" or "handle" property to the ServerSocket, Socket and UdpSocket classes which gives access to internal socket descriptor. When an object of any of these classes receive a socket from the system, using the socket() call, and prior to connect(), bind(), or listen() calls, it generates a "Socket" event, so the programmer can use setsockopt() or ioctl() in that event to add any exotic option prior to the connection process, using external functions from glibc. Here's the version: http://gambas.gnulinex.org/net/gb.net.051213.tar.bz2 Benoit, could you add this version for the next developement release? Regards, D. Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.faurebouvard at ...357... Tue Dec 13 14:27:11 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Tue, 13 Dec 2005 10:27:11 -0300 Subject: [Gambas-user] gambas report. In-Reply-To: <200512122236.51460.gambasfr@...11...> References: <20051208113215.10646.qmail@...1268...> <200512112210.07602.christian.faurebouvard@...357...> <200512122236.51460.gambasfr@...11...> Message-ID: <200512131027.11457.christian.faurebouvard@...357...> El Lunes 12 Diciembre 2005 18:36, Fabien Bodard escribi?: > > Yes me Christian :) Thanks you Fabien :-) > It will be wonderfull to merge the both project in one real project... Ok, How? any idea? Giving a list of features and inconvenients of both projects to select what features are necesary and rewriting part of project if necesary? > > In fact i work on is based on Benoit's ideas about reports... In Benoit aproach, a report is a special form? Crystal an others report engines, are based on "sections", based on data grouping, in view time, each section are repeated many times with each record. How implements "sections" on your aproach? You have a special control to divide a form in sections? or no sections? In my aproach, design time: first define the dataset (one or many sql select nested), for each dataset, provide a header and sumary "sections" for last nested level, provide a detail section and add 4 special sections: report header,page header, page foother, report foother. controls can be placed in any section. report is stored as xml file ( Thanks Daniel ) view time: report is loaded from xml file using xslt xslt translate xml file to macro-language viewer interprets macro-language prompt for sql param, execute sql's create instance of datasections create page headers and foothers create thumbs, and show Observations: macro-language: sequence of call to API functions, ex: report.create.section(...) macro-language is intended for implementation of "wizzard's" and for customized styles and/or user defined actions. Each action done in designer is translated in macro-language and executed So designer can be extended by user. Problems: many bugs, sure, Designer work only on Gambas 1. Source code "strange" (or bad?) After design a report, memory free not same at begin. After view a report, memory free not same at begin. Calculated fields not implemented, workaround: do all computing in database using complex sql select, and only work if your database support it. User can give incoherent information and can result in crash. Very slow... :-( Huge memory usage, .. etc. > > But before i need to add some feature on my enginer... like fields and > resolve the page calculation problems... > > regards, > Fabien Bodard > You can read spanish? I don't write french :-( , but i read french :-) Regards, Christian Faure From SpamOK at ...1273... Tue Dec 13 14:51:00 2005 From: SpamOK at ...1273... (Ulf) Date: Tue, 13 Dec 2005 21:51:00 +0800 Subject: [Gambas-user] Bug in IconView Message-ID: <200512132151.00102.SpamOK@...1273...> Hello All, it looks like I have discuovered a small issue with the Iconview. Gambas Ver 1.9.2. Qt, Suse 10.0. It appears that the active area for events of the Iconview Object extends into the Scrollbar Area. So if you double click on the vertical scroll bar or the up/down arrows you will actually raise the event of double click for the active item inside. Basically the Iconview.ClientW property does not change when a scrollbar is added. I created a small test program to illustrate the issue. Any suggestions? Bug or stupid user? Best regards Ulf -------------- next part -------------- A non-text attachment was scrubbed... Name: test1-0.0.1.tar.tar.gz Type: application/x-tgz Size: 644 bytes Desc: not available URL: From gambas at ...1... Tue Dec 13 15:16:09 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Dec 2005 15:16:09 +0100 Subject: [Gambas-user] Bug in IconView In-Reply-To: <200512132151.00102.SpamOK@...1273...> References: <200512132151.00102.SpamOK@...1273...> Message-ID: <200512131516.09656.gambas@...1...> On Tuesday 13 December 2005 14:51, Ulf wrote: > Hello All, > > it looks like I have discuovered a small issue with the Iconview. > > Gambas Ver 1.9.2. Qt, Suse 10.0. > > It appears that the active area for events of the Iconview Object extends > into the Scrollbar Area. So if you double click on the vertical scroll bar > or the up/down arrows you will actually raise the event of double click for > the active item inside. > > Basically the Iconview.ClientW property does not change when a scrollbar is > added. > > I created a small test program to illustrate the issue. > > Any suggestions? Bug or stupid user? > > Best regards Ulf This is not a bug, this is by design :-) *Never* use double-click event to detect a double click on an item of any control. Use the Activate event instead. But the IconView.ClientW should change when a scrollbar is displayed. I will try to fix that. Regards, -- Benoit Minisini From framedownunder at ...626... Tue Dec 13 15:23:12 2005 From: framedownunder at ...626... (frame down under) Date: Tue, 13 Dec 2005 15:23:12 +0100 Subject: [Gambas-user] Bug in IconView In-Reply-To: <200512131516.09656.gambas@...1...> References: <200512132151.00102.SpamOK@...1273...> <200512131516.09656.gambas@...1...> Message-ID: <82b5035a0512130623u441a9da2x@...627...> Hi Lists, I've noiced this behaviour in other conrols too. My workaround was to check for the .selected property. I am a bit confused as why never to use the dubbleclick event .... why is it there if we are not supposed to use it ? Thanks Frame On 13/12/05, Benoit Minisini wrote: > > On Tuesday 13 December 2005 14:51, Ulf wrote: > > Hello All, > > > > it looks like I have discuovered a small issue with the Iconview. > > > > Gambas Ver 1.9.2. Qt, Suse 10.0. > > > > It appears that the active area for events of the Iconview Object > extends > > into the Scrollbar Area. So if you double click on the vertical scroll > bar > > or the up/down arrows you will actually raise the event of double click > for > > the active item inside. > > > > Basically the Iconview.ClientW property does not change when a scrollbar > is > > added. > > > > I created a small test program to illustrate the issue. > > > > Any suggestions? Bug or stupid user? > > > > Best regards Ulf > > This is not a bug, this is by design :-) > > *Never* use double-click event to detect a double click on an item of any > control. Use the Activate event instead. > > But the IconView.ClientW should change when a scrollbar is displayed. I > will > try to fix that. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambas at ...1... Tue Dec 13 15:41:22 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Dec 2005 15:41:22 +0100 Subject: [Gambas-user] Bug in IconView In-Reply-To: <82b5035a0512130623u441a9da2x@...627...> References: <200512132151.00102.SpamOK@...1273...> <200512131516.09656.gambas@...1...> <82b5035a0512130623u441a9da2x@...627...> Message-ID: <200512131541.22975.gambas@...1...> On Tuesday 13 December 2005 15:23, frame down under wrote: > Hi Lists, > > I've noiced this behaviour in other conrols too. My workaround was to check > for the .selected property. I am a bit confused as why never to use the > dubbleclick event .... why is it there if we are not supposed to use it ? > > Thanks > > Frame > Because activating an item is not necessarily done by "double clicking", but can be done with the keyboard too. DblClick event is really a mouse double click anywhere on the control. Regards, -- Benoit Minisini From framedownunder at ...626... Tue Dec 13 16:04:39 2005 From: framedownunder at ...626... (frame down under) Date: Tue, 13 Dec 2005 16:04:39 +0100 Subject: [Gambas-user] Bug in IconView In-Reply-To: <200512131541.22975.gambas@...1...> References: <200512132151.00102.SpamOK@...1273...> <200512131516.09656.gambas@...1...> <82b5035a0512130623u441a9da2x@...627...> <200512131541.22975.gambas@...1...> Message-ID: <82b5035a0512130704m52e79a0bm@...627...> Hi List, Elbowgreased dblClick event (1.0.13, suse 9.3): PUBLIC SUB TableView2_dblClick() IF tableview2.Row > -1 THEN textbox3.Text = tableview2[tableview2.row, 0].text ENDIF END Just for show. Greetings, Frame On 13/12/05, Benoit Minisini wrote: > > On Tuesday 13 December 2005 15:23, frame down under wrote: > > Hi Lists, > > > > I've noiced this behaviour in other conrols too. My workaround was to > check > > for the .selected property. I am a bit confused as why never to use the > > dubbleclick event .... why is it there if we are not supposed to use it > ? > > > > Thanks > > > > Frame > > > > Because activating an item is not necessarily done by "double clicking", > but > can be done with the keyboard too. > > DblClick event is really a mouse double click anywhere on the control. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambasfr at ...11... Tue Dec 13 22:02:13 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 13 Dec 2005 22:02:13 +0100 Subject: [Gambas-user] gambas report. In-Reply-To: <200512131027.11457.christian.faurebouvard@...357...> References: <20051208113215.10646.qmail@...1268...> <200512122236.51460.gambasfr@...11...> <200512131027.11457.christian.faurebouvard@...357...> Message-ID: <200512132202.13287.gambasfr@...11...> Le Mardi 13 D?cembre 2005 14:27, Christian Faure a ?crit?: > El Lunes 12 Diciembre 2005 18:36, Fabien Bodard escribi?: > > Yes me Christian :) > > Thanks you Fabien :-) > > > It will be wonderfull to merge the both project in one real project... > > Ok, > How? > any idea? > Giving a list of features and inconvenients of both projects to select what > features are necesary and rewriting part of project if necesary? > > > In fact i work on is based on Benoit's ideas about reports... > > In Benoit aproach, a report is a special form? > Crystal an others report engines, are based on "sections", based on data > grouping, in view time, each section are repeated many times with each > record. > How implements "sections" on your aproach? > You have a special control to divide a form in sections? > or no sections? yes a special container that repeat a call for data for all the contained fields It can contain indefinate it self : ReportFieldBox Field = Client ReportFieldBox hBox hBox LineStyle = 1 Field = Billnum hBox LineStyle = 1 Field = value > In my aproach, design time: > first define the dataset (one or many sql select nested), > for each dataset, provide a header and sumary "sections" > for last nested level, provide a detail section > and add 4 special sections: report header,page header, page foother, report > foother. > controls can be placed in any section. > report is stored as xml file ( Thanks Daniel ) yes :)... thank Daniel > > > view time: > report is loaded from xml file using xslt > xslt translate xml file to macro-language > viewer interprets macro-language > prompt for sql param, > execute sql's > create instance of datasections > create page headers and foothers > create thumbs, and show > Observations: > macro-language: sequence of call to API functions, ex: > report.create.section(...) > macro-language is intended for implementation of "wizzard's" and for > customized styles and/or user defined actions. > Each action done in designer is translated in macro-language and executed > So designer can be extended by user. ??? without code ? > Problems: > many bugs, sure, > Designer work only on Gambas 1. > Source code "strange" (or bad?) > After design a report, memory free not same at begin. > After view a report, memory free not same at begin. > Calculated fields not implemented, workaround: do all computing in database > using complex sql select, and only work if your database support it. > User can give incoherent information and can result in crash. Sometine users must to be intelligent too ! But you need to put error managements > Very slow... :-( me too but gambas is slow :) It's an interpreted language ... The most impressive was when we are trying opengl exemple with Laurent Carlier... on matrix calculation gambas goes at 1/4 of the c speed :). But gambas is not c and the goal is not the same :) > Huge memory usage, > .. etc. > > > But before i need to add some feature on my enginer... like fields and > > resolve the page calculation problems... > > > > regards, > > Fabien Bodard > > You can read spanish? > I don't write french :-( , I don't Write Spanish > but i read french :-) But i read spanish > > Regards, > Christian Faure Regards, Fabien Bodard > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From christian.faurebouvard at ...357... Wed Dec 14 01:50:48 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Tue, 13 Dec 2005 21:50:48 -0300 Subject: [Gambas-user] gambas report. In-Reply-To: <200512132202.13287.gambasfr@...11...> References: <20051208113215.10646.qmail@...1268...> <200512131027.11457.christian.faurebouvard@...357...> <200512132202.13287.gambasfr@...11...> Message-ID: <200512132150.48843.christian.faurebouvard@...357...> El Martes 13 Diciembre 2005 18:02, Fabien Bodard escribi?: > Le Mardi 13 D?cembre 2005 14:27, Christian Faure a ?crit?: > > El Lunes 12 Diciembre 2005 18:36, Fabien Bodard escribi?: > > > Yes me Christian :) > > > > Thanks you Fabien :-) > > > > > It will be wonderfull to merge the both project in one real project... > > > > Ok, > > How? > > any idea? > > Giving a list of features and inconvenients of both projects to select > > what features are necesary and rewriting part of project if necesary? > > > > > In fact i work on is based on Benoit's ideas about reports... > > > > In Benoit aproach, a report is a special form? > > Crystal an others report engines, are based on "sections", based on data > > grouping, in view time, each section are repeated many times with each > > record. > > How implements "sections" on your aproach? > > You have a special control to divide a form in sections? > > or no sections? > > yes a special container that repeat a call for data for all the contained > fields > It can contain indefinate it self : > > ReportFieldBox > Field = Client > ReportFieldBox > hBox > hBox LineStyle = 1 > Field = Billnum > hBox LineStyle = 1 > Field = value > > > In my aproach, design time: > > first define the dataset (one or many sql select nested), > > for each dataset, provide a header and sumary "sections" > > for last nested level, provide a detail section > > and add 4 special sections: report header,page header, page foother, > > report foother. > > controls can be placed in any section. > > report is stored as xml file ( Thanks Daniel ) > > yes :)... thank Daniel > > > view time: > > report is loaded from xml file using xslt > > xslt translate xml file to macro-language > > viewer interprets macro-language > > prompt for sql param, > > execute sql's > > create instance of datasections > > create page headers and foothers > > create thumbs, and show > > > > > > Observations: > > macro-language: sequence of call to API functions, ex: > > report.create.section(...) > > macro-language is intended for implementation of "wizzard's" and for > > customized styles and/or user defined actions. > > Each action done in designer is translated in macro-language and executed > > So designer can be extended by user. > > ??? without code ? without gambas code, yes, using macro-language, with a text editor. extensions are limited to execute sequences of designer API calls. > > > Problems: > > many bugs, sure, > > Designer work only on Gambas 1. > > Source code "strange" (or bad?) > > After design a report, memory free not same at begin. > > After view a report, memory free not same at begin. > > Calculated fields not implemented, workaround: do all computing in > > database using complex sql select, and only work if your database support > > it. User can give incoherent information and can result in crash. > > Sometine users must to be intelligent too ! > But you need to put error managements yes, > > > Very slow... :-( > > me too but gambas is slow :) > It's an interpreted language ... The most impressive was when we are trying > opengl exemple with Laurent Carlier... on matrix calculation gambas goes at > 1/4 of the c speed :). > > But gambas is not c and the goal is not the same :) Ok, no problem for speed. > > > Huge memory usage, > > .. etc. > > > > > But before i need to add some feature on my enginer... like fields and > > > resolve the page calculation problems... > > > > > > regards, > > > Fabien Bodard > > > > You can read spanish? > > I don't write french :-( , > > I don't Write Spanish > > > but i read french :-) > > But i read spanish > > > Regards, > > Christian Faure > > Regards, > Fabien Bodard Que bueno, ahora puedo escribir facilmente. Hasta ma?ana. From amaiuri at ...1274... Wed Dec 14 02:35:03 2005 From: amaiuri at ...1274... (Alfredo Maiuri) Date: Tue, 13 Dec 2005 21:35:03 -0400 Subject: [Gambas-user] Need help on format$ function Message-ID: <439F76C7.70503@...1274...> Hello. I have SUSE Linux 10,0, Gambas 1.9.17. 1) When I use the function format$ to display dates, these appear in English format. The system is in Spanish. The function format$(now, "dd mmmm yyyy") display 12 December 2005 would have to display 12 Diciembre 2005. 2) I want to display the numbers in Spanish format. The point decimal must be one "," and the separator of thousands must be "." How I can do? Thanks for your help From liutauras at ...1236... Wed Dec 14 08:13:57 2005 From: liutauras at ...1236... (Liutauras Adomaitis) Date: Wed, 14 Dec 2005 09:13:57 +0200 Subject: [Gambas-user] Strange iif behaviour Message-ID: <200512140913.57829.liutauras@...1236...> hello, I wanted to shorten my code so decided to use iif( expression, value on true, value on false). My expression was iif( isnull(value from DB table),Null, cdate(value from DB table)). Idea is to display nothing (null) if date is not specified in DB tables record. The error of this sentece was, that gambas expevted date, but got null instead. Changing sentece to iif( isnull(value from DB table),"True", "False") - works ok. It seems that gambas is evaluating all the values (on true an false), and checking all the values and comparing data types. It is very strange, at least comparing with VB -- -------------------------------- Liutauras Adomaitis Infosaitas +370 650 82554 www.infosaitas.lt From gambas at ...1... Wed Dec 14 11:26:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Dec 2005 11:26:00 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <439F76C7.70503@...1274...> References: <439F76C7.70503@...1274...> Message-ID: <200512141126.00255.gambas@...1...> On Wednesday 14 December 2005 02:35, Alfredo Maiuri wrote: > Hello. > > I have SUSE Linux 10,0, Gambas 1.9.17. > > 1) When I use the function format$ to display dates, these appear in > English format. > The system is in Spanish. > The function format$(now, "dd mmmm yyyy") display > > 12 December 2005 > > would have to display > > 12 Diciembre 2005. > > 2) I want to display the numbers in Spanish format. The point decimal > must be one "," and the separator of thousands must be "." > How I can do? > > Thanks for your help > Is your Gambas IDE in Spanish ? -- Benoit Minisini From amaiuri at ...1274... Wed Dec 14 16:47:52 2005 From: amaiuri at ...1274... (amaiuri at ...1274...) Date: Wed, 14 Dec 2005 11:47:52 -0400 Subject: [Gambas-user] Need help on format$ function Message-ID: <269070-2200512314154752458@...1274...> Where I can obtain Gambas IDE in Spanish for SUSE Linux 10.0? ----------- Mensaje Original -------------- De: Benoit Minisini [gambas at ...1...] Para: gambas-user at lists.sourceforge.net [gambas-user at lists.sourceforge.net] Cc: Asunto: Re: [Gambas-user] Need help on format$ function Fecha: 14/12/2005 06:27:05 Mensaje: On Wednesday 14 December 2005 02:35, Alfredo Maiuri wrote: > Hello. > > I have SUSE Linux 10,0, Gambas 1.9.17. > > 1) When I use the function format$ to display dates, these appear in > English format. > The system is in Spanish. > The function format$(now, "dd mmmm yyyy") display > > 12 December 2005 > > would have to display > > 12 Diciembre 2005. > > 2) I want to display the numbers in Spanish format. The point decimal > must be one "," and the separator of thousands must be "." > How I can do? > > Thanks for your help > Is your Gambas IDE in Spanish ? -- Benoit Minisini ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 Dec 14 17:09:07 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Dec 2005 17:09:07 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <269070-2200512314154752458@...1274...> References: <269070-2200512314154752458@...1274...> Message-ID: <200512141709.08048.gambas@...1...> On Wednesday 14 December 2005 16:47, amaiuri at ...1274... wrote: > Where I can obtain Gambas IDE in Spanish for SUSE Linux 10.0? > So you don't see the IDE in spanish ? You should, if your language environment variables are correctly set, and if spanish locales are installed on your systems. Please send me the contents of your environment variables. To get them, type that in a shell: $ set > myenv.txt and send me the 'myenv.txt' file. Thanks in advance, Regards, -- Benoit Minisini From amaiuri at ...1274... Wed Dec 14 17:58:14 2005 From: amaiuri at ...1274... (amaiuri at ...1274...) Date: Wed, 14 Dec 2005 12:58:14 -0400 Subject: [Gambas-user] Need help on format$ function Message-ID: <323050-2200512314165814896@...1274...> ----------- Mensaje Original -------------- De: Benoit Minisini [gambas at ...1...] Para: gambas-user at lists.sourceforge.net [gambas-user at lists.sourceforge.net] Cc: Asunto: Re: [Gambas-user] Need help on format$ function Fecha: 14/12/2005 12:10:17 Mensaje: On Wednesday 14 December 2005 16:47, amaiuri at ...1274... wrote: > Where I can obtain Gambas IDE in Spanish for SUSE Linux 10.0? > So you don't see the IDE in spanish ? You should, if your language environment variables are correctly set, and if spanish locales are installed on your systems. Please send me the contents of your environment variables. To get them, type that in a shell: $ set > myenv.txt and send me the 'myenv.txt' file. Thanks in advance, Regards, -- Benoit Minisini ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: myenv.txt URL: From gambas at ...1... Wed Dec 14 18:12:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Dec 2005 18:12:23 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <323050-2200512314165814896@...1274...> References: <323050-2200512314165814896@...1274...> Message-ID: <200512141812.24515.gambas@...1...> On Wednesday 14 December 2005 17:58, amaiuri at ...1274... wrote: > ----------- Mensaje Original -------------- > > De: Benoit Minisini [gambas at ...1...] > Para: gambas-user at lists.sourceforge.net [gambas-user at lists.sourceforge.net] > Cc: > Asunto: Re: [Gambas-user] Need help on format$ function > Fecha: 14/12/2005 12:10:17 > Mensaje: > > On Wednesday 14 December 2005 16:47, amaiuri at ...1274... wrote: > > Where I can obtain Gambas IDE in Spanish for SUSE Linux 10.0? > > So you don't see the IDE in spanish ? You should, if your language > environment > variables are correctly set, and if spanish locales are installed on your > systems. > > Please send me the contents of your environment variables. To get them, > type > that in a shell: > > $ set > myenv.txt > > and send me the 'myenv.txt' file. > > Thanks in advance, > > Regards, [...] LANG=POSIX LC_CTYPE=es_VE.UTF-8 [...] Your locale environment variables are not set to spanish, except the LC_CTYPE one. I think none of your application are displayed in spanish... Please check the configuration of your system, so that LANG is spanish, as the LC_* variables. Regards, -- Benoit Minisini From rospolosco at ...152... Wed Dec 14 20:50:04 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 14 Dec 2005 20:50:04 +0100 Subject: [Gambas-user] explain to the stupid (me), please Message-ID: <200512142050.05055.rospolosco@...152...> Hi all. Hi Benoit. This code freezes Gambas2 (1.9.20)... PUBLIC SUB Main() DIM shellout AS String SHELL "echo Gambas is great!" WAIT SHELL "date" TO shellout PRINT shellout END It executes the first SHELL command, but freezes on the second SHELL. I experienced that: if there's one "SHELL ... WAIT" before "SHELL ... TO" the program freezes, (in fact if I remove the first SHELL, then I get the date). If there's another "SHELL ... TO" before "SHELL ... TO", things work fine, If there's another command (not SHELL) before "SHELL ... TO", things work fine. I already know that there's a well known explanation for this and I'm a stupid :-( , but I didn't find it around... So, excuse me. Please, could someone explain to me why I can't put a "SHELL...WAIT" before a "SHELL...TO"? Saluti, Stefano From rospolosco at ...152... Wed Dec 14 20:48:51 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 14 Dec 2005 20:48:51 +0100 Subject: [Gambas-user] can't write Italian special chars while editing in Gambas2 Message-ID: <200512142048.51878.rospolosco@...152...> Hi all. I noticed that I can't write special Italian chars ( ? ? ? ? ? ) in Gambas2. They are correctly displayed when I run the project, but when I edit a class or a text file with Gambas2, these special chars are shown strangely. I've no problem with Gambas1. Gambas1 and Gambas2 were compiled on the same system at the same time... Do Gambas2 need some library, to handle these kind of chars, that Gambas1 does not ? Does some other Italian in the M.L. experience the same problem? Could I 'export' some environment variable before running Gambas2? My Gambas2 version is 1.9.20. Thanks, Stefano From gambas at ...1... Wed Dec 14 23:33:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Dec 2005 23:33:13 +0100 Subject: [Gambas-user] can't write Italian special chars while editing in Gambas2 In-Reply-To: <200512142048.51878.rospolosco@...152...> References: <200512142048.51878.rospolosco@...152...> Message-ID: <200512142333.13398.gambas@...1...> On Wednesday 14 December 2005 20:48, Stefano Palmeri wrote: > Hi all. > > I noticed that I can't write special Italian chars ( ? ? ? ? ? ) > in Gambas2. They are correctly displayed when I run the project, > but when I edit a class or a text file with Gambas2, these special chars > are shown strangely. I've no problem with Gambas1. > Gambas1 and Gambas2 were compiled on the same system at the same time... > > Do Gambas2 need some library, to handle these kind of chars, that Gambas1 > does not ? > > Does some other Italian in the M.L. experience the same problem? Could > I 'export' some environment variable before running Gambas2? > > My Gambas2 version is 1.9.20. > > Thanks, > > Stefano > This bug has been fixed in more recent versions. Regards, -- Benoit Minisini From gambas at ...1... Wed Dec 14 23:40:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Dec 2005 23:40:15 +0100 Subject: [Gambas-user] explain to the stupid (me), please In-Reply-To: <200512142050.05055.rospolosco@...152...> References: <200512142050.05055.rospolosco@...152...> Message-ID: <200512142340.15885.gambas@...1...> On Wednesday 14 December 2005 20:50, Stefano Palmeri wrote: > Hi all. Hi Benoit. > > This code freezes Gambas2 (1.9.20)... > > PUBLIC SUB Main() > > DIM shellout AS String > > SHELL "echo Gambas is great!" WAIT > SHELL "date" TO shellout > > PRINT shellout > > END > > It executes the first SHELL command, but freezes on the second SHELL. > > I experienced that: > > if there's one "SHELL ... WAIT" before "SHELL ... TO" the program freezes, > (in fact if I remove the first SHELL, then I get the date). > > If there's another "SHELL ... TO" before "SHELL ... TO", things work fine, > > If there's another command (not SHELL) before "SHELL ... TO", things work > fine. > > I already know that there's a well known explanation for this > and I'm a stupid :-( , but I didn't find it around... So, excuse me. > > Please, could someone explain to me why I can't put a "SHELL...WAIT" > before a "SHELL...TO"? > > Saluti, > > Stefano > I confirm that this is a bug! The SHELL/EXEC...TO instruction is implemented differently from the normal SHELL/EXEC one, and it does not work correctly... I will look at that problem. Regards, -- Benoit Minisini From gambas at ...1... Thu Dec 15 00:23:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Dec 2005 00:23:25 +0100 Subject: [Gambas-user] explain to the stupid (me), please In-Reply-To: <200512142050.05055.rospolosco@...152...> References: <200512142050.05055.rospolosco@...152...> Message-ID: <200512150023.25456.gambas@...1...> On Wednesday 14 December 2005 20:50, Stefano Palmeri wrote: > Hi all. Hi Benoit. > > This code freezes Gambas2 (1.9.20)... > > PUBLIC SUB Main() > > DIM shellout AS String > > SHELL "echo Gambas is great!" WAIT > SHELL "date" TO shellout > > PRINT shellout > > END > > It executes the first SHELL command, but freezes on the second SHELL. > > I experienced that: > > if there's one "SHELL ... WAIT" before "SHELL ... TO" the program freezes, > (in fact if I remove the first SHELL, then I get the date). > > If there's another "SHELL ... TO" before "SHELL ... TO", things work fine, > > If there's another command (not SHELL) before "SHELL ... TO", things work > fine. > > I already know that there's a well known explanation for this > and I'm a stupid :-( , but I didn't find it around... So, excuse me. > > Please, could someone explain to me why I can't put a "SHELL...WAIT" > before a "SHELL...TO"? > > Saluti, > > Stefano > I found the bug! This was a stupid one - Just one character to change in the source code :-) The bug exists in both stable and development version. Here is some patches for you, and those who need... -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: (development) gbx_watch.c Type: text/x-csrc Size: 9292 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: (stable) gbx_watch.c Type: text/x-csrc Size: 4906 bytes Desc: not available URL: From rospolosco at ...152... Thu Dec 15 01:30:34 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 15 Dec 2005 01:30:34 +0100 Subject: [Gambas-user] explain to the stupid (me), please In-Reply-To: <200512150023.25456.gambas@...1...> References: <200512142050.05055.rospolosco@...152...> <200512150023.25456.gambas@...1...> Message-ID: <200512150130.34723.rospolosco@...152...> Alle 00:23, gioved? 15 dicembre 2005, Benoit Minisini ha scritto: > I found the bug! This was a stupid one - Just one character to change in the > source code :-) > > The bug exists in both stable and development version. > > Here is some patches for you, and those who need... > As usually, you're absolutely great!!! Thanks, Stefano Palmeri From isy21 at ...1082... Thu Dec 15 08:26:00 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 15 Dec 2005 14:26:00 +0700 Subject: [Gambas-user] Output Printing Message-ID: <200512151426.01390.isy21@...1082...> Hi all, I write printing output use draw command, the problem is: how can i format amount with #,###.## ? My sample code is : mglobal.rstemp=mglobal.db.exec("select * from ttransaction") for each mglobal.rstemp draw.Text(Format(.rsTemp!fprice,"#,0##"),5,1+9*ypos) draw.Text(.rsTemp!fstockname,5+280,1+9*ypos) next but the output is like this Rice Cooker 100.000 Emergency lamp 300 Children Bed Set 2.000.000 why can't be like this (align right for amount) Rice Cooker 100.000 Emergency lamp 300 Children Bed Set 2.000.000 Something wrong with my code or i can use another method ? like formating __.____.____ in text file, then printing to this text file ? -- Regards, Ignatius Syofian From rporticio at ...43... Thu Dec 15 09:36:42 2005 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 15 Dec 2005 00:36:42 -0800 (PST) Subject: [Gambas-user] client-server connection Message-ID: <20051215083642.73119.qmail@...1021...> dear friends, how can a client computer with gambas database application access a server with postgres as backend database. All of the computers are using redhat9 OS. can the PGDATA(var/lib/pgsql/data) from the server be exported using NFS and mounted on the client computer? how do i connect from the client using gambas. thanks for any idea. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Thu Dec 15 11:38:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Dec 2005 11:38:59 +0100 Subject: [Gambas-user] Output Printing In-Reply-To: <200512151426.01390.isy21@...1082...> References: <200512151426.01390.isy21@...1082...> Message-ID: <200512151138.59096.gambas@...1...> On Thursday 15 December 2005 08:26, Ignatius Syofian wrote: > Hi all, > > > I write printing output use draw command, the problem is: how can i format > amount with #,###.## ? > > My sample code is : > > mglobal.rstemp=mglobal.db.exec("select * from ttransaction") > > for each mglobal.rstemp > draw.Text(Format(.rsTemp!fprice,"#,0##"),5,1+9*ypos) > draw.Text(.rsTemp!fstockname,5+280,1+9*ypos) > > next > > but the output is like this > > Rice Cooker 100.000 > Emergency lamp 300 > Children Bed Set 2.000.000 > > > why can't be like this (align right for amount) > > Rice Cooker 100.000 > Emergency lamp 300 > Children Bed Set 2.000.000 > > Something wrong with my code > or > i can use another method ? > > like formating __.____.____ in text file, then printing to this text file ? Draw.Text just write text left aligned from the specified position. If you want right alignment, you can use that: Draw.Text(Format(.rsTemp!fprice,"#,0##"), X, Y, W, H, Align.Right) where X, Y, W, H are the dimension of a rectangle where the text will be drawn right aligned. Be careful: the text is not clipped. Regards, -- Benoit Minisini From christian.faurebouvard at ...357... Thu Dec 15 13:29:49 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Thu, 15 Dec 2005 09:29:49 -0300 Subject: [Gambas-user] client-server connection In-Reply-To: <20051215083642.73119.qmail@...1021...> References: <20051215083642.73119.qmail@...1021...> Message-ID: <200512150929.49783.christian.faurebouvard@...357...> El Jueves 15 Diciembre 2005 05:36, Ramon Orticio escribi?: > dear friends, > > how can a client computer with gambas database > application access a server with postgres as backend > database. All of the computers are using redhat9 OS. > > can the PGDATA(var/lib/pgsql/data) from the server be > exported using NFS and mounted on the client computer? > how do i connect from the client using gambas. > > thanks for any idea. > > > ramon > Hi Ramon, do NOT export PGDATA from server, 1. Test if you can access your postgres server from your client computer using psql at shell prompt, for example: psql -h myserver_ip -U myuser mydb and test some sql select 2. If you can access your server, use gambas code like dim c as Connection WITH c .Type = "postgresql" .Host = "myserver_ip" .Login = "myuser" .Password = "mypassword" .Name = "mydb" END WITH TRY c.Open See help on gambas db component and examples for more info Regards, Christian From ronstk at ...239... Thu Dec 15 16:50:07 2005 From: ronstk at ...239... (ron) Date: Thu, 15 Dec 2005 16:50:07 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <200512141812.24515.gambas@...1...> References: <323050-2200512314165814896@...1274...> <200512141812.24515.gambas@...1...> Message-ID: <200512151650.08478.ronstk@...239...> On Wednesday 14 December 2005 18:12, Benoit Minisini wrote: > On Wednesday 14 December 2005 17:58, amaiuri at ...1274... wrote: > > ----------- Mensaje Original -------------- > > > > [...] > LANG=POSIX > LC_CTYPE=es_VE.UTF-8 > [...] > > Your locale environment variables are not set to spanish, except the LC_CTYPE > one. I think none of your application are displayed in spanish... > > Please check the configuration of your system, so that LANG is spanish, as the > LC_* variables. > > Regards, > I just checked in my system SuSE 9.2, installed as 'en_US' in the Netherlands. LANG=en_US.UTF-8 and should be for you LANG=es_VE.UTF-8 In Yast goto System>/etc/sysconfig Editor: Go in tree on the left to System>Environment>Language, for my system: entry value ---------------------------- RC_LANG en_US.UTF-8 RC_LC_ALL {blank} MESSAGES {blank} CTYPE {blank} ROOT_USES_LANG ctype In the environment I do not have all of the LC_* set Only the LANG=en_US.UTF-8 Be carefull with SuSE for the language and country settings. In Yast there is a icon telling you 'Choose Language' to. This sets the 'country' and as result the most common language spoken there. I'm also afraid SuSE's country_language setting is not the same as the intension of the standard definition for these. I found in the past 'en_GB' and 'en_UK' with SuSE and KDE for English in Great Brittan, also known as United Kingdom, but as far I found 'en_UK' is 'English in Ukraine', bit strange. Some of the KDE Translators are using en_UK for United Kingdom, others using 'en_GB' and SuSE is using en_GB for GreatBrittan. The Clock and Time settings you choose also a country. I'm afraid this one is also changing the country part of the language. The order of setting the Clock/Time and Language can be importand. The good one should be visible in the environment with evv > myenv.txt These are used with gambas. From gambas at ...1... Thu Dec 15 17:00:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Dec 2005 17:00:13 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <200512151650.08478.ronstk@...239...> References: <323050-2200512314165814896@...1274...> <200512141812.24515.gambas@...1...> <200512151650.08478.ronstk@...239...> Message-ID: <200512151700.13357.gambas@...1...> On Thursday 15 December 2005 16:50, ron wrote: > On Wednesday 14 December 2005 18:12, Benoit Minisini wrote: > > On Wednesday 14 December 2005 17:58, amaiuri at ...1274... wrote: > > > ----------- Mensaje Original -------------- > > > > [...] > > LANG=POSIX > > LC_CTYPE=es_VE.UTF-8 > > [...] > > > > Your locale environment variables are not set to spanish, except the > > LC_CTYPE one. I think none of your application are displayed in > > spanish... > > > > Please check the configuration of your system, so that LANG is spanish, > > as the LC_* variables. > > > > Regards, > > I just checked in my system SuSE 9.2, installed as 'en_US' in the > Netherlands. > > LANG=en_US.UTF-8 and should be for you LANG=es_VE.UTF-8 > > In Yast goto System>/etc/sysconfig Editor: > Go in tree on the left to System>Environment>Language, for my system: > > entry value > ---------------------------- > RC_LANG en_US.UTF-8 > RC_LC_ALL {blank} > MESSAGES {blank} > CTYPE {blank} > ROOT_USES_LANG ctype > > In the environment I do not have all of the LC_* set > Only the LANG=en_US.UTF-8 > > Be carefull with SuSE for the language and country settings. > > In Yast there is a icon telling you 'Choose Language' to. > This sets the 'country' and as result the most common language spoken > there. I'm also afraid SuSE's country_language setting is not the same as > the intension of the standard definition for these. > > I found in the past 'en_GB' and 'en_UK' with SuSE and KDE for > English in Great Brittan, also known as United Kingdom, but > as far I found 'en_UK' is 'English in Ukraine', bit strange. > Some of the KDE Translators are using en_UK for United Kingdom, > others using 'en_GB' and SuSE is using en_GB for GreatBrittan. > > The Clock and Time settings you choose also a country. > I'm afraid this one is also changing the country part of the language. > The order of setting the Clock/Time and Language can be importand. > > The good one should be visible in the environment with evv > myenv.txt > These are used with gambas. > Gambas needs LANG being set, and eventually LANGUAGE (a list of possible values of LANG, in preference order). But the glibc library needs LC_* and he corresponding locale files to work correctly with dates, currency... For example, on Mandriva, if I want to be able to display correctly spanish dates, I have to install spanish locales. Regards, -- Benoit Minisini From amaiuri at ...1274... Fri Dec 16 02:51:44 2005 From: amaiuri at ...1274... (amaiuri at ...1274...) Date: Thu, 15 Dec 2005 21:51:44 -0400 Subject: [Gambas-user] Need help on format$ function Message-ID: <410-2200512516151444@...1274...> Hello. I have done what you have suggested to me. The function format$ show date in Spanish. The numbers appear with "," like decimal separator. The only thing that not yet appears is the separator of thousands. Thank you very much by its aid ----------- Mensaje Original -------------- De: Benoit Minisini [gambas at ...1...] Para: gambas-user at lists.sourceforge.net [gambas-user at lists.sourceforge.net] Cc: Asunto: Re: [Gambas-user] Need help on format$ function Fecha: 15/12/2005 12:33:10 Mensaje: On Thursday 15 December 2005 16:50, ron wrote: > On Wednesday 14 December 2005 18:12, Benoit Minisini wrote: > > On Wednesday 14 December 2005 17:58, amaiuri at ...1274... wrote: > > > ----------- Mensaje Original -------------- > > > > [...] > > LANG=POSIX > > LC_CTYPE=es_VE.UTF-8 > > [...] > > > > Your locale environment variables are not set to spanish, except the > > LC_CTYPE one. I think none of your application are displayed in > > spanish... > > > > Please check the configuration of your system, so that LANG is spanish, > > as the LC_* variables. > > > > Regards, > > I just checked in my system SuSE 9.2, installed as 'en_US' in the > Netherlands. > > LANG=en_US.UTF-8 and should be for you LANG=es_VE.UTF-8 > > In Yast goto System>/etc/sysconfig Editor: > Go in tree on the left to System>Environment>Language, for my system: > > entry value > ---------------------------- > RC_LANG en_US.UTF-8 > RC_LC_ALL {blank} > MESSAGES {blank} > CTYPE {blank} > ROOT_USES_LANG ctype > > In the environment I do not have all of the LC_* set > Only the LANG=en_US.UTF-8 > > Be carefull with SuSE for the language and country settings. > > In Yast there is a icon telling you 'Choose Language' to. > This sets the 'country' and as result the most common language spoken > there. I'm also afraid SuSE's country_language setting is not the same as > the intension of the standard definition for these. > > I found in the past 'en_GB' and 'en_UK' with SuSE and KDE for > English in Great Brittan, also known as United Kingdom, but > as far I found 'en_UK' is 'English in Ukraine', bit strange. > Some of the KDE Translators are using en_UK for United Kingdom, > others using 'en_GB' and SuSE is using en_GB for GreatBrittan. > > The Clock and Time settings you choose also a country. > I'm afraid this one is also changing the country part of the language. > The order of setting the Clock/Time and Language can be importand. > > The good one should be visible in the environment with evv > myenv.txt > These are used with gambas. > Gambas needs LANG being set, and eventually LANGUAGE (a list of possible values of LANG, in preference order). But the glibc library needs LC_* and he corresponding locale files to work correctly with dates, currency... For example, on Mandriva, if I want to be able to display correctly spanish dates, I have to install spanish locales. Regards, -- Benoit Minisini ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Dec 16 10:52:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Dec 2005 10:52:06 +0100 Subject: [Gambas-user] Need help on format$ function In-Reply-To: <410-2200512516151444@...1274...> References: <410-2200512516151444@...1274...> Message-ID: <200512161052.06222.gambas@...1...> On Friday 16 December 2005 02:51, amaiuri at ...1274... wrote: > Hello. > I have done what you have suggested to me. > The function format$ show date in Spanish. > The numbers appear with "," like decimal separator. > The only thing that not yet appears is the separator of thousands. Strange. If a locale has no thousand separator, Gambas prints at least a space. So you should see it... -- Benoit Minisini From nando_f at ...951... Fri Dec 16 13:58:01 2005 From: nando_f at ...951... (nando) Date: Fri, 16 Dec 2005 07:58:01 -0500 Subject: [Gambas-user] When do events happen - general question. Message-ID: <20051216124833.M90519@...951...> Benoit, I need some help understanding when events are processed. I am getting some wierd results in a program ... and looking for deeper understanding. (1) If code is running in a SUB, will a TIMER event cause the timer code to happen immediately or when the SUB is completed ? Can a TIMER event happen while inside the TIMER event code? (2) I use the Serial Port Control in one project. When Sport_Read fires, can it fire while inside itself ? (3) If I want to make one particular SUB never end to perform a process, must I insert WAIT statements ? Thank you, again. -Fernando. From Tuxforall at ...17... Fri Dec 16 16:27:49 2005 From: Tuxforall at ...17... (Reinhard Ohm) Date: Fri, 16 Dec 2005 16:27:49 +0100 (MET) Subject: [Gambas-user] val() function gambas 1.9.22 Message-ID: <28879.1134746869@...1277...> Hallo ?? print val("3.1415") soll 3.1415 ausgeben laut hilfe! ausgegeben wird aber 31415 ?? ist nicht wirklich das selbe - oder? -- GMX DSL-Flatrate 1 Jahr kostenlos* + WLAN-Router ab 0,- Euro* Bis 31.12.2005 einsteigen! Infos unter: http://www.gmx.net/de/go/dsl From bernieman at ...977... Fri Dec 16 16:47:38 2005 From: bernieman at ...977... (BernieMan) Date: Fri, 16 Dec 2005 16:47:38 +0100 Subject: [Gambas-user] Looping through ListView Message-ID: <20051216154738.GA13403@...1257...> Hi all, I have a problem with a ListView-Object. I will loop through a ListView-Object and get the Item-Text. Lets say I have 3 Text-Items in the ListView. - How can I loop through LV and get the text-Items? Any help would be nice BernieMan From gambas at ...1... Fri Dec 16 18:48:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Dec 2005 18:48:37 +0100 Subject: [Gambas-user] When do events happen - general question. In-Reply-To: <20051216124833.M90519@...951...> References: <20051216124833.M90519@...951...> Message-ID: <200512161848.37345.gambas@...1...> On Friday 16 December 2005 13:58, nando wrote: > Benoit, > > I need some help understanding when events are processed. > I am getting some wierd results in a program > ... and looking for deeper understanding. > > (1) If code is running in a SUB, will a TIMER event cause the timer code > to happen immediately or when the SUB is completed ? > Can a TIMER event happen while inside the TIMER event code? > > (2) I use the Serial Port Control in one project. > When Sport_Read fires, can it fire while inside itself ? > > (3) If I want to make one particular SUB never end to perform a process, > must I insert WAIT statements ? > > Thank you, again. > -Fernando. > Events are processed: * After the Main startup function has been terminated, and before or after a top-level event handler is processed. * When using a WAIT statement. So: 1) No, never, except if you use WAIT. 2) Same remark. 3) Yes. -- Benoit Minisini From amaiuri at ...1274... Fri Dec 16 18:54:22 2005 From: amaiuri at ...1274... (amaiuri at ...1274...) Date: Fri, 16 Dec 2005 13:54:22 -0400 Subject: [Gambas-user] Need help on format$ function Message-ID: <67100-220051251617542275@...1274...> Hello I am using the function of this form format$(12345.6789, "#,#0.#0") and she shows the following 12345,68. It does not show space or "." like separator of thousands ----------- Mensaje Original -------------- De: Benoit Minisini [gambas at ...1...] Para: gambas-user at lists.sourceforge.net [gambas-user at lists.sourceforge.net] Cc: Asunto: Re: [Gambas-user] Need help on format$ function Fecha: 16/12/2005 05:53:05 Mensaje: On Friday 16 December 2005 02:51, amaiuri at ...1274... wrote: > Hello. > I have done what you have suggested to me. > The function format$ show date in Spanish. > The numbers appear with "," like decimal separator. > The only thing that not yet appears is the separator of thousands. Strange. If a locale has no thousand separator, Gambas prints at least a space. So you should see it... -- Benoit Minisini ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sat Dec 17 01:14:52 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 17 Dec 2005 01:14:52 +0100 Subject: [Gambas-user] Gambas2 Italian translation Message-ID: <200512170114.52338.rospolosco@...152...> Hi, Benoit. Some months ago, Maurizio Pozzobon fixed some important bugs in the Italian translation for both the stable and the development versions of Gambas. He posted the new *.po files in the devel list. Well, the stable was upgraded, but Gambas2 (1.9.22) still has the buggy translation. Could you upgrade the Italian translation in the next development release, please? I've attached the *.po file that Maurizio Pozzobon sent to me some months ago (I'm currently using it). Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2-it-0.99.po.gz Type: application/x-gzip Size: 14762 bytes Desc: not available URL: From eilert-sprachen at ...221... Fri Dec 16 10:24:17 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 16 Dec 2005 10:24:17 +0100 Subject: [Gambas-user] context menu Message-ID: <43A287C1.6060608@...221...> I've been trying to make a contextual menu. This is what I did: in Form1 I inserted PUBLIC testmenue AS Menu in the Menu sub of one of the elements (a TableView) I inserted PUBLIC SUB tbd_Menu() testmenue.popup testmenue.Visible = TRUE testmenue.Text = "hallo" END Of course, this doesn't work. The question is: how to do it better? Thx for all your tips! Rolf From gambas at ...1... Sun Dec 18 23:31:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Dec 2005 23:31:59 +0100 Subject: [Gambas-user] New documentation wiki Message-ID: <200512182331.59878.gambas@...1...> Hi, The new documentation wiki is available at http://gambasdoc.org. Some of its features: - It is written in Gambas - It is fully translatable. - You must write me if you want to register and write documentation. Some information of the old wiki are not yet copied to the new wiki. The FAQ for example. If somebody have time... :-) Enjoy it! Regards, -- Benoit Minisini From gambas at ...1... Sun Dec 18 23:37:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Dec 2005 23:37:14 +0100 Subject: [Gambas-user] Gambas2 Italian translation In-Reply-To: <200512170114.52338.rospolosco@...152...> References: <200512170114.52338.rospolosco@...152...> Message-ID: <200512182337.15003.gambas@...1...> On Saturday 17 December 2005 01:14, Stefano Palmeri wrote: > Hi, Benoit. > > Some months ago, Maurizio Pozzobon fixed some > important bugs in the Italian translation for both the > stable and the development versions of Gambas. He posted > the new *.po files in the devel list. Well, the stable was upgraded, > but Gambas2 (1.9.22) still has the buggy translation. > > Could you upgrade the Italian translation in the next > development release, please? > > I've attached the *.po file that Maurizio Pozzobon sent to me > some months ago (I'm currently using it). > > Regards, > > Stefano Palmeri OK, done! -- Benoit Minisini From nando_f at ...951... Mon Dec 19 02:48:35 2005 From: nando_f at ...951... (nando) Date: Sun, 18 Dec 2005 20:48:35 -0500 Subject: [Gambas-user] New documentation wiki In-Reply-To: <200512182331.59878.gambas@...1...> References: <200512182331.59878.gambas@...1...> Message-ID: <20051219014426.M67525@...951...> Beautiful!! It is written as a terminal program ?? -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Sun, 18 Dec 2005 23:31:59 +0100 Subject: [Gambas-user] New documentation wiki > Hi, > > The new documentation wiki is available at http://gambasdoc.org. > > Some of its features: > - It is written in Gambas > - It is fully translatable. > - You must write me if you want to register and write documentation. > > Some information of the old wiki are not yet copied to the new wiki. > The FAQ for example. If somebody have time... :-) > > Enjoy it! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Mon Dec 19 04:15:24 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 18 Dec 2005 22:15:24 -0500 Subject: [Gambas-user] New documentation wiki In-Reply-To: <20051219014426.M67525@...951...> References: <200512182331.59878.gambas@...1...> <20051219014426.M67525@...951...> Message-ID: <200512182215.24785.sourceforge-raindog2@...94...> On Sun December 18 2005 20:48, nando wrote: > It is written as a terminal program ?? Well, it's a terminal program, but it's really meant to be run from a web server as a CGI, not a terminal. In other words, it takes environment variables and maybe some standard input at startup, and then it produces one page of output and exits. The source is in recent 1.9.x tarballs in the "doc.cgi" directory. It's smaller, faster and in all ways (for Gambas documentation purposes) better than TWiki. Congratulations to Benoit for doing what I didn't think was possible ;) Rob From rporticio at ...43... Mon Dec 19 07:37:08 2005 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 18 Dec 2005 22:37:08 -0800 (PST) Subject: [Gambas-user] client-server connection Message-ID: <20051219063708.4819.qmail@...1063...> christian, thanks! got your suggestions working today. God bless. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From SpamOK at ...1273... Mon Dec 19 09:59:35 2005 From: SpamOK at ...1273... (Ulf) Date: Mon, 19 Dec 2005 16:59:35 +0800 Subject: [Gambas-user] Iconview selection behavior Message-ID: <200512191659.36618.SpamOK@...1273...> Hello All, Benoit if I use the Iconview in Extended or Multi Selection Mode it is only possible to set an item's property to .Selected = True if I use CTRL or SHIFT (in Extended Mode) to select items, not if I try to select items with the mouse only (draw rectanglurar box around items) the items get highlighted inside the control but the .Selected Property does not change, furthermore the Event Selected is also not raised in this case. If I box select first and than add an item with CTRL though all highlighted items will .Selected=True. The Listbox behavior is different in this case, here everytime the mouse selection box reaches one more item the Selected Event is raised and the .Selected property for this item is changed immediately. I sthis by design? BTW: what is the most elegant way to loop through all selected items in an IconView? Best Regards Ulf Wedemeyer From eilert-sprachen at ...221... Mon Dec 19 10:24:00 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 19 Dec 2005 10:24:00 +0100 Subject: [Gambas-user] context menu In-Reply-To: <43A287C1.6060608@...221...> References: <43A287C1.6060608@...221...> Message-ID: <43A67C30.7020501@...221...> Ok folks, I got it! So, no need to answer to this anymore. For anyone wondering how it works: Just add another menu to the menues in the Menu Editor, and mark the first item (level 1 item) as Not Visible. In the app for the control which is to react to the right mouse click, just add the Menu event and insert "mymenu.popup". Rolf Eilert schrieb: > I've been trying to make a contextual menu. This is what I did: > > in Form1 I inserted > > PUBLIC testmenue AS Menu > > in the Menu sub of one of the elements (a TableView) I inserted > > PUBLIC SUB tbd_Menu() > > testmenue.popup > testmenue.Visible = TRUE > testmenue.Text = "hallo" > > END > > Of course, this doesn't work. The question is: how to do it better? > > Thx for all your tips! > > Rolf From gambas at ...1... Mon Dec 19 13:13:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 Dec 2005 13:13:49 +0100 Subject: [Gambas-user] Iconview selection behavior In-Reply-To: <200512191659.36618.SpamOK@...1273...> References: <200512191659.36618.SpamOK@...1273...> Message-ID: <200512191313.49493.gambas@...1...> On Monday 19 December 2005 09:59, Ulf wrote: > Hello All, Benoit > > if I use the Iconview in Extended or Multi Selection Mode it is only > possible to set an item's property to .Selected = True if I use CTRL or > SHIFT (in Extended Mode) to select items, not if I try to select items with > the mouse only (draw rectanglurar box around items) the items get > highlighted inside the control but the .Selected Property does not change, > furthermore the Event Selected is also not raised in this case. If I box > select first and than add an item with CTRL though all highlighted items > will .Selected=True. > > The Listbox behavior is different in this case, here everytime the mouse > selection box reaches one more item the Selected Event is raised and > the .Selected property for this item is changed immediately. > > I sthis by design? > > BTW: what is the most elegant way to loop through all selected items in an > IconView? > > Best Regards > > Ulf Wedemeyer > I didn't notice what you described. Which version of gambas do you use? I tested by adding a "Select" event handler in the Explorer example, with this code: --8<----------------------------------------------------------------- PUBLIC SUB ivwExplorer_Select() ' Prints all selected item each time the selection change ivwExplorer.MoveFirst WHILE ivwExplorer.Available IF ivwExplorer.Item.Selected THEN PRINT ivwExplorer.Item.Text;; ivwExplorer.MoveNext WEND PRINT END --8<----------------------------------------------------------------- Regards, -- Benoit Minisini From nando_f at ...951... Mon Dec 19 13:48:54 2005 From: nando_f at ...951... (nando) Date: Mon, 19 Dec 2005 07:48:54 -0500 Subject: [Gambas-user] New Doc: EVENT LOOP question Message-ID: <20051219124522.M89973@...951...> Benoit, In the section... http://www.gambasdoc.org/help/cat/eventloop there is a phrase... You can call recursively the event loop by using the WAIT instruction. This may lead to infinite recursion, but this is the only way to refresh the user interface while doing a long processing. My question is: Recursion means that a CALL is performed and the stack is pushed. So, infinite recursion really leads to a stack overflow. Is this true ? -Fernando From gambas at ...1... Mon Dec 19 13:56:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 Dec 2005 13:56:52 +0100 Subject: [Gambas-user] New Doc: EVENT LOOP question In-Reply-To: <20051219124522.M89973@...951...> References: <20051219124522.M89973@...951...> Message-ID: <200512191356.53083.gambas@...1...> On Monday 19 December 2005 13:48, nando wrote: > Benoit, > > In the section... http://www.gambasdoc.org/help/cat/eventloop > > there is a phrase... > You can call recursively the event loop by using the WAIT instruction. This > may lead to infinite recursion, but this is the only way to refresh the > user interface while doing a long processing. > > My question is: Recursion means that a CALL is performed and the stack is > pushed. So, infinite recursion really leads to a stack overflow. > Is this true ? > > -Fernando > Yes! -- Benoit Minisini From alan at ...833... Mon Dec 19 14:27:32 2005 From: alan at ...833... (Alan@...1278...) Date: Mon, 19 Dec 2005 13:27:32 +0000 Subject: [Gambas-user] sqlite3 test database Message-ID: <43A6B544.2080309@...833...> Hi, I have created a SQLite3 test database using the database example in the 1.9.22 distribution. All 10000 entries in the test table seem to be present. However if I load the database example into gambas3 and run the following SQL statement: select * from test: on the first run I only get one column in the result window which is the line number. If I then run the query again all of the colunms are displayed. Anyone know why this happens? regards Alan Bromley From nigel at ...38... Mon Dec 19 15:06:03 2005 From: nigel at ...38... (nigel at ...38...) Date: Mon, 19 Dec 2005 15:06:03 +0100 (CET) Subject: [Gambas-user] sqlite3 test database Message-ID: <25661370.1135001163330.JavaMail.www@...792...> Alan, Could you provide an example of your code. Many thanks Nigel > Message Received: Dec 19 2005, 01:42 PM > From: "Alan at ...1278..." > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] sqlite3 test database > > Hi, > > I have created a SQLite3 test database using the database example in the > 1.9.22 distribution. > > All 10000 entries in the test table seem to be present. > > However if I load the database example into gambas3 and run the > following SQL statement: > > select * from test: > > on the first run I only get one column in the result window which is > the line number. > If I then run the query again all of the colunms are displayed. > > Anyone know why this happens? > > regards > > Alan Bromley > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 nando_f at ...951... Mon Dec 19 16:12:26 2005 From: nando_f at ...951... (nando) Date: Mon, 19 Dec 2005 10:12:26 -0500 Subject: [Gambas-user] New Doc: EVENT LOOP question In-Reply-To: <200512191356.53083.gambas@...1...> References: <20051219124522.M89973@...951...> <200512191356.53083.gambas@...1...> Message-ID: <20051219150752.M75446@...951...> My question was really supposed to be something like: If I write a SUB with a very long running process and I use WAIT inside it, my Gambas program will eventually die from stack overflow? Does the stack get fixed up (popped) when the very long running SUB finishes...do all the WAIT calls get returned ?? -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Mon, 19 Dec 2005 13:56:52 +0100 Subject: Re: [Gambas-user] New Doc: EVENT LOOP question > On Monday 19 December 2005 13:48, nando wrote: > > Benoit, > > > > In the section... http://www.gambasdoc.org/help/cat/eventloop > > > > there is a phrase... > > You can call recursively the event loop by using the WAIT instruction. This > > may lead to infinite recursion, but this is the only way to refresh the > > user interface while doing a long processing. > > > > My question is: Recursion means that a CALL is performed and the stack is > > pushed. So, infinite recursion really leads to a stack overflow. > > Is this true ? > > > > -Fernando > > > > Yes! > > -- > Benoit Minisini > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Mon Dec 19 16:31:50 2005 From: nando_f at ...951... (nando) Date: Mon, 19 Dec 2005 10:31:50 -0500 Subject: [Gambas-user] New Doc: EVENT LOOP question In-Reply-To: <20051219150752.M75446@...951...> References: <20051219124522.M89973@...951...> <200512191356.53083.gambas@...1...> <20051219150752.M75446@...951...> Message-ID: <20051219152940.M79769@...951...> Actually, the WAIT must RETURN because the code picks up where it left off at (when the WAIT was performed) Does the Interpreter stack fill up or real stack fill up. -Fernando ---------- Original Message ----------- From: "nando" To: gambas-user at lists.sourceforge.net Sent: Mon, 19 Dec 2005 10:12:26 -0500 Subject: Re: [Gambas-user] New Doc: EVENT LOOP question > My question was really supposed to be something like: > > If I write a SUB with a very long running process and I use WAIT > inside it, my Gambas program will eventually die from stack overflow? > Does the stack get fixed up (popped) when the very long running SUB > finishes...do all the WAIT calls get returned ?? > > -Fernando > > ---------- Original Message ----------- > From: Benoit Minisini > To: gambas-user at lists.sourceforge.net > Sent: Mon, 19 Dec 2005 13:56:52 +0100 > Subject: Re: [Gambas-user] New Doc: EVENT LOOP question > > > On Monday 19 December 2005 13:48, nando wrote: > > > Benoit, > > > > > > In the section... http://www.gambasdoc.org/help/cat/eventloop > > > > > > there is a phrase... > > > You can call recursively the event loop by using the WAIT instruction. This > > > may lead to infinite recursion, but this is the only way to refresh the > > > user interface while doing a long processing. > > > > > > My question is: Recursion means that a CALL is performed and the stack is > > > pushed. So, infinite recursion really leads to a stack overflow. > > > Is this true ? > > > > > > -Fernando > > > > > > > Yes! > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From eilert-sprachen at ...221... Mon Dec 19 16:43:24 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 19 Dec 2005 16:43:24 +0100 Subject: [Gambas-user] How to get rid of an object Message-ID: <43A6D51C.6010606@...221...> I want to build a dynamic input mask showing TextBoxes and stuff accordingly to what the user clicks on. So I produce some objects, this is an example code: PRIVATE mTxt AS NEW Object[] 'Testcode DIM tt AS TextBox IF mTxt.Count < 1 THEN tt = NEW TextBox(Maske) mTxt.Add(tt) mTxt[0].X = 10 mTxt[0].Y = 10 mTxt[0].Text = "hallo" Maske.Index = 2 tt = NEW TextBox(Maske) mTxt.Add(tt) mTxt[1].X = 10 mTxt[1].Y = 10 mTxt[1].Text = "hallo 2" END IF 'Testcode Ende Up to here no problem, two new TextBoxes appear as desired. But when the user clicks on another element, the TextBoxes are to disappear, and when the user re-enters this kind of element, the whole array has to build up from scratch to avoid confusion in numbering and managing the input elements. To have a start, i just inserted mTxt.Clear into another SUB which handles another kind of element, but the TextBoxes do not disappear. What can I do? Thanks for all ideas! Rolf From isy21 at ...1082... Tue Dec 20 10:34:44 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Tue, 20 Dec 2005 16:34:44 +0700 Subject: [Gambas-user] Error ??? Message-ID: <200512201634.45425.isy21@...1082...> hi all, What this error means ?, sometimes if i run me.close it display this WARNING: circular references detected Fconn (1) Fmainmenu (1) Mutex destroy failure: Device or resource busy WARNING: 98 allocation(s) non freed. Fconn are call database and will show fmainmenu.showmodal fmainmenu, if i choose sub menu when command its finvoice.showmodal finvoice, if choose button exit [button exit contains command me.close then that error will occurs . I didn't find circulas references, maybe i show fconn.showmodal then call fmainmenu.showmodal then finvoice.showmodal ? -- Regards, Ignatius Syofian From isy21 at ...1082... Tue Dec 20 10:46:11 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Tue, 20 Dec 2005 16:46:11 +0700 Subject: [Gambas-user] button x Message-ID: <200512201646.11386.isy21@...1082...> Hi all, How can i hidden x button on top-right screen in my application ? What i means is If user run another file like file manager, then button x on top right screen still be exists, but not in my gambas application. If i edit in contol center, it will generally affect all application. I just want only in my gambas application. Can i do that ? -- Regards, Ignatius Syofian From alan at ...1281... Tue Dec 20 11:44:05 2005 From: alan at ...1281... (Alan Bromley) Date: Tue, 20 Dec 2005 10:44:05 +0000 Subject: [Gambas-user] sqlite3 test database Message-ID: <43A7E075.9090106@...1281...> Nigel The code used is the database expmple in the 1.9.22 distribution. The parameters used in the startup screen are: TYPE: sqlite3 (this is not one of the option in the combo box . So select sqlite and add the 3) HOST: /data/sqlite3 (directory created before the first run) DATABASE test On the first run the create database option was on. This created the database. Then enter " select * from test " into the SQL request box and run the query. If you get the correct result the first time close gambas2 and start again using the same parametors. ALAN Alan, Could you provide an example of your code. Many thanks Nigel > > Message Received: Dec 19 2005, 01:42 PM > > From: "Alan at ...1278..." > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: [Gambas-user] sqlite3 test database > > > > Hi, > > > > I have created a SQLite3 test database using the database example in the > > 1.9.22 distribution. > > > > All 10000 entries in the test table seem to be present. > > > > However if I load the database example into gambas3 and run the > > following SQL statement: > > > > select * from test: > > > > on the first run I only get one column in the result window which is > > the line number. > > If I then run the query again all of the colunms are displayed. > > > > Anyone know why this happens? > > > > regards > > > > Alan Bromley From jfabiani at ...1109... Tue Dec 20 09:32:48 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 20 Dec 2005 00:32:48 -0800 Subject: [Gambas-user] does each line of code finish before continuing In-Reply-To: <43A6D51C.6010606@...221...> References: <43A6D51C.6010606@...221...> Message-ID: <200512200032.48658.jfabiani@...1109...> Hi, Let say I have a database program that asks for data will the program wait for the result before excuting the next line of code? sql statement do something the result set. John From pierre.guilhem at ...1282... Tue Dec 20 13:17:53 2005 From: pierre.guilhem at ...1282... (Pierre GUILHEM) Date: Tue, 20 Dec 2005 13:17:53 +0100 Subject: [Gambas-user] Article of presentation of Gambas in french language Message-ID: <200512201317.53134.pierre.guilhem@...1282...> Hello, we have just put on line an article of presentation of Gambas at the address: http://apldi.info/ for the moment our Internet site is not at 100% operational, it is expected that it is to it at the beginning of 2006. Pierre GUILHEM From marcoguz at ...412... Tue Dec 20 13:25:47 2005 From: marcoguz at ...412... (Marco Gusy) Date: Tue, 20 Dec 2005 13:25:47 +0100 Subject: [Gambas-user] Gambas components: howto? Message-ID: <200512201325.48256.marcoguz@...412...> Hi, i heard gambas (or maybe gambas2) started supporting user controls. However i didn't find anywhere any documentation about this. Is there any example/code/howto on how to develop components, insert them in forms, adding events/properties etc? Thanks Marco From gambas at ...1... Tue Dec 20 15:05:21 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Dec 2005 15:05:21 +0100 Subject: [Gambas-user] Gambas components: howto? In-Reply-To: <200512201325.48256.marcoguz@...412...> References: <200512201325.48256.marcoguz@...412...> Message-ID: <200512201505.21356.gambas@...1...> On Tuesday 20 December 2005 13:25, Marco Gusy wrote: > Hi, i heard gambas (or maybe gambas2) started supporting user controls. > However i didn't find anywhere any documentation about this. > Is there any example/code/howto on how to develop components, insert them > in forms, adding events/properties etc? > > Thanks > > Marco > There is no documentation at the moment, because things are not definitive. But you will see many examples of controls made in Gambas in the gb.form component of the development version. The source code is in the 'comp' directory of the source tree. Regards, -- Benoit Minisini From gambas at ...1... Tue Dec 20 15:08:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Dec 2005 15:08:05 +0100 Subject: [Gambas-user] Error ??? In-Reply-To: <200512201634.45425.isy21@...1082...> References: <200512201634.45425.isy21@...1082...> Message-ID: <200512201508.06055.gambas@...1...> On Tuesday 20 December 2005 10:34, Ignatius Syofian wrote: > hi all, > > What this error means ?, sometimes if i run me.close it display this > > WARNING: circular references detected > Fconn (1) > Fmainmenu (1) > Mutex destroy failure: Device or resource busy > WARNING: 98 allocation(s) non freed. > > > Fconn are call database and will show fmainmenu.showmodal > fmainmenu, if i choose sub menu when command its finvoice.showmodal > finvoice, if choose button exit [button exit contains command me.close > then that error will occurs . > > I didn't find circulas references, maybe i show fconn.showmodal then call > fmainmenu.showmodal then finvoice.showmodal ? It seems that one object of the Fconn class owns a reference on an object of FMainmenu class, and vice versa. Post your project, so that one can tell you more. -- Benoit Minisini From gambas at ...1... Tue Dec 20 15:08:21 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Dec 2005 15:08:21 +0100 Subject: [Gambas-user] button x In-Reply-To: <200512201646.11386.isy21@...1082...> References: <200512201646.11386.isy21@...1082...> Message-ID: <200512201508.21444.gambas@...1...> On Tuesday 20 December 2005 10:46, Ignatius Syofian wrote: > Hi all, > > How can i hidden x button on top-right screen in my application ? > What i means is If user run another file like file manager, then button x > on top right screen still be exists, but not in my gambas application. > > If i edit in contol center, it will generally affect all application. > I just want only in my gambas application. > > Can i do that ? What are you talking about? -- Benoit Minisini From nigel at ...38... Tue Dec 20 15:22:56 2005 From: nigel at ...38... (nigel at ...38...) Date: Tue, 20 Dec 2005 15:22:56 +0100 (CET) Subject: [Gambas-user] sqlite3 test database Message-ID: <3560937.1135088576083.JavaMail.www@...1027...> Alan, I cannot reproduce the problem that you have identified. I am using 1.9.22 with sqlite3 (3.1.2 ... I know the current is 3.2.7). I will try with a later version. My sequence: enter location with host, database test, username. With option to create database clicked. ---> Connect -->Create table --> Fill table Enter select * from test --> Run regards Nigel > Message Received: Dec 20 2005, 10:45 AM > From: "Alan Bromley" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] sqlite3 test database > > Nigel > > The code used is the database expmple in the 1.9.22 distribution. > > The parameters used in the startup screen are: > > TYPE: sqlite3 (this is not one of the option > in the combo box . > So select > sqlite and add the 3) > HOST: /data/sqlite3 (directory created before > the first run) > DATABASE test > > On the first run the create database option was on. > This created the database. > > Then enter " select * from test " into the SQL request box > and run the query. > > If you get the correct result the first time close gambas2 and start > again using the same parametors. > > ALAN > > Alan, Could you provide an example of your code. Many thanks Nigel > > > > Message Received: Dec 19 2005, 01:42 PM > > > From: "Alan at ...1278..." > > > To: gambas-user at lists.sourceforge.net > > > Cc: > > > Subject: [Gambas-user] sqlite3 test database > > > > > > Hi, > > > > > > I have created a SQLite3 test database using the database example in the > > > 1.9.22 distribution. > > > > > > All 10000 entries in the test table seem to be present. > > > > > > However if I load the database example into gambas3 and run the > > > following SQL statement: > > > > > > select * from test: > > > > > > on the first run I only get one column in the result window which is > > > the line number. > > > If I then run the query again all of the colunms are displayed. > > > > > > Anyone know why this happens? > > > > > > regards > > > > > > Alan Bromley > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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... Tue Dec 20 19:51:13 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 20 Dec 2005 13:51:13 -0500 Subject: [Gambas-user] button x In-Reply-To: <200512201646.11386.isy21@...1082...> References: <200512201646.11386.isy21@...1082...> Message-ID: <200512201351.14064.sourceforge-raindog2@...94...> On Tue December 20 2005 04:46, Ignatius Syofian wrote: > How can i hidden x button on top-right screen in my > application ? What i means is If user run another file like > file manager, then button x on top right screen still be > exists, but not in my gambas application. I think you may need to set your form's Border property to None and then set up some event handlers to allow the user to drag the window around (if you want him to.) If you just want to be able to prevent the user from closing the form, you should try putting STOP EVENT in the Form_Close method of your form. It won't stop him from killing the program, but the X button should have no effect. Rob From sourceforge-raindog2 at ...94... Tue Dec 20 19:44:44 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 20 Dec 2005 13:44:44 -0500 Subject: [Gambas-user] does each line of code finish before continuing In-Reply-To: <200512200032.48658.jfabiani@...1109...> References: <43A6D51C.6010606@...221...> <200512200032.48658.jfabiani@...1109...> Message-ID: <200512201344.44934.sourceforge-raindog2@...94...> On Tue December 20 2005 03:32, johnf wrote: > Let say I have a database program that asks for data will the > program wait for the result before excuting the next line of > code? Yeah, Exec is a blocking method (the program doesn't continue going until it returns.) I'm not sure whether Timer events fire during a long running query because I haven't had any long running queries with Gambas and MySQL yet. BTW, Benoit, the link to Connection.Exec is broken in the new wiki. See http://www.gambasdoc.org/help/comp/gb.db/connection for the bad link. I'd just create the page except I assume it's supposed to be getting auto-generated. Rob From jfabiani at ...1109... Tue Dec 20 20:55:01 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 20 Dec 2005 11:55:01 -0800 Subject: [Gambas-user] does each line of code finish before continuing In-Reply-To: <200512201344.44934.sourceforge-raindog2@...94...> References: <43A6D51C.6010606@...221...> <200512200032.48658.jfabiani@...1109...> <200512201344.44934.sourceforge-raindog2@...94...> Message-ID: <200512201155.01858.jfabiani@...1109...> On Tuesday 20 December 2005 10:44, Rob Kudla wrote: > On Tue December 20 2005 03:32, johnf wrote: > > Let say I have a database program that asks for data will the > > program wait for the result before excuting the next line of > > code? > > Yeah, Exec is a blocking method (the program doesn't continue > going until it returns.) > > I'm not sure whether Timer events fire during a long running > query because I haven't had any long running queries with Gambas > and MySQL yet. > > BTW, Benoit, the link to Connection.Exec is broken in the new > wiki. See http://www.gambasdoc.org/help/comp/gb.db/connection > for the bad link. I'd just create the page except I assume it's > supposed to be getting auto-generated. > > Rob Thanks for the info.. This works for me. John From gambas at ...1... Wed Dec 21 00:32:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Dec 2005 00:32:28 +0100 Subject: [Gambas-user] does each line of code finish before continuing In-Reply-To: <200512201344.44934.sourceforge-raindog2@...94...> References: <43A6D51C.6010606@...221...> <200512200032.48658.jfabiani@...1109...> <200512201344.44934.sourceforge-raindog2@...94...> Message-ID: <200512210032.29050.gambas@...1...> On Tuesday 20 December 2005 19:44, Rob Kudla wrote: > On Tue December 20 2005 03:32, johnf wrote: > > Let say I have a database program that asks for data will the > > program wait for the result before excuting the next line of > > code? > > Yeah, Exec is a blocking method (the program doesn't continue > going until it returns.) > > I'm not sure whether Timer events fire during a long running > query because I haven't had any long running queries with Gambas > and MySQL yet. > > BTW, Benoit, the link to Connection.Exec is broken in the new > wiki. See http://www.gambasdoc.org/help/comp/gb.db/connection > for the bad link. I'd just create the page except I assume it's > supposed to be getting auto-generated. > > Rob > It was not "broken", it is just that I didn't edit it yet. Regards, -- Benoit Minisini From isy21 at ...1082... Wed Dec 21 03:35:32 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 21 Dec 2005 09:35:32 +0700 Subject: [Gambas-user] button x In-Reply-To: <200512201508.21444.gambas@...1...> References: <200512201646.11386.isy21@...1082...> <200512201508.21444.gambas@...1...> Message-ID: <200512210935.33642.isy21@...1082...> Hi, Benoit I means, in running form you will find top right screen is "x" button. i put close button in form,therefore i don't want user use "x" button on top right screen to close application On Tuesday 20 December 2005 21:08, Benoit Minisini wrote: > On Tuesday 20 December 2005 10:46, Ignatius Syofian wrote: > > Hi all, > > > > How can i hidden x button on top-right screen in my application ? > > What i means is If user run another file like file manager, then button x > > on top right screen still be exists, but not in my gambas application. > > > > If i edit in contol center, it will generally affect all application. > > I just want only in my gambas application. > > > > Can i do that ? > > What are you talking about? -- Regards, Ignatius Syofian From isy21 at ...1082... Wed Dec 21 04:35:43 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 21 Dec 2005 10:35:43 +0700 Subject: [Gambas-user] button x In-Reply-To: <200512201351.14064.sourceforge-raindog2@...94...> References: <200512201646.11386.isy21@...1082...> <200512201351.14064.sourceforge-raindog2@...94...> Message-ID: <200512211035.44240.isy21@...1082...> Thanks Rob, another question if i set form border=none, than modul name not display. It means i must put a texlabel on top form to replace that. If i use STOP EVENT in Form_Close method. If i click Exit button i created (containts command Me.close) it not work anymore. Maybe i choose to set form border=none and i put a textlabel on top of form. OR some other method maybe .... just wondering but thanks anyway...it's so much help On Wednesday 21 December 2005 01:51, Rob Kudla wrote: > On Tue December 20 2005 04:46, Ignatius Syofian wrote: > > How can i hidden x button on top-right screen in my > > application ? What i means is If user run another file like > > file manager, then button x on top right screen still be > > exists, but not in my gambas application. > > I think you may need to set your form's Border property to None > and then set up some event handlers to allow the user to drag > the window around (if you want him to.) > > If you just want to be able to prevent the user from closing the > form, you should try putting STOP EVENT in the Form_Close method > of your form. It won't stop him from killing the program, but > the X button should have no effect. > > Rob > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Ignatius Syofian From sourceforge-raindog2 at ...94... Wed Dec 21 06:16:42 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 21 Dec 2005 00:16:42 -0500 Subject: [Gambas-user] button x In-Reply-To: <200512211035.44240.isy21@...1082...> References: <200512201646.11386.isy21@...1082...> <200512201351.14064.sourceforge-raindog2@...94...> <200512211035.44240.isy21@...1082...> Message-ID: <200512210016.42402.sourceforge-raindog2@...94...> On Tue December 20 2005 22:35, Ignatius Syofian wrote: > If i use STOP EVENT in Form_Close method. If i click Exit > button i created (containts command Me.close) it not work > anymore. OK, here's some pseudo-code to give you an idea. public OKToClose as Boolean sub Form_Open OKToClose = False end sub Exitbutton_Close OKToClose = True Me.Close end sub Form_Close If Not OKToClose Then STOP EVENT end Rob From isy21 at ...1082... Wed Dec 21 07:03:05 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 21 Dec 2005 13:03:05 +0700 Subject: [Gambas-user] button x In-Reply-To: <200512210016.42402.sourceforge-raindog2@...94...> References: <200512201646.11386.isy21@...1082...> <200512211035.44240.isy21@...1082...> <200512210016.42402.sourceforge-raindog2@...94...> Message-ID: <200512211303.05822.isy21@...1082...> GREAT.... I like it. many many thanks for your help... On Wednesday 21 December 2005 12:16, Rob Kudla wrote: > On Tue December 20 2005 22:35, Ignatius Syofian wrote: > > If i use STOP EVENT in Form_Close method. If i click Exit > > button i created (containts command Me.close) it not work > > anymore. > > OK, here's some pseudo-code to give you an idea. > > public OKToClose as Boolean > > sub Form_Open > OKToClose = False > end > > sub Exitbutton_Close > OKToClose = True > Me.Close > end > > sub Form_Close > If Not OKToClose Then STOP EVENT > end > > Rob > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Ignatius Syofian From eilert-sprachen at ...221... Wed Dec 21 08:28:42 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 21 Dec 2005 08:28:42 +0100 Subject: [Gambas-user] Killing objects? Urgent Message-ID: <43A9042A.5050809@...221...> This is important for me and my project :-) I create an input mask dynamically. Here is an example: PRIVATE mTxt AS NEW Object[] DIM tt AS TextBox tt = NEW TextBox(Maske) 'Maske is a TabView which shows the input elements mTxt.Add(tt) mTxt[0].X = 10 mTxt[0].Y = 10 mTxt[0].Text = "hallo" Now, this will not kill the TextBox, but for my understanding it should: mTxt.Clear How else can I get rid of the objects? Thanks for every insight. Rolf From isy21 at ...1082... Wed Dec 21 08:34:37 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 21 Dec 2005 14:34:37 +0700 Subject: [Gambas-user] showmodal Message-ID: <200512211434.38232.isy21@...1082...> hi all, I have another question about calling sub form in gambas. If i klik gbtn button, then i check password and if ok i call fmainmenu form. fmainmenu form is my application menu, from here i can choose any transaction i want (in example, i can choose create new invoice, create payment etc) The problem is, if i debug to see what running obj, if found my first file fconn (where i use to check password), not close, why ? If i choose one of my menu in fmainmenu and then i close that subform then i not see list of that object again in debug. I think it's ok But why fconn always show in debug ?. I paste the source code here. maybe i wrong calling mainmenu from gbtn_keypress ? My Source code of form fconn : ' Gambas class file PUBLIC SUB Form_Open() ME.center txtuser.Text=system.User label7.text="Your ip address" label8.Text=application.Version END PUBLIC SUB ginput_KeyPress() IF Key.code=Key.enter OR Key.code=Key.return THEN SELECT CASE LAST.tag CASE 3 txtpassword.setfocus CASE 4 my_connect END SELECT END IF END PUBLIC SUB gbtn_Click() My_Connect 'validation of chg password END PUBLIC SUB My_Connect() DIM dbname AS String 'Database name DIM tbname AS String 'Table name DIM htable AS Table SELECT CASE LAST.tag CASE 1,4 'connect button dbname="dolphin" tbname="temployee" WITH Mglobal .btnok="&Yes" .btnno="&No" 'check if the logins corrects or not IF .conn(txthost.text, txtuser.text, txtpassword.text,txtport.Text)=TRUE THEN 'create the database and tables if not exist yet IF NOT .db.Databases.Exist(dbname) THEN .db.Databases.Add(dbname) .db.Close .db.Name=dbname .db.Open 'create the tables if it isn't exist yet IF NOT .db.Tables.Exist(tbname) THEN htable=.db.Tables.Add(tbname) htable.Fields.Add("femployee", gb.String, 14) htable.Fields.Add("ffullname", gb.String, 35) htable.PrimaryKey=["femployee"] htable.Update END IF ELSE 'use the database .db.Close .db.Name=dbname .db.Open END IF 'open system file .rs=.db.Exec("select * from taccessoutlet where fuser='" & txtuser.Text & "'") IF .rs.Count=0 THEN 'means no access RETURN ELSE IF .rs.Count=1 THEN 'means only 1 outlet allowed .sys_myoutlet=.rs!foutlet ELSE .sys_myoutlet=900 'means more than 1 outlet allowed ENDIF ENDIF 'get system parameter '1. report path .rs=.db.Exec("select * from tparameter where findex=0") IF .rs.Count=0 THEN .sys_MyReportPath="/home/" ELSE .sys_MyReportPath=.rs!fparamc1 ENDIF '2. image path .rs=.db.Exec("select * from tparameter where findex=1") IF .rs.Count=0 THEN .sys_MyImagePath="/home/" ELSE .sys_MyImagePath=.rs!fparamc1 ENDIF 'update logon date .rsTemp=.db.Exec("update tuserlog set flogin=now() where fuser='" & txtuser.Text & "'") ME.close Fmainmenu.ShowModal ELSE 'login bad .rsTemp=.db.Exec("update tuserlog set fbad=now() where fuser='" & txtuser.Text & "'") END IF END WITH CASE 2 'cancel button ME.close END SELECT CATCH Message.Error(Error.Text) END -- Regards, Ignatius Syofian From eilert-sprachen at ...221... Wed Dec 21 10:01:19 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 21 Dec 2005 10:01:19 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <43A9042A.5050809@...221...> References: <43A9042A.5050809@...221...> Message-ID: <43A919DF.3090709@...221...> I think I've got it. This way, it uses the .Delete method of the TextBoxes themselves. Only after that, the array is cleared: FOR i = mTxt.Count - 1 TO 0 STEP -1 mTxt[i].Delete NEXT mTxt.Clear This seems to do what I wanted - is it correct, or will it crash one day? Rolf Eilert schrieb: > This is important for me and my project :-) > > I create an input mask dynamically. Here is an example: > > > PRIVATE mTxt AS NEW Object[] > > > DIM tt AS TextBox > tt = NEW TextBox(Maske) 'Maske is a TabView which shows the input > elements > mTxt.Add(tt) > mTxt[0].X = 10 > mTxt[0].Y = 10 > mTxt[0].Text = "hallo" > > > Now, this will not kill the TextBox, but for my understanding it should: > > mTxt.Clear > > How else can I get rid of the objects? > > Thanks for every insight. > > Rolf > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From marcoguz at ...412... Wed Dec 21 11:48:43 2005 From: marcoguz at ...412... (Marco Gusy) Date: Wed, 21 Dec 2005 11:48:43 +0100 Subject: [Gambas-user] Gambas components: howto? In-Reply-To: <200512201505.21356.gambas@...1...> References: <200512201325.48256.marcoguz@...412...> <200512201505.21356.gambas@...1...> Message-ID: <200512211148.44026.marcoguz@...412...> Alle 15:05, marted? 20 dicembre 2005, Benoit Minisini ha scritto: > > There is no documentation at the moment, because things are not definitive. > But you will see many examples of controls made in Gambas in the gb.form > component of the development version. The source code is in the 'comp' > directory of the source tree. > > Regards, Great! Thanks, i'm studying them. A new question: I would like to copy the behaviour of the gridview control. I mean when i reference to it as "gridview. " it points to gridview properties, but when I write "gridview[1,2]. " it points to a single cell. How can I emulate this? Thanks Marco From alan at ...1281... Wed Dec 21 12:37:12 2005 From: alan at ...1281... (Alan Bromley) Date: Wed, 21 Dec 2005 11:37:12 +0000 Subject: [Gambas-user] sqlite3 test database Message-ID: <43A93E68.40401@...1281...> Alan, I cannot reproduce the problem that you have identified. I am using 1.9.22 with sqlite3 (3.1.2 ... I know the current is 3.2.7). I will try with a later version. My sequence: enter location with host, database test, username. With option to create database clicked. ---> Connect -->Create table --> Fill table Enter select * from test --> Run regards Nigel > > Message Received: Dec 20 2005, 10:45 AM > > From: "Alan Bromley" > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: [Gambas-user] sqlite3 test database > > > > Nigel > > > > The code used is the database expmple in the 1.9.22 distribution. > > > > The parameters used in the startup screen are: > > > > TYPE: sqlite3 (this is not one of the option > > in the combo box . > > So select > > sqlite and add the 3) > > HOST: /data/sqlite3 (directory created before > > the first run) > > DATABASE test > > > > On the first run the create database option was on. > > This created the database. > > > > Then enter " select * from test " into the SQL request box > > and run the query. > > > > If you get the correct result the first time close gambas2 and start > > again using the same parametors. > > > > ALAN > > > > Alan, Could you provide an example of your code. Many thanks Nigel > > > >>> > > > Message Received: Dec 19 2005, 01:42 PM >>> > > > From: "Alan at ...1278..." >>> > > > To: gambas-user at lists.sourceforge.net >>> > > > Cc: >>> > > > Subject: [Gambas-user] sqlite3 test database >>> > > > >>> > > > Hi, >>> > > > >>> > > > I have created a SQLite3 test database using the database example in the >>> > > > 1.9.22 distribution. >>> > > > >>> > > > All 10000 entries in the test table seem to be present. >>> > > > >>> > > > However if I load the database example into gambas3 and run the >>> > > > following SQL statement: >>> > > > >>> > > > select * from test: >>> > > > >>> > > > on the first run I only get one column in the result window which is >>> > > > the line number. >>> > > > If I then run the query again all of the colunms are displayed. >>> > > > >>> > > > Anyone know why this happens? >>> > > > >>> > > > regards >>> > > > >>> > > > Alan Bromley >>> > The vesion of sqlite3 that I am using is 3.2.2 ALAN From gambas at ...1... Wed Dec 21 13:10:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Dec 2005 13:10:48 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <43A919DF.3090709@...221...> References: <43A9042A.5050809@...221...> <43A919DF.3090709@...221...> Message-ID: <200512211310.48576.gambas@...1...> On Wednesday 21 December 2005 10:01, Eilert wrote: > I think I've got it. This way, it uses the .Delete method of the > TextBoxes themselves. Only after that, the array is cleared: > > FOR i = mTxt.Count - 1 TO 0 STEP -1 > mTxt[i].Delete > NEXT > mTxt.Clear > > This seems to do what I wanted - is it correct, or will it crash one day? > > Rolf > Clear() only clears the text inside the textbox. It is equivalent to do mTxt.Text = "" But Delete() effectively destroys the control. Wasn't the documentation clear ? Regards, -- Benoit Minisini From nigel at ...38... Wed Dec 21 13:21:30 2005 From: nigel at ...38... (nigel at ...38...) Date: Wed, 21 Dec 2005 13:21:30 +0100 (CET) Subject: [Gambas-user] sqlite3 test database Message-ID: <3063197.1135167690026.JavaMail.www@...718...> I have tried with sqlite 3.2.7 and still cannot reproduce the behaviour you are experiencing. Without being able to, I will not be able to fix. Can other users test and feedback the rests? Many thanks Nigel > Message Received: Dec 21 2005, 11:38 AM > From: "Alan Bromley" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] sqlite3 test database > > Alan, I cannot reproduce the problem that you have identified. I am > using 1.9.22 with sqlite3 (3.1.2 ... I know the current is 3.2.7). I > will try with a later version. My sequence: enter location with host, > database test, username. With option to create database clicked. ---> > Connect -->Create table --> Fill table Enter select * from test --> Run > regards Nigel > > > > Message Received: Dec 20 2005, 10:45 AM > > > From: "Alan Bromley" > > > To: gambas-user at lists.sourceforge.net > > > Cc: > > > Subject: [Gambas-user] sqlite3 test database > > > > > > Nigel > > > > > > The code used is the database expmple in the 1.9.22 distribution. > > > > > > The parameters used in the startup screen are: > > > > > > TYPE: sqlite3 (this is not one of the option > > > in the combo box . > > > So select > > > sqlite and add the 3) > > > HOST: /data/sqlite3 (directory created before > > > the first run) > > > DATABASE test > > > > > > On the first run the create database option was on. > > > This created the database. > > > > > > Then enter " select * from test " into the SQL request box > > > and run the query. > > > > > > If you get the correct result the first time close gambas2 and start > > > again using the same parametors. > > > > > > ALAN > > > > > > Alan, Could you provide an example of your code. Many thanks Nigel > > > > > > >>> > > > Message Received: Dec 19 2005, 01:42 PM > >>> > > > From: "Alan at ...1278..." > >>> > > > To: gambas-user at lists.sourceforge.net > >>> > > > Cc: > >>> > > > Subject: [Gambas-user] sqlite3 test database > >>> > > > > >>> > > > Hi, > >>> > > > > >>> > > > I have created a SQLite3 test database using the database example in the > >>> > > > 1.9.22 distribution. > >>> > > > > >>> > > > All 10000 entries in the test table seem to be present. > >>> > > > > >>> > > > However if I load the database example into gambas3 and run the > >>> > > > following SQL statement: > >>> > > > > >>> > > > select * from test: > >>> > > > > >>> > > > on the first run I only get one column in the result window which is > >>> > > > the line number. > >>> > > > If I then run the query again all of the colunms are displayed. > >>> > > > > >>> > > > Anyone know why this happens? > >>> > > > > >>> > > > regards > >>> > > > > >>> > > > Alan Bromley > >>> > > The vesion of sqlite3 that I am using is 3.2.2 > ALAN > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 eilert-sprachen at ...221... Wed Dec 21 13:22:49 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 21 Dec 2005 13:22:49 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <200512211310.48576.gambas@...1...> References: <43A9042A.5050809@...221...> <43A919DF.3090709@...221...> <200512211310.48576.gambas@...1...> Message-ID: <43A94919.30008@...221...> Benoit Minisini schrieb: >On Wednesday 21 December 2005 10:01, Eilert wrote: > > >>I think I've got it. This way, it uses the .Delete method of the >>TextBoxes themselves. Only after that, the array is cleared: >> >> FOR i = mTxt.Count - 1 TO 0 STEP -1 >> mTxt[i].Delete >> NEXT >> mTxt.Clear >> >>This seems to do what I wanted - is it correct, or will it crash one day? >> >>Rolf >> >> >> > >Clear() only clears the text inside the textbox. It is equivalent to do >mTxt.Text = "" > >But Delete() effectively destroys the control. > >Wasn't the documentation clear ? > >Regards, > > > The documentation was clear, but I couldn't find how to kill the single controls. What I tried first was just mTxt.Clear, which should clear the array but did not kill the controls. But I didn't try mTxt[i].Clear as I clearly saw the difference :-) So, is it ok the way it's shown above? Rolf From gambas at ...1... Wed Dec 21 13:29:47 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Dec 2005 13:29:47 +0100 Subject: [Gambas-user] Gambas components: howto? In-Reply-To: <200512211148.44026.marcoguz@...412...> References: <200512201325.48256.marcoguz@...412...> <200512201505.21356.gambas@...1...> <200512211148.44026.marcoguz@...412...> Message-ID: <200512211329.47708.gambas@...1...> On Wednesday 21 December 2005 11:48, Marco Gusy wrote: > Alle 15:05, marted? 20 dicembre 2005, Benoit Minisini ha scritto: > > There is no documentation at the moment, because things are not > > definitive. But you will see many examples of controls made in Gambas in > > the gb.form component of the development version. The source code is in > > the 'comp' directory of the source tree. > > > > Regards, > > Great! Thanks, i'm studying them. > A new question: I would like to copy the behaviour of the gridview control. > I mean when i reference to it as "gridview. " it points to gridview > properties, but when I write "gridview[1,2]. " it points to a single cell. > How can I emulate this? > > Thanks > > Marco > To use an object like an array, you must implement the _put and _get special methods: Example: ' Sets the value of myObject[Index1, Index2] PUBLIC SUB _put(Value AS String, Index1 AS Integer, Index2 AS Integer) END ' Returns the value of myObject[Index1, Index2] PUBLIC FUNCTION _get(Index1 AS Integer, Index2 AS Integer) AS String END The only difference between components written in C/C++ and those written in Gambas, except speed :-) is that you cannot write "virtual" classes in Gambas. "Virtual" in the Gambas sense, not the C++ one. See the Lexicon in the new wiki for more information. So if you just have to create and return true objects if you want to have the same behaviour than gridview[x,y]. Regards, -- Benoit Minisini From gambas at ...1... Wed Dec 21 13:30:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Dec 2005 13:30:12 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <43A94919.30008@...221...> References: <43A9042A.5050809@...221...> <200512211310.48576.gambas@...1...> <43A94919.30008@...221...> Message-ID: <200512211330.12747.gambas@...1...> On Wednesday 21 December 2005 13:22, Eilert wrote: > Benoit Minisini schrieb: > >On Wednesday 21 December 2005 10:01, Eilert wrote: > >>I think I've got it. This way, it uses the .Delete method of the > >>TextBoxes themselves. Only after that, the array is cleared: > >> > >> FOR i = mTxt.Count - 1 TO 0 STEP -1 > >> mTxt[i].Delete > >> NEXT > >> mTxt.Clear > >> > >>This seems to do what I wanted - is it correct, or will it crash one day? > >> > >>Rolf > > > >Clear() only clears the text inside the textbox. It is equivalent to do > >mTxt.Text = "" > > > >But Delete() effectively destroys the control. > > > >Wasn't the documentation clear ? > > > >Regards, > > The documentation was clear, but I couldn't find how to kill the single > controls. > > What I tried first was just mTxt.Clear, which should clear the array but > did not kill the controls. But I didn't try mTxt[i].Clear as I clearly > saw the difference :-) > > So, is it ok the way it's shown above? > > Rolf > Yes! -- Benoit Minisini From alan at ...1281... Wed Dec 21 16:26:44 2005 From: alan at ...1281... (Alan Bromley) Date: Wed, 21 Dec 2005 15:26:44 +0000 Subject: [Gambas-user] SQLite test database Message-ID: <43A97434.6090308@...1281...> NIGEL, I have now tried to reproduce the fault on another computer with different results: 1: The problem seems not to be quite as i first describe. Infact the "missing" columns are there but the column width has increased to the point where it is very difficult to find the data. 2; On the first computer the fault appeared only one first attempt to display the table. On the second one the first display was correct second and subsequent displays where of the wide column type 3: I have now tried loading SQlite3.2.8 with the same result 4; Sqlite as apposed sqlite3 diplays the table correctly at all times on both computers. Thak for your help Alan I have tried with sqlite 3.2.7 and still cannot reproduce the behaviour you are experiencing. Without being able to, I will not be able to fix. Can other users test and feedback the rests? Many thanks Nigel > > Message Received: Dec 21 2005, 11:38 AM > > From: "Alan Bromley" > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: [Gambas-user] sqlite3 test database > > > > Alan, I cannot reproduce the problem that you have identified. I am > > using 1.9.22 with sqlite3 (3.1.2 ... I know the current is 3.2.7). I > > will try with a later version. My sequence: enter location with host, > > database test, username. With option to create database clicked. ---> > > Connect -->Create table --> Fill table Enter select * from test --> Run > > regards Nigel > > > >>> > > > Message Received: Dec 20 2005, 10:45 AM >>> > > > From: "Alan Bromley" >>> > > > To: gambas-user at lists.sourceforge.net >>> > > > Cc: >>> > > > Subject: [Gambas-user] sqlite3 test database >>> > > > >>> > > > Nigel >>> > > > >>> > > > The code used is the database expmple in the 1.9.22 distribution. >>> > > > >>> > > > The parameters used in the startup screen are: >>> > > > >>> > > > TYPE: sqlite3 (this is not one of the option >>> > > > in the combo box . >>> > > > So select >>> > > > sqlite and add the 3) >>> > > > HOST: /data/sqlite3 (directory created before >>> > > > the first run) >>> > > > DATABASE test >>> > > > >>> > > > On the first run the create database option was on. >>> > > > This created the database. >>> > > > >>> > > > Then enter " select * from test " into the SQL request box >>> > > > and run the query. >>> > > > >>> > > > If you get the correct result the first time close gambas2 and start >>> > > > again using the same parametors. >>> > > > >>> > > > ALAN >>> > > > >>> > > > Alan, Could you provide an example of your code. Many thanks Nigel >>> > > > >>> >> > > >> >>>>>>> > >>> > > > Message Received: Dec 19 2005, 01:42 PM >>>>>>> > >>> > > > From: "Alan at ...1278..." >>>>>>> > >>> > > > To: gambas-user at lists.sourceforge.net >>>>>>> > >>> > > > Cc: >>>>>>> > >>> > > > Subject: [Gambas-user] sqlite3 test database >>>>>>> > >>> > > > >>>>>>> > >>> > > > Hi, >>>>>>> > >>> > > > >>>>>>> > >>> > > > I have created a SQLite3 test database using the database example in the >>>>>>> > >>> > > > 1.9.22 distribution. >>>>>>> > >>> > > > >>>>>>> > >>> > > > All 10000 entries in the test table seem to be present. >>>>>>> > >>> > > > >>>>>>> > >>> > > > However if I load the database example into gambas3 and run the >>>>>>> > >>> > > > following SQL statement: >>>>>>> > >>> > > > >>>>>>> > >>> > > > select * from test: >>>>>>> > >>> > > > >>>>>>> > >>> > > > on the first run I only get one column in the result window which is >>>>>>> > >>> > > > the line number. >>>>>>> > >>> > > > If I then run the query again all of the colunms are displayed. >>>>>>> > >>> > > > >>>>>>> > >>> > > > Anyone know why this happens? >>>>>>> > >>> > > > >>>>>>> > >>> > > > regards >>>>>>> > >>> > > > >>>>>>> > >>> > > > Alan Bromley >>>>>>> >>>> > >>> >>>> >> > > The vesion of sqlite3 that I am using is 3.2.2 >> > > ALAN > > > > > > > > ------------------------------------------------------- From Wsouzap at ...87... Wed Dec 21 16:55:12 2005 From: Wsouzap at ...87... (Wsouzap at ...87...) Date: Wed, 21 Dec 2005 10:55:12 -0500 Subject: [Gambas-user] Very Happy Christmas Message-ID: <62E4FA1E.59A4DCB0.001B903D@...87...> We wish for all of our Friends and Partners a 2005 ending fully of good news and Very Happy Christmas!!! We truly hope that 2006 brings peace to our hearts, determination, a lot of personal and professional accomplishments getting success and happiness to all of you and to your parents!!!! These are the sincerely votes from the Wellington de Souza. From eilert-sprachen at ...221... Wed Dec 21 18:13:21 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 21 Dec 2005 18:13:21 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <200512211330.12747.gambas@...1...> References: <43A9042A.5050809@...221...> <200512211310.48576.gambas@...1...> <43A94919.30008@...221...> <200512211330.12747.gambas@...1...> Message-ID: <43A98D31.5040705@...221...> Benoit Minisini schrieb: >On Wednesday 21 December 2005 13:22, Eilert wrote: > > >>Benoit Minisini schrieb: >> >> >>>On Wednesday 21 December 2005 10:01, Eilert wrote: >>> >>> >>>>I think I've got it. This way, it uses the .Delete method of the >>>>TextBoxes themselves. Only after that, the array is cleared: >>>> >>>> FOR i = mTxt.Count - 1 TO 0 STEP -1 >>>> mTxt[i].Delete >>>> NEXT >>>> mTxt.Clear >>>> >>>>This seems to do what I wanted - is it correct, or will it crash one day? >>>> >>>>Rolf >>>> >>>> >>>Clear() only clears the text inside the textbox. It is equivalent to do >>>mTxt.Text = "" >>> >>>But Delete() effectively destroys the control. >>> >>>Wasn't the documentation clear ? >>> >>>Regards, >>> >>> >>The documentation was clear, but I couldn't find how to kill the single >>controls. >> >>What I tried first was just mTxt.Clear, which should clear the array but >>did not kill the controls. But I didn't try mTxt[i].Clear as I clearly >>saw the difference :-) >> >>So, is it ok the way it's shown above? >> >>Rolf >> >> >> > >Yes! > > > Ok, good to know :-) The question now is: How do I catch events from these controls? They do not exist at design time, so I have to find out where the event comes from and assign it to some SUB or FUNCTION... Maybe I can do without, but if I had a chance to catch KeyPress and Click events of the input controls, this would help a lot. Rolf From gambas at ...1... Wed Dec 21 18:25:55 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Dec 2005 18:25:55 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <43A98D31.5040705@...221...> References: <43A9042A.5050809@...221...> <200512211330.12747.gambas@...1...> <43A98D31.5040705@...221...> Message-ID: <200512211825.55869.gambas@...1...> On Wednesday 21 December 2005 18:13, Eilert wrote: > Benoit Minisini schrieb: > >On Wednesday 21 December 2005 13:22, Eilert wrote: > >>Benoit Minisini schrieb: > >>>On Wednesday 21 December 2005 10:01, Eilert wrote: > >>>>I think I've got it. This way, it uses the .Delete method of the > >>>>TextBoxes themselves. Only after that, the array is cleared: > >>>> > >>>> FOR i = mTxt.Count - 1 TO 0 STEP -1 > >>>> mTxt[i].Delete > >>>> NEXT > >>>> mTxt.Clear > >>>> > >>>>This seems to do what I wanted - is it correct, or will it crash one > >>>> day? > >>>> > >>>>Rolf > >>> > >>>Clear() only clears the text inside the textbox. It is equivalent to do > >>>mTxt.Text = "" > >>> > >>>But Delete() effectively destroys the control. > >>> > >>>Wasn't the documentation clear ? > >>> > >>>Regards, > >> > >>The documentation was clear, but I couldn't find how to kill the single > >>controls. > >> > >>What I tried first was just mTxt.Clear, which should clear the array but > >>did not kill the controls. But I didn't try mTxt[i].Clear as I clearly > >>saw the difference :-) > >> > >>So, is it ok the way it's shown above? > >> > >>Rolf > > > >Yes! > > Ok, good to know :-) > > The question now is: How do I catch events from these controls? mTxt[i] = NEW TextBox(Maske) AS "NameOfTheEventHandler" Read the documentation about NEW on the wiki if you want more details... Regards, -- Benoit Minisini From kchularrit at ...734... Thu Dec 22 08:55:03 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Wed, 21 Dec 2005 23:55:03 -0800 Subject: [Gambas-user] Can Gambas run itself? Message-ID: <200512212355.03738.kchularrit@...734...> I'm trying to get a Gambas2 program to run another copy of itself but am having problems. I'm trying to have the main program send commands into a file, which the second program reads with a "tail -f" command. The main program receives command-responses with its own "tail -f" command. It's sort of like the following: ' Create log file. Open MainLogFileName FOR CREATE AS #MainLogFile . Run second program... Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE ' Create communication file. secondprog reads its commands from this. Open Main2SecondCommFileName FOR CREATE AS #Main2SecondCommFile ... ' These four statements wait for secondprog to create its file. IF EXIST (Second2MainCommFileName) = FALSE THEN WAIT (1.0) ' Wait for secondprog to create its comm file. ENDIF WAIT (1.0) ' secondprog has created its file. continue... #GetResponses = SHELL "tail -f Second2MainCommFileName" FOR READ WRITE ... Process_Read() secondprog does something similar: ' Create log file. Open SecondLogFileName FOR CREATE AS #SecondLogFile ' Create communication file. mainprog reads command-results from this. Open Second2MainCommFileName FOR CREATE AS #Second2MainCommFile ... ' These four statements wait for mainprog to create its file. IF EXIST (Main2SecondCommFileName) = FALSE THEN WAIT (1.0) ' Wait for mainprog to create its comm file. ENDIF WAIT (1.0) ' mainprog has created its file. continue... #GetResponses = SHELL "tail -f Main2SecondCommFileName" FOR READ WRITE ... Process_Read() I send commands from mainprog to secondprog by PRINTing to the Main2SecondCommFile. secondprog sends responses by PRINTing to the Second2MainCommFile. The problem is that the second program appears to receive the commands and do them, but nothing is sent to the file that the main program checks for return data. Any Ideas? K-R From eilert-sprachen at ...221... Thu Dec 22 11:22:51 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 22 Dec 2005 11:22:51 +0100 Subject: [Gambas-user] Killing objects? Urgent In-Reply-To: <200512211825.55869.gambas@...1...> References: <43A9042A.5050809@...221...> <200512211330.12747.gambas@...1...> <43A98D31.5040705@...221...> <200512211825.55869.gambas@...1...> Message-ID: <43AA7E7B.30207@...221...> Benoit Minisini schrieb: >On Wednesday 21 December 2005 18:13, Eilert wrote: > > >>Benoit Minisini schrieb: >> >> >>>On Wednesday 21 December 2005 13:22, Eilert wrote: >>> >>> >>>>Benoit Minisini schrieb: >>>> >>>> >>>>>On Wednesday 21 December 2005 10:01, Eilert wrote: >>>>> >>>>> >>>>>>I think I've got it. This way, it uses the .Delete method of the >>>>>>TextBoxes themselves. Only after that, the array is cleared: >>>>>> >>>>>> FOR i = mTxt.Count - 1 TO 0 STEP -1 >>>>>> mTxt[i].Delete >>>>>> NEXT >>>>>> mTxt.Clear >>>>>> >>>>>>This seems to do what I wanted - is it correct, or will it crash one >>>>>>day? >>>>>> >>>>>>Rolf >>>>>> >>>>>> >>>>>Clear() only clears the text inside the textbox. It is equivalent to do >>>>>mTxt.Text = "" >>>>> >>>>>But Delete() effectively destroys the control. >>>>> >>>>>Wasn't the documentation clear ? >>>>> >>>>>Regards, >>>>> >>>>> >>>>The documentation was clear, but I couldn't find how to kill the single >>>>controls. >>>> >>>>What I tried first was just mTxt.Clear, which should clear the array but >>>>did not kill the controls. But I didn't try mTxt[i].Clear as I clearly >>>>saw the difference :-) >>>> >>>>So, is it ok the way it's shown above? >>>> >>>>Rolf >>>> >>>> >>>Yes! >>> >>> >>Ok, good to know :-) >> >>The question now is: How do I catch events from these controls? >> >> > >mTxt[i] = NEW TextBox(Maske) AS "NameOfTheEventHandler" > >Read the documentation about NEW on the wiki if you want more details... > >Regards, > > > Aaaah, c'est LAST n'est-ce pas? C'est genial! Merci! Rolf From JamesWilson at ...1288... Thu Dec 22 23:03:48 2005 From: JamesWilson at ...1288... (James Wilson) Date: Thu, 22 Dec 2005 22:03:48 -0000 Subject: [Gambas-user] Image from url Message-ID: <9A7F7547B2BA7E4DAF12D61724A0C53B098321@...1289...> Im trying to replace my vs. net with gambas mainly because I want to create some small apps to run on Linux. I have played with gambas stable and everything is grand but In vb.net I can tell a picturebox to get an image from a url, using a setting called imagelocation. I cant seem to replicate this in gambas, I need to be able to pull a jpg from a streaming server that gives out jpg's on request depending upon the command line used. The only reason I mention the streaming thing is because its not an actual jpg file with a jpg file extension but it is a jpeg. Anyone got any clues Cheers James PS Happy xmas etc -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Thu Dec 22 23:23:07 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 22 Dec 2005 17:23:07 -0500 Subject: [Gambas-user] Image from url In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53B098321@...1289...> References: <9A7F7547B2BA7E4DAF12D61724A0C53B098321@...1289...> Message-ID: <200512221723.07916.sourceforge-raindog2@...94...> On Thu December 22 2005 17:03, James Wilson wrote: > I cant seem to replicate this in gambas, I need to be able to > pull a jpg from a streaming server that gives out jpg's on > request depending upon the command line used. The only reason > I mention the streaming thing is because its not an actual jpg > file with a jpg file extension but it is a jpeg. Anyone got > any clues I'd use the gb.net.curl class to retrieve the image to /tmp and then load it into the picturebox. Gambas doesn't care what the file extension is... you can name the output file whatever you want. Rob From gambas at ...1... Fri Dec 23 01:13:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 23 Dec 2005 01:13:06 +0100 Subject: [Gambas-user] Can Gambas run itself? In-Reply-To: <200512212355.03738.kchularrit@...734...> References: <200512212355.03738.kchularrit@...734...> Message-ID: <200512230113.06136.gambas@...1...> On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > I'm trying to get a Gambas2 program to run another copy of itself but am > having problems. I'm trying to have the main program send commands into a > file, which the second program reads with a "tail -f" command. The main > program receives command-responses with its own "tail -f" command. It's > sort of like the following: > > ' Create log file. > Open MainLogFileName FOR CREATE AS #MainLogFile > . Run second program... > Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE > ' Create communication file. secondprog reads its commands from this. > Open Main2SecondCommFileName FOR CREATE AS #Main2SecondCommFile > ... > ' These four statements wait for secondprog to create its file. > IF EXIST (Second2MainCommFileName) = FALSE THEN > WAIT (1.0) ' Wait for secondprog to create its comm file. > ENDIF > WAIT (1.0) > ' secondprog has created its file. continue... > #GetResponses = SHELL "tail -f Second2MainCommFileName" FOR READ WRITE > > ... > Process_Read() > > secondprog does something similar: > > ' Create log file. > Open SecondLogFileName FOR CREATE AS #SecondLogFile > ' Create communication file. mainprog reads command-results from > this. Open Second2MainCommFileName FOR CREATE AS #Second2MainCommFile ... > ' These four statements wait for mainprog to create its file. > IF EXIST (Main2SecondCommFileName) = FALSE THEN > WAIT (1.0) ' Wait for mainprog to create its comm file. > ENDIF > WAIT (1.0) > ' mainprog has created its file. continue... > #GetResponses = SHELL "tail -f Main2SecondCommFileName" FOR READ WRITE > > ... > Process_Read() > > > > I send commands from mainprog to secondprog by PRINTing to the > Main2SecondCommFile. secondprog sends responses by PRINTing to the > Second2MainCommFile. > > The problem is that the second program appears to receive the commands > and do them, but nothing is sent to the file that the main program checks > for return data. > > Any Ideas? > > K-R > When you open a file, by default input/output are buffered. Try to use the FLUSH instruction after PRINT, or adds the WRITE keyword before CREATE to your OPEN statements. Regards, -- Benoit Minisini From kztyrvlq at ...966... Fri Dec 23 05:57:01 2005 From: kztyrvlq at ...966... (A Person) Date: Fri, 23 Dec 2005 01:27:01 -0330 Subject: [Gambas-user] Kubuntu & Gambas = ??? Message-ID: <43AB839D.80803@...966...> Good Day All . . . Moved from SuSE 10.0 to Kubuntu 5.10 because of some problems with the former. Now I have some different problems that may necessitate me moving back. I loaded the Kubuntu Gambas package but it was version 1.0.3. I unloaded that and searched for a newer deb version. I located 1.0.13-1 on the Debian site but only some of the components would load. Now the ones that are marked as installed will not uninstall because they are not there??? Has anyone had any EASY success loading Gambas 1.0.13 (+/-) onto Kubuntu 5.10? Thanks. Paul From nando_f at ...951... Fri Dec 23 06:52:14 2005 From: nando_f at ...951... (nando) Date: Fri, 23 Dec 2005 00:52:14 -0500 Subject: [Gambas-user] net.curl component Message-ID: <20051223055120.M20756@...951...> Does anyone have any examples how to use the curl component ? -Fenando From kchularrit at ...734... Fri Dec 23 09:00:40 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Fri, 23 Dec 2005 00:00:40 -0800 Subject: [Gambas-user] Can Gambas run itself? Fixed! In-Reply-To: <200512230113.06136.gambas@...1...> References: <200512212355.03738.kchularrit@...734...> <200512230113.06136.gambas@...1...> Message-ID: <200512230000.40323.kchularrit@...734...> On Thursday December 22 2005 04:13 pm, Benoit Minisini wrote: > On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > > I'm trying to get a Gambas2 program to run another copy of itself but am > > having problems. I'm trying to have the main program send commands into > > a file, which the second program reads with a "tail -f" command. The > > main program receives command-responses with its own "tail -f" command. Neither adding WRITE to the OPEN statement, nor adding FLUSH after print #outfile statements worked. It finally worked when I redirected the SHELL command's standard-input to /dev/null: Original, didn't work: > > . Run second program... > > Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE This made it work: ' Run second program... Second2Main = SHELL "gbx2 secondprog < /dev/null" FOR READ WRITE > ... > When you open a file, by default input/output are buffered. > > Try to use the FLUSH instruction after PRINT, or adds the WRITE keyword > before CREATE to your OPEN statements. Thanks for the ideas. K-R. From JamesWilson at ...1288... Fri Dec 23 11:19:42 2005 From: JamesWilson at ...1288... (James Wilson) Date: Fri, 23 Dec 2005 10:19:42 -0000 Subject: [Gambas-user] RE: Gambas-user digest, Vol 1 #1616 - 5 msgs Message-ID: <003401c607aa$a9037fc3$0210a8c0@...1291...> On Thu December 22 2005 17:03, James Wilson wrote: > I cant seem to replicate this in gambas, I need to be able to > pull a jpg from a streaming server that gives out jpg's on > request depending upon the command line used. The only reason > I mention the streaming thing is because its not an actual jpg > file with a jpg file extension but it is a jpeg. Anyone got > any clues I'd use the gb.net.curl class to retrieve the image to /tmp and then load it into the picturebox. Gambas doesn't care what the file extension is... you can name the output file whatever you want. Rob Thanks Rob but ideally I want to get a new image between 0.1 and 0.5 seconds. I?m assuming this freq and writing files to disk this often wouldn't be great, but I havnt tried it. In vs its all done in ram and I don?t need to cache anything, was hoping I?d missed a command that?s all Cheers James -----Unmodified Original Message----- Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-admin at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. Can Gambas run itself? (Kchula-Rrit) 2. Re: Killing objects? Urgent (Eilert) 3. Image from url (James Wilson) 4. Re: Image from url (Rob Kudla) 5. Re: Can Gambas run itself? (Benoit Minisini) --__--__-- Message: 1 From: Kchula-Rrit To: gambas-user at lists.sourceforge.net Date: Wed, 21 Dec 2005 23:55:03 -0800 Subject: [Gambas-user] Can Gambas run itself? Reply-To: gambas-user at lists.sourceforge.net I'm trying to get a Gambas2 program to run another copy of itself but am having problems. I'm trying to have the main program send commands into a file, which the second program reads with a "tail -f" command. The main program receives command-responses with its own "tail -f" command. It's sort of like the following: ' Create log file. Open MainLogFileName FOR CREATE AS #MainLogFile . Run second program... Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE ' Create communication file. secondprog reads its commands from this. Open Main2SecondCommFileName FOR CREATE AS #Main2SecondCommFile ... ' These four statements wait for secondprog to create its file. IF EXIST (Second2MainCommFileName) = FALSE THEN WAIT (1.0) ' Wait for secondprog to create its comm file. ENDIF WAIT (1.0) ' secondprog has created its file. continue... #GetResponses = SHELL "tail -f Second2MainCommFileName" FOR READ WRITE ... Process_Read() secondprog does something similar: ' Create log file. Open SecondLogFileName FOR CREATE AS #SecondLogFile ' Create communication file. mainprog reads command-results from this. Open Second2MainCommFileName FOR CREATE AS #Second2MainCommFile ... ' These four statements wait for mainprog to create its file. IF EXIST (Main2SecondCommFileName) = FALSE THEN WAIT (1.0) ' Wait for mainprog to create its comm file. ENDIF WAIT (1.0) ' mainprog has created its file. continue... #GetResponses = SHELL "tail -f Main2SecondCommFileName" FOR READ WRITE ... Process_Read() I send commands from mainprog to secondprog by PRINTing to the Main2SecondCommFile. secondprog sends responses by PRINTing to the Second2MainCommFile. The problem is that the second program appears to receive the commands and do them, but nothing is sent to the file that the main program checks for return data. Any Ideas? K-R --__--__-- Message: 2 Date: Thu, 22 Dec 2005 11:22:51 +0100 From: Eilert Organization: Sprachschule Eilert To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Killing objects? Urgent Reply-To: gambas-user at lists.sourceforge.net Benoit Minisini schrieb: >On Wednesday 21 December 2005 18:13, Eilert wrote: > > >>Benoit Minisini schrieb: >> >> >>>On Wednesday 21 December 2005 13:22, Eilert wrote: >>> >>> >>>>Benoit Minisini schrieb: >>>> >>>> >>>>>On Wednesday 21 December 2005 10:01, Eilert wrote: >>>>> >>>>> >>>>>>I think I've got it. This way, it uses the .Delete method of the >>>>>>TextBoxes themselves. Only after that, the array is cleared: >>>>>> >>>>>> FOR i = mTxt.Count - 1 TO 0 STEP -1 >>>>>> mTxt[i].Delete >>>>>> NEXT >>>>>> mTxt.Clear >>>>>> >>>>>>This seems to do what I wanted - is it correct, or will it crash one >>>>>>day? >>>>>> >>>>>>Rolf >>>>>> >>>>>> >>>>>Clear() only clears the text inside the textbox. It is equivalent to do >>>>>mTxt.Text = "" >>>>> >>>>>But Delete() effectively destroys the control. >>>>> >>>>>Wasn't the documentation clear ? >>>>> >>>>>Regards, >>>>> >>>>> >>>>The documentation was clear, but I couldn't find how to kill the single >>>>controls. >>>> >>>>What I tried first was just mTxt.Clear, which should clear the array but >>>>did not kill the controls. But I didn't try mTxt[i].Clear as I clearly >>>>saw the difference :-) >>>> >>>>So, is it ok the way it's shown above? >>>> >>>>Rolf >>>> >>>> >>>Yes! >>> >>> >>Ok, good to know :-) >> >>The question now is: How do I catch events from these controls? >> >> > >mTxt[i] = NEW TextBox(Maske) AS "NameOfTheEventHandler" > >Read the documentation about NEW on the wiki if you want more details... > >Regards, > > > Aaaah, c'est LAST n'est-ce pas? C'est genial! Merci! Rolf --__--__-- Message: 3 Date: Thu, 22 Dec 2005 22:03:48 -0000 From: "James Wilson" To: Subject: [Gambas-user] Image from url Reply-To: gambas-user at lists.sourceforge.net This is a multi-part message in MIME format. ------_=_NextPart_001_01C60743.EF28EE2B Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Im trying to replace my vs. net with gambas mainly because I want to create some small apps to run on Linux. I have played with gambas stable and everything is grand but In vb.net I can tell a picturebox to get an image from a url, using a setting called imagelocation. I cant seem to replicate this in gambas, I need to be able to pull a jpg from a streaming server that gives out jpg's on request depending upon the command line used. The only reason I mention the streaming thing is because its not an actual jpg file with a jpg file extension but it is a jpeg. Anyone got any clues Cheers James PS Happy xmas etc ------_=_NextPart_001_01C60743.EF28EE2B Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Image from url

Im trying to replace my vs. net with = gambas mainly because I want to create some small apps to run on = Linux.

I have played with gambas stable and = everything is grand but
In vb.net I can tell a picturebox to = get an image from a url, using a setting called imagelocation.
I cant seem to replicate this in = gambas, I need to be able to pull a jpg from a streaming server that = gives out jpg's on request depending upon the command line used. The = only reason I mention the streaming thing is because its not an actual = jpg file with a jpg file extension but it is a jpeg. Anyone got any = clues

Cheers

James
PS Happy xmas etc

------_=_NextPart_001_01C60743.EF28EE2B-- --__--__-- Message: 4 From: Rob Kudla To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Image from url Date: Thu, 22 Dec 2005 17:23:07 -0500 Reply-To: gambas-user at lists.sourceforge.net On Thu December 22 2005 17:03, James Wilson wrote: > I cant seem to replicate this in gambas, I need to be able to > pull a jpg from a streaming server that gives out jpg's on > request depending upon the command line used. The only reason > I mention the streaming thing is because its not an actual jpg > file with a jpg file extension but it is a jpeg. Anyone got > any clues I'd use the gb.net.curl class to retrieve the image to /tmp and then load it into the picturebox. Gambas doesn't care what the file extension is... you can name the output file whatever you want. Rob --__--__-- Message: 5 From: Benoit Minisini To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Can Gambas run itself? Date: Fri, 23 Dec 2005 01:13:06 +0100 Reply-To: gambas-user at lists.sourceforge.net On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > I'm trying to get a Gambas2 program to run another copy of itself but am > having problems. I'm trying to have the main program send commands into a > file, which the second program reads with a "tail -f" command. The main > program receives command-responses with its own "tail -f" command. It's > sort of like the following: > > ' Create log file. > Open MainLogFileName FOR CREATE AS #MainLogFile > . Run second program... > Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE > ' Create communication file. secondprog reads its commands from this. > Open Main2SecondCommFileName FOR CREATE AS #Main2SecondCommFile > ... > ' These four statements wait for secondprog to create its file. > IF EXIST (Second2MainCommFileName) = FALSE THEN > WAIT (1.0) ' Wait for secondprog to create its comm file. > ENDIF > WAIT (1.0) > ' secondprog has created its file. continue... > #GetResponses = SHELL "tail -f Second2MainCommFileName" FOR READ WRITE > > ... > Process_Read() > > secondprog does something similar: > > ' Create log file. > Open SecondLogFileName FOR CREATE AS #SecondLogFile > ' Create communication file. mainprog reads command-results from > this. Open Second2MainCommFileName FOR CREATE AS #Second2MainCommFile ... > ' These four statements wait for mainprog to create its file. > IF EXIST (Main2SecondCommFileName) = FALSE THEN > WAIT (1.0) ' Wait for mainprog to create its comm file. > ENDIF > WAIT (1.0) > ' mainprog has created its file. continue... > #GetResponses = SHELL "tail -f Main2SecondCommFileName" FOR READ WRITE > > ... > Process_Read() > > > > I send commands from mainprog to secondprog by PRINTing to the > Main2SecondCommFile. secondprog sends responses by PRINTing to the > Second2MainCommFile. > > The problem is that the second program appears to receive the commands > and do them, but nothing is sent to the file that the main program checks > for return data. > > Any Ideas? > > K-R > When you open a file, by default input/output are buffered. Try to use the FLUSH instruction after PRINT, or adds the WRITE keyword before CREATE to your OPEN statements. Regards, -- Benoit Minisini --__--__-- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest From gambas at ...1... Fri Dec 23 13:21:47 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 23 Dec 2005 13:21:47 +0100 Subject: [Gambas-user] Can Gambas run itself? Fixed! In-Reply-To: <200512230000.40323.kchularrit@...734...> References: <200512212355.03738.kchularrit@...734...> <200512230113.06136.gambas@...1...> <200512230000.40323.kchularrit@...734...> Message-ID: <200512231321.47532.gambas@...1...> On Friday 23 December 2005 09:00, Kchula-Rrit wrote: > On Thursday December 22 2005 04:13 pm, Benoit Minisini wrote: > > On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > > > I'm trying to get a Gambas2 program to run another copy of itself but > > > am having problems. I'm trying to have the main program send commands > > > into a file, which the second program reads with a "tail -f" command. > > > The main program receives command-responses with its own "tail -f" > > > command. > > Neither adding WRITE to the OPEN statement, nor adding FLUSH after print > #outfile statements worked. It finally worked when I redirected the SHELL > command's standard-input to /dev/null: > > Original, didn't work: > > > . Run second program... > > > Second2Main = SHELL "gbx2 secondprog" FOR READ WRITE > > This made it work: > ' Run second program... > Second2Main = SHELL "gbx2 secondprog < /dev/null" FOR READ WRITE > > > ... > > When you open a file, by default input/output are buffered. > > > > Try to use the FLUSH instruction after PRINT, or adds the WRITE keyword > > before CREATE to your OPEN statements. > > Thanks for the ideas. > > K-R. > Instead of redirecting to "/dev/null", can you try the two following things too? * Replace SHELL by EXEC. * Use SHELL, but without the WRITE keyword. Thanks in advance. Regards, -- Benoit Minisini From kchularrit at ...734... Sat Dec 24 00:43:47 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Fri, 23 Dec 2005 15:43:47 -0800 Subject: [Gambas-user] Can Gambas run itself? Fixed! NOT! In-Reply-To: <200512231321.47532.gambas@...1...> References: <200512212355.03738.kchularrit@...734...> <200512230000.40323.kchularrit@...734...> <200512231321.47532.gambas@...1...> Message-ID: <200512231543.48016.kchularrit@...734...> On Friday December 23 2005 04:21 am, Benoit Minisini wrote: > On Friday 23 December 2005 09:00, Kchula-Rrit wrote: > > On Thursday December 22 2005 04:13 pm, Benoit Minisini wrote: > > > On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > > > > I'm trying to get a Gambas2 program to run another copy of itself > > > > but am having problems. I'm trying to have the main program send > > > > commands into a file, which the second program reads with a "tail -f" > > > > command. The main program receives command-responses with its own > > > > "tail -f" command. > > > ... > > > When you open a file, by default input/output are buffered. > > > > > > Try to use the FLUSH instruction after PRINT, or adds the WRITE keyword > > > before CREATE to your OPEN statements. > > > > Thanks for the ideas. > > > > K-R. > > Instead of redirecting to "/dev/null", can you try the two following things > too? > > * Replace SHELL by EXEC. > * Use SHELL, but without the WRITE keyword. > > Thanks in advance. > > Regards, I guess I was premature, or it was late at night, but the redirecting /dev/null did not work after all. I tried EXEC but it just started a runaway process or something and I had to log-out to get it to quit. I'll try it again and write down my results this time. If it helps, I'm using gambas-1.9.20-4 for gambas itself, 1.9.19 for all the other parts from linex.org with Debian Sarge. Or, is just not possible to run two gambas2 processes? I really do appreciate your help. K-R. From jscops at ...11... Sat Dec 24 10:57:01 2005 From: jscops at ...11... (Jacky) Date: Sat, 24 Dec 2005 10:57:01 +0100 Subject: [Gambas-user] Database manager problem Message-ID: <200512241057.01366.jscops@...11...> Bonjour, With database manager, when i save a table with auto_increment attribut, i lose this attribut. Is it normal ? Gambas 1.9.20 or Gambas 1.0.11 Suse 9.3 Happy holidays. ~? Jack ?~ From bernieman at ...977... Sat Dec 24 13:34:38 2005 From: bernieman at ...977... (BernieMan) Date: Sat, 24 Dec 2005 13:34:38 +0100 Subject: [Gambas-user] Kill ? Message-ID: <20051224123438.GA11198@...1257...> Hi All, I tried to remove a File from the HD with Kill, but nothings happens. Like: Kill /tmp/test.txt So how can I remove this File ? Happy Christmas to Benoit & the Gang ... and all the Users and Visitors of the List BernieMan From na2492 at ...9... Sat Dec 24 14:27:37 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 24 Dec 2005 14:27:37 00100 Subject: [Gambas-user] Kill ? Message-ID: <43ad4cc9.1fde.0@...9...> > >Hi All, >I tried to remove a File from the HD with Kill, but nothings happens. > >Like: >Kill /tmp/test.txt > >So how can I remove this File ? > > >Happy Christmas >to Benoit & the Gang > >... and all the Users and Visitors >of the List > >BernieMan Salut, write it quoted, like Kill "/tmp/test.txt" that should work (gambas-1.0.x) Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambasfr at ...11... Sat Dec 24 15:11:46 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sat, 24 Dec 2005 15:11:46 +0100 Subject: [Gambas-user] Database manager problem In-Reply-To: <200512241057.01366.jscops@...11...> References: <200512241057.01366.jscops@...11...> Message-ID: <200512241511.46659.gambasfr@...11...> Le Samedi 24 D?cembre 2005 10:57, Jacky a ?crit?: > Bonjour, > > With database manager, when i save a table with auto_increment attribut, i > lose this attribut. Is it normal ? > Gambas 1.9.20 or Gambas 1.0.11 > Suse 9.3 yes, Gambas db not support auto_increment attribute... but i hope Benoit add this, because it's really usefull... Before that i use this : hres = hCon.Exec("Select Max(id) From Client") newid = hRes["Max(id)"] + 1 It's slow ... but the sole way.. i know to emulate auto increments Merry Christmas Fabien Bodard > Happy holidays. > > ~? Jack ?~ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bernieman at ...977... Sun Dec 25 12:26:34 2005 From: bernieman at ...977... (Bernie) Date: Sun, 25 Dec 2005 12:26:34 +0100 Subject: [Gambas-user] Kill ? In-Reply-To: <43ad4cc9.1fde.0@...9...> References: <43ad4cc9.1fde.0@...9...> Message-ID: <20051225112634.GA11380@...1257...> * Charlie Reinl [2005-12-24 14:27:37 +0000]: > > > >Hi All, > >I tried to remove a File from the HD with Kill, but nothings happens. > > > >Like: > >Kill /tmp/test.txt > > > >So how can I remove this File ? > > > > > >Happy Christmas > >to Benoit & the Gang > > > >... and all the Users and Visitors > >of the List > > > >BernieMan > > Salut, > > write it quoted, like > > Kill "/tmp/test.txt" > > that should work (gambas-1.0.x) > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thx Charlie for your reply, Sorry - I wrote it in a wrong way. I tried to use it like: Kill StringVariable And with a Variable instead of a fix path nothing happend Greetings BernieMan From picander78 at ...325... Sun Dec 25 17:04:06 2005 From: picander78 at ...325... (Marco Gusy) Date: Sun, 25 Dec 2005 17:04:06 +0100 Subject: [Gambas-user] Result is write-only Message-ID: <200512251704.06502.picander78@...325...> Hi, I would like to use the code to write in a result oblject as described in the wiki: hResult [ Field AS String ] = aVariant But the program complains about result object being read-only... is it normal? (Mysql database, gambas 1.9.22) Marco From rohnny at ...1248... Mon Dec 26 10:09:52 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Mon, 26 Dec 2005 10:09:52 +0100 Subject: [Gambas-user] Columnview key Message-ID: <43AFB360.50103@...1248...> Hi group. I have a Columview with x number of items in. The key is made out of inserted time. Now I need to get the columns back for futher use. Is there an example of this? I have'nt found a a solution of retriew the key. I want something like this. Dim i as integer for i = 0 to columnview1.count -1 key = columnview1[i].key -------------------------------------^ Gambas want the key here. 'get x 2 field2_in_column = columnview1[key,1].text next I could use count+1 but it do fail when I delete 1 from the columnview Another solution could be for i = 0 to columnview1.count -1 Columnview1[i].selected=true '--------------------------^ Again the key should in here , grrr key = Columnview1.key 'get x 2 field2_in_column = columnview1[key,1].text next Running Gambas 1.9.22 Regards From luc at ...1292... Tue Dec 27 00:13:42 2005 From: luc at ...1292... (Luc Geers) Date: Tue, 27 Dec 2005 00:13:42 +0100 Subject: [Gambas-user] Cannot install Gambas MySQL driver :-( Message-ID: <200512270013.43650.luc@...1292...> Hi, I am trying to install the MySQL driver (gambas_gb_db_runtime) but YaST tells me that I need 'libgettextlib-0.14.5.so' and 'libintl.so.3'. Can anyone tells me where to find them (rpm if possible)? I allready searched on rpm.pbone.net and found none of them... :-( -- Thanks and a happy 2006 to you all Luc From peter.lee at ...1293... Tue Dec 27 04:54:37 2005 From: peter.lee at ...1293... (peter lee) Date: Tue, 27 Dec 2005 11:54:37 +0800 Subject: [Gambas-user] Question on GAMBAS development Message-ID: Hello Gambas users :-) Good day. My name is Peter and I'm a new user of GAMBAS. I'm currently developing application on SUSE using GAMBAS. However I have a few questions on development hope you guys could help me on that. 1. How to play movie in GAMBAS? Is it using the MovieBox? If so can u show me a sample code on doing so and what is the supported format? 2. Can the GAMBAS take in external component such as real-player or mplayer? 3. Is it possible to play .swf (Flash extension file) in GAMBAS application? That's all for now. Thanks and happy new year !!!. Rdgs Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Tue Dec 27 08:32:13 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Tue, 27 Dec 2005 08:32:13 +0100 Subject: [Gambas-user] re:Question on GAMBAS development Message-ID: <43B0EDFD.9040502@...1248...> Hi Peter. I have put a small prosject out on http://forum.stormweb.no that play a movie in gambas. It use mplayer for playback. Think it will help you going on your questions. It's under Application/Code snippets Regards From gambas at ...1... Tue Dec 27 16:32:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 16:32:59 +0100 Subject: [Gambas-user] Result is write-only In-Reply-To: <200512251704.06502.picander78@...325...> References: <200512251704.06502.picander78@...325...> Message-ID: <200512271633.00145.gambas@...1...> On Sunday 25 December 2005 17:04, Marco Gusy wrote: > Hi, I would like to use the code to write in a result oblject as described > in the wiki: > > hResult [ Field AS String ] = aVariant > > But the program complains about result object being read-only... is it > normal? > > (Mysql database, gambas 1.9.22) > > Marco > Result objects are writable only if you create them with the Edit() or Create() method. Regards, -- Benoit Minisini From gambas at ...1... Tue Dec 27 16:35:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 16:35:01 +0100 Subject: [Gambas-user] Columnview key In-Reply-To: <43AFB360.50103@...1248...> References: <43AFB360.50103@...1248...> Message-ID: <200512271635.01119.gambas@...1...> On Monday 26 December 2005 10:09, Rohnny Stormo wrote: > Hi group. > > I have a Columview with x number of items in. The key is made out of > inserted time. > Now I need to get the columns back for futher use. Is there an example > of this? > > I have'nt found a a solution of retriew the key. I want something like > this. > > Dim i as integer > for i = 0 to columnview1.count -1 > key = columnview1[i].key > -------------------------------------^ Gambas want the key here. > > 'get x 2 > field2_in_column = columnview1[key,1].text > next > > I could use count+1 but it do fail when I delete 1 from the columnview > > Another solution could be > for i = 0 to columnview1.count -1 > Columnview1[i].selected=true > '--------------------------^ Again the key should in here , grrr > key = Columnview1.key > 'get x 2 > field2_in_column = columnview1[key,1].text > next > > Running Gambas 1.9.22 > > Regards > If you want to access column view items from a numeric index, then use this numeric index as key. You will be always mixed up if you actually have two different keys in mind (a numeric index and a string key). Regards, -- Benoit Minisini From gambas at ...1... Tue Dec 27 16:39:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 16:39:59 +0100 Subject: [Gambas-user] Question on GAMBAS development In-Reply-To: References: Message-ID: <200512271639.59477.gambas@...1...> On Tuesday 27 December 2005 04:54, peter lee wrote: > Hello Gambas users :-) Hello Gambas user :-) > > > > Good day. My name is Peter and I'm a new user of GAMBAS. > > I'm currently developing application on SUSE using GAMBAS. However I have a > few questions on development hope you guys could help me on that. > > > > 1. How to play movie in GAMBAS? Is it using the MovieBox? If so can u > show me a sample code on doing so and what is the supported format? MovieBox only plays MNG and GIF (as written in the documentation). You can easily embed mplayer (or any other external player program I think) in a window. You can use the embedded option in mplayer (look in the MoviePlayer example), or you can use the XEmbed protocol (look Application.Embedder and the Embedder class in the documentation). > 2. Can the GAMBAS take in external component such as real-player or > mplayer? > 3. Is it possible to play .swf (Flash extension file) in GAMBAS > application? > The only way at the moment is by embedding external application. I don't know if there is a Linux application that can play Flash outside of a web browser. But I think you can embed your flash in a web page, and with a little Javascript, you can remove every browser menu and toolbar to only keep the window, and then embed the window in your application. The problem with embedding is how to know the window handle of the application. There are two ways: * With KDE, you can use DCOP to retrieve the ID of the main window of a KDE application (Konqueror in this case). * You can use The Desktop.Find() method to retrieve the ID of main windows matching specific criteria (window title, role, class). > > > That's all for now. Thanks and happy new year !!!. > Happy new year too! Regards, -- Benoit Minisini From gambas at ...1... Tue Dec 27 16:42:33 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 16:42:33 +0100 Subject: [Gambas-user] Kill ? In-Reply-To: <20051225112634.GA11380@...1257...> References: <43ad4cc9.1fde.0@...9...> <20051225112634.GA11380@...1257...> Message-ID: <200512271642.33176.gambas@...1...> On Sunday 25 December 2005 12:26, Bernie wrote: > Thx Charlie for your reply, > Sorry - I wrote it in a wrong way. > I tried to use it like: > > Kill StringVariable > > And with a Variable instead of a fix path nothing happend > > Greetings > BernieMan > > What is the path of the file you want to remove? Do you have the needed authorisations? -- Benoit Minisini From gambas at ...1... Tue Dec 27 16:52:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 16:52:39 +0100 Subject: [Gambas-user] Can Gambas run itself? Fixed! NOT! In-Reply-To: <200512231543.48016.kchularrit@...734...> References: <200512212355.03738.kchularrit@...734...> <200512231321.47532.gambas@...1...> <200512231543.48016.kchularrit@...734...> Message-ID: <200512271652.39977.gambas@...1...> On Saturday 24 December 2005 00:43, Kchula-Rrit wrote: > On Friday December 23 2005 04:21 am, Benoit Minisini wrote: > > On Friday 23 December 2005 09:00, Kchula-Rrit wrote: > > > On Thursday December 22 2005 04:13 pm, Benoit Minisini wrote: > > > > On Thursday 22 December 2005 08:55, Kchula-Rrit wrote: > > > > > I'm trying to get a Gambas2 program to run another copy of itself > > > > > but am having problems. I'm trying to have the main program send > > > > > commands into a file, which the second program reads with a "tail > > > > > -f" command. The main program receives command-responses with its > > > > > own "tail -f" command. > > > > > > > > ... > > > > When you open a file, by default input/output are buffered. > > > > > > > > Try to use the FLUSH instruction after PRINT, or adds the WRITE > > > > keyword before CREATE to your OPEN statements. > > > > > > Thanks for the ideas. > > > > > > K-R. > > > > Instead of redirecting to "/dev/null", can you try the two following > > things too? > > > > * Replace SHELL by EXEC. > > * Use SHELL, but without the WRITE keyword. > > > > Thanks in advance. > > > > Regards, > > I guess I was premature, or it was late at night, but the > redirecting /dev/null did not work after all. I tried EXEC but it just > started a runaway process or something and I had to log-out to get it to > quit. ??? Did you try exactly what I told you? (removing the WRITE keyword). > I'll try it again and write down my results this time. If it helps, > I'm using gambas-1.9.20-4 for gambas itself, 1.9.19 for all the other parts > from linex.org with Debian Sarge. > > Or, is just not possible to run two gambas2 processes? Of course it is possible. Gambas2 processes are not different from any other Linux processes :-) Can you send me your entire source code? -- Benoit Minisini From picander78 at ...325... Tue Dec 27 17:55:40 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 27 Dec 2005 17:55:40 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) Message-ID: <200512271755.40479.picander78@...325...> I noticed treeview.find method always returns false, I tried many x/y combinations but never got a true. Am I missing something? I need it because I would like to make a DragMove event to allow drag&drop only on certain items. Thanks Marco From picander78 at ...325... Tue Dec 27 17:57:19 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 27 Dec 2005 17:57:19 +0100 Subject: [Gambas-user] Result is write-only In-Reply-To: <200512271633.00145.gambas@...1...> References: <200512251704.06502.picander78@...325...> <200512271633.00145.gambas@...1...> Message-ID: <200512271757.19846.picander78@...325...> Alle 16:32, marted? 27 dicembre 2005, Benoit Minisini ha scritto: > Result objects are writable only if you create them with the Edit() or > Create() method. > > Regards, Thanks a lot Benoit! I'm going to use the "update" sql statement. From gambas at ...1... Tue Dec 27 18:01:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 18:01:40 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) In-Reply-To: <200512271755.40479.picander78@...325...> References: <200512271755.40479.picander78@...325...> Message-ID: <200512271801.41401.gambas@...1...> On Tuesday 27 December 2005 17:55, Marco Gusy wrote: > I noticed treeview.find method always returns false, I tried many x/y > combinations but never got a true. Am I missing something? > I need it because I would like to make a DragMove event to allow drag&drop > only on certain items. > > Thanks > > Marco > Did you look at the DragNDrop example? -- Benoit Minisini From picander78 at ...325... Tue Dec 27 18:06:52 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 27 Dec 2005 18:06:52 +0100 Subject: [Gambas-user] Gambas components: howto? In-Reply-To: <200512201505.21356.gambas@...1...> References: <200512201325.48256.marcoguz@...412...> <200512201505.21356.gambas@...1...> Message-ID: <200512271806.52546.picander78@...325...> Alle 15:05, marted? 20 dicembre 2005, Benoit Minisini ha scritto: > There is no documentation at the moment, because things are not definitive. > But you will see many examples of controls made in Gambas in the gb.form > component of the development version. The source code is in the 'comp' > directory of the source tree. > > Regards, Thanks again Benoit Ok, i'm developing a nice control (quite succesfully, looks like it works already well) . It's something like a Gridview, but with input capabilities, single cell background, locking, alignment, word wrap etc... I'm testing it, if you appreciate, when it will be ready, i'll send it to you to insert it in gambas package. Marco From gambas at ...1... Tue Dec 27 18:13:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 18:13:14 +0100 Subject: [Gambas-user] Gambas components: howto? In-Reply-To: <200512271806.52546.picander78@...325...> References: <200512201325.48256.marcoguz@...412...> <200512201505.21356.gambas@...1...> <200512271806.52546.picander78@...325...> Message-ID: <200512271813.14213.gambas@...1...> On Tuesday 27 December 2005 18:06, Marco Gusy wrote: > Alle 15:05, marted? 20 dicembre 2005, Benoit Minisini ha scritto: > > There is no documentation at the moment, because things are not > > definitive. But you will see many examples of controls made in Gambas in > > the gb.form component of the development version. The source code is in > > the 'comp' directory of the source tree. > > > > Regards, > > Thanks again Benoit > > Ok, i'm developing a nice control (quite succesfully, looks like it works > already well) . It's something like a Gridview, but with input > capabilities, single cell background, locking, alignment, word wrap etc... > I'm testing it, if you appreciate, when it will be ready, i'll send it to > you to insert it in gambas package. > > Marco > OK. I will tell you when I see it :-) -- Benoit Minisini From picander78 at ...325... Tue Dec 27 18:38:06 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 27 Dec 2005 18:38:06 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) In-Reply-To: <200512271801.41401.gambas@...1...> References: <200512271755.40479.picander78@...325...> <200512271801.41401.gambas@...1...> Message-ID: <200512271838.06763.picander78@...325...> Alle 18:01, marted? 27 dicembre 2005, Benoit Minisini ha scritto: > On Tuesday 27 December 2005 17:55, Marco Gusy wrote: > > Did you look at the DragNDrop example? Of course I didn't rtfm enough. Find() is true when it doesn't find anything :#) Sorry Marco From rohnny at ...1248... Tue Dec 27 18:44:16 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Tue, 27 Dec 2005 18:44:16 +0100 Subject: [Gambas-user] Re: Columnview key Message-ID: <43B17D70.9000701@...1248...> < < References: <43B17D70.9000701@...1248...> Message-ID: <200512271855.52305.gambas@...1...> On Tuesday 27 December 2005 18:44, Rohnny Stormo wrote: > < > < > this > < > mind (a > > < > <-- > > Hi Benoit. > > This was pitty and makes things more complex. > > Is it possible to get a couple of function added to the columnview in > later versions? > Columnview1.item[number].key > Columnview1.item[number].selected=true/False > > or something similar? > > Regards Rohnny > You can't have two keys for an item, only one. If you want a number to be a key, just use it as key. MyColumnView.Add(number, text, picture...) What is the problem with that? -- Benoit Minisini From picander78 at ...325... Tue Dec 27 19:15:38 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 27 Dec 2005 19:15:38 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) In-Reply-To: <200512271838.06763.picander78@...325...> References: <200512271755.40479.picander78@...325...> <200512271801.41401.gambas@...1...> <200512271838.06763.picander78@...325...> Message-ID: <200512271915.38752.picander78@...325...> Alle 18:38, marted? 27 dicembre 2005, Marco Gusy ha scritto: > > Did you look at the DragNDrop example? By the way... can I make the treeview scroll down, when dragging near the end of its border? From rohnny at ...1248... Tue Dec 27 19:41:12 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Tue, 27 Dec 2005 19:41:12 +0100 Subject: [Gambas-user] Re: Columnview key Message-ID: <43B18AC8.1060406@...1248...> Hi Benoit. When you have a listbox with several items, and some of them in the middle are deleted then it could be a problem. Yes I could do a counter but it's harder to keep track of everything, all variables, when then program should do alot of stuff, and have alot of variables. The project I'm doing is a billing system for small buisness needs for northen country. I think some processes could be simplyfied with these options. But then, your the boss ;) your doing a fantastic job. Happy newyear. Rohnny From gambas at ...1... Tue Dec 27 19:51:21 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 19:51:21 +0100 Subject: [Gambas-user] Re: Columnview key In-Reply-To: <43B18AC8.1060406@...1248...> References: <43B18AC8.1060406@...1248...> Message-ID: <200512271951.21570.gambas@...1...> On Tuesday 27 December 2005 19:41, Rohnny Stormo wrote: > Hi Benoit. > > When you have a listbox with several items, and some of them in the > middle are deleted > then it could be a problem. > Yes I could do a counter but it's harder to keep track of everything, > all variables, when then program should do alot of stuff, and have alot > of variables. The project I'm doing is a billing system for small > buisness needs for northen country. > I think some processes could be simplyfied with these options. > But then, your the boss ;) your doing a fantastic job. > > Happy newyear. > > Rohnny > > I just wanted to tell you that I think there is a problem somewhere in your design... Each element of the columnview is indexed by a string key. When you put an item in the columnview, it represents something that is stored elsewhere, and that is identified by another key, not necessarily a string. So it just a matter of transforming this key into a string, and vice-versa. Key of the object <=> String key in the column view. For example, if you put a list of bills in the column view, it could be: Bill number identifying the bill in the database <=> Bill number converted to string as column view key. You should not need intermediate numeric indexes. How do you identify the objects you want to be represented in the columnview? -- Benoit Minisini From gambas at ...1... Tue Dec 27 20:04:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 20:04:01 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) In-Reply-To: <200512271915.38752.picander78@...325...> References: <200512271755.40479.picander78@...325...> <200512271838.06763.picander78@...325...> <200512271915.38752.picander78@...325...> Message-ID: <200512272004.01332.gambas@...1...> On Tuesday 27 December 2005 19:15, Marco Gusy wrote: > Alle 18:38, marted? 27 dicembre 2005, Marco Gusy ha scritto: > > > Did you look at the DragNDrop example? > > By the way... can I make the treeview scroll down, when dragging near the > end of its border? > I never noticed before that it didn't scroll automatically during a drag... And I have no idea why! :-( I will try to understand what QT does exactly... -- Benoit Minisini From rohnny at ...1248... Tue Dec 27 20:43:45 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Tue, 27 Dec 2005 20:43:45 +0100 Subject: [Gambas-user] Re: Columnview key Message-ID: <43B19971.90708@...1248...> Hi Benoit. It's not more than one key I want. I want to retrive the key from one line in the columview. It was ment to use time value then they will not crash when adding. I have used number now since it's not working other way. The number between () are keys. key-productnr - description-price-quant-discount-total (1) -01234- 02.12.2005 - product description-123-2-0-246 (2) -01234- 03.12.2005 - product description-123-2-0-246 (3) -01234- 07.12.2005 - product description-123-2-0-246 (8) -01234- 15.12.2005 - product description-123-2-0-246 (9) -01234- 18.12.2005 - product description-123-2-0-246 ---------------------------- As you see missing 4-7 that because as user I did a mistake and went back delete the line and added a new one. Or maybee customer did not want the product after all, so it need to be deleted. You know all those yellow papers on the desk :D Now I loop trough 1-keycount (9) for i = 1 to keycount if columnview1[i].exist = true then do something with columns col1 = columnview1[i][0] col2 = columnview1[i][1] col3 = columnview1[i][2] col4 = columnview1[i][3] col5 = columnview1[i][4] col6 = columnview1[i][5] end if What I wanted was dim key for i = 0 to columnview1.count -1 key = columnview.item[i].key ' col1 = columnview1[key][0] col2 = columnview1[key][1] col3 = columnview1[key][2] col4 = columnview1[key][3] col5 = columnview1[key][4] col6 = columnview1[key][5] next I also need to go trough all after adding one more line to add a total, vat and total inc vat to the screen Think the last one would be safer and faster. If I make a mistake and forgett to zero keycounter then hell brake loose. I know I should not forgett that :D Regards Rohnny From jscops at ...11... Tue Dec 27 23:23:08 2005 From: jscops at ...11... (Jacky) Date: Tue, 27 Dec 2005 23:23:08 +0100 Subject: [Gambas-user] Database manager problem In-Reply-To: <200512241511.46659.gambasfr@...11...> References: <200512241057.01366.jscops@...11...> <200512241511.46659.gambasfr@...11...> Message-ID: <200512272323.08991.jscops@...11...> Le Samedi 24 D?cembre 2005 15:11, Fabien Bodard a ?crit?: > > With database manager, when i save a table with auto_increment attribut, > > i lose this attribut. Is it normal ? > > Gambas 1.9.20 or Gambas 1.0.11 > > Suse 9.3 > > yes, Gambas db not support auto_increment attribute... but i hope Benoit > add this, because it's really usefull... > > Before that i use this : > > hres = hCon.Exec("Select Max(id) From Client") > newid = hRes["Max(id)"] + 1 > > Salut, no, no Fabien, with an unique key the auto_increment works fine. It's with the database manager that we lose the auto_increment attribut. Simply saving table lose this attribut. ~? Jack ?~ From gambas at ...1... Tue Dec 27 23:28:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Dec 2005 23:28:38 +0100 Subject: [Gambas-user] Database manager problem In-Reply-To: <200512272323.08991.jscops@...11...> References: <200512241057.01366.jscops@...11...> <200512241511.46659.gambasfr@...11...> <200512272323.08991.jscops@...11...> Message-ID: <200512272328.39048.gambas@...1...> On Tuesday 27 December 2005 23:23, Jacky wrote: > Le Samedi 24 D?cembre 2005 15:11, Fabien Bodard a ?crit?: > > > With database manager, when i save a table with auto_increment > > > attribut, i lose this attribut. Is it normal ? > > > Gambas 1.9.20 or Gambas 1.0.11 > > > Suse 9.3 > > > > yes, Gambas db not support auto_increment attribute... but i hope Benoit > > add this, because it's really usefull... > > > > Before that i use this : > > > > hres = hCon.Exec("Select Max(id) From Client") > > newid = hRes["Max(id)"] + 1 > > Salut, > no, no Fabien, with an unique key the auto_increment works fine. It's with > the database manager that we lose the auto_increment attribut. Simply > saving table lose this attribut. > ~? Jack ?~ > I'm currently working to add support for auto increment field in the database component and in the database manager. You will have a new field datatype named 'db.Serial', that will create a 64 bits autoincrement integer field. Anyway, if you didn't create your table with the database manager, don't use it to edit its structure! Regards, -- Benoit Minisini From rporticio at ...43... Wed Dec 28 01:58:21 2005 From: rporticio at ...43... (Ramon Orticio) Date: Tue, 27 Dec 2005 16:58:21 -0800 (PST) Subject: [Gambas-user] gambas crash? Message-ID: <20051228005821.70825.qmail@...1039...> dear friends, opening a project in gambas 1.0.6 i used to see a dialogue box stating more or less like this "the application is possibly open and opening it again will affect IDE and will result in a loss of data." i simply ignore this because though i already rebooted the computer, this dialogue oftentimes occur. most of the times i open two gambas projects in two different consoles, one my own and the other one usually a database example in gambas from which i pattern my project. my laptop has 256MB RAM and 1.5GB free disk space. it has dual boot, windows and linux. just yesterday my laptop won't boot there was a total blackout. not even the BIOS program will appear in the display. i tried to connect to other monitor thinking that the laptop monitor is not functioning, but still it won't show anything on the other working pc monitor. do you have any idea what caused this problem? is this a gambas crash as what the dialogue box was saying? is the BIOS corrupted? the ASUS laptop service center is a litte bit far from us (500km). anyway thanks for any info you can share. happy new year! ramon __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From jfabiani at ...1109... Wed Dec 28 09:39:20 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 00:39:20 -0800 Subject: [Gambas-user] newbie question executables Message-ID: <200512280039.20264.jfabiani@...1109...> Gambas 1.9.22 After I build a executable. How do I run it? I have tried gbx2 filename and I get an error. ERROR: #45: File or directory does not exist using Gambas2 I get not a project file. My SUSE 10.0 does not know how to run it. John From jfabiani at ...1109... Wed Dec 28 09:49:57 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 00:49:57 -0800 Subject: [Gambas-user] newbie question executables In-Reply-To: <200512280039.20264.jfabiani@...1109...> References: <200512280039.20264.jfabiani@...1109...> Message-ID: <200512280049.57741.jfabiani@...1109...> On Wednesday 28 December 2005 00:39, johnf wrote: > Gambas 1.9.22 > After I build a executable. How do I run it? > > I have tried gbx2 filename and I get an error. > ERROR: #45: File or directory does not exist > using Gambas2 I get not a project file. My SUSE 10.0 does not know how to > run it. > > John I take it back I can't make an executable. Even thought the program said it made the executable with an OK message at the bottom the project window - it did nothing? If makes nothing then what could be wrong? Is it suppose to create a shell script? John From gambas-user at lists.sourceforge.net Wed Dec 28 10:10:06 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Wed, 28 Dec 2005 10:10:06 +0100 Subject: [Gambas-user] Re: Columnview key In-Reply-To: <200512271855.52305.gambas@...1...> References: <43B17D70.9000701@...1248...> <200512271855.52305.gambas@...1...> Message-ID: <43B2566E.5090602@lists.sourceforge.net> Benoit Minisini schrieb: >On Tuesday 27 December 2005 18:44, Rohnny Stormo wrote: > > >>< >>< >>>this >>>< >>>mind (a >>> >>>< >><-- >>> >>Hi Benoit. >> >>This was pitty and makes things more complex. >> >>Is it possible to get a couple of function added to the columnview in >>later versions? >>Columnview1.item[number].key >>Columnview1.item[number].selected=true/False >> >>or something similar? >> >>Regards Rohnny >> >> >> > >You can't have two keys for an item, only one. If you want a number to be a >key, just use it as key. > >MyColumnView.Add(number, text, picture...) > >What is the problem with that? > > > I think Rohnny does not want two keys but the possibility to access items trough the naturally index from the object. So we do not need to now a key name but can walk trough the tree by index number to access the key names: for ...... if ColView.item[Index].key = "keyname" then .... ... Regards Werner From gambas-user at lists.sourceforge.net Wed Dec 28 10:29:55 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Wed, 28 Dec 2005 10:29:55 +0100 Subject: [Gambas-user] Re: Columnview key In-Reply-To: <43B2566E.5090602@lists.sourceforge.net> References: <43B17D70.9000701@...1248...> <200512271855.52305.gambas@...1...> <43B2566E.5090602@lists.sourceforge.net> Message-ID: <43B25B13.2070108@lists.sourceforge.net> Sorry, for this too late mail. I have a some problem with my mail client. This message should be send yesterday. Regards Werner From jfabiani at ...1109... Wed Dec 28 10:32:47 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 01:32:47 -0800 Subject: [Gambas-user] the database connection never errors Message-ID: <200512280132.47590.jfabiani@...1109...> Hi, Dim myconn as Connection WITH myconn .Type = TypeDataBase.Text ' "postgresql" .Host = host.Text .Login = username.Text .Password = password.Text .Name = DataBase.Text END WITH TRY myconn.Open() IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text The TRY opens even if I pass bad infomation in the text fields. It never errors. Am I doing something wrong? I notice that the database demo also never errors. Suse 10.0 Gambas 1.9.22 John From picander78 at ...325... Wed Dec 28 11:00:31 2005 From: picander78 at ...325... (Marco Gusy) Date: Wed, 28 Dec 2005 11:00:31 +0100 Subject: [Gambas-user] Treeview find() (maybe bug?) In-Reply-To: <200512272004.01332.gambas@...1...> References: <200512271755.40479.picander78@...325...> <200512271915.38752.picander78@...325...> <200512272004.01332.gambas@...1...> Message-ID: <200512281100.31210.picander78@...325...> Alle 20:04, marted? 27 dicembre 2005, Benoit Minisini ha scritto: > > I never noticed before that it didn't scroll automatically during a drag... > And I have no idea why! :-( > > I will try to understand what QT does exactly... Don't know if this could help: while dragging the mouse wheel is ineffective too, but works well in normal mode. Marco From picander78 at ...325... Wed Dec 28 11:10:16 2005 From: picander78 at ...325... (Marco Gusy) Date: Wed, 28 Dec 2005 11:10:16 +0100 Subject: [Gambas-user] Re: Columnview key In-Reply-To: <43B19971.90708@...1248...> References: <43B19971.90708@...1248...> Message-ID: <200512281110.16492.picander78@...325...> Alle 20:43, marted? 27 dicembre 2005, Rohnny Stormo ha scritto: > Hi Benoit. > > It's not more than one key I want. I want to retrive the key from one > line in the columview. > Why don't you use a "for each" instead "for i=" + "exists"? From gambas at ...1... Wed Dec 28 12:03:50 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Dec 2005 12:03:50 +0100 Subject: [Gambas-user] Re: Columnview key In-Reply-To: <43B19971.90708@...1248...> References: <43B19971.90708@...1248...> Message-ID: <200512281203.51064.gambas@...1...> On Tuesday 27 December 2005 20:43, Rohnny Stormo wrote: > Hi Benoit. > > It's not more than one key I want. I want to retrive the key from one > line in the columview. > > It was ment to use time value then they will not crash when adding. I > have used > number now since it's not working other way. > > The number between () are keys. > key-productnr - description-price-quant-discount-total > (1) -01234- 02.12.2005 - product description-123-2-0-246 > (2) -01234- 03.12.2005 - product description-123-2-0-246 > (3) -01234- 07.12.2005 - product description-123-2-0-246 > (8) -01234- 15.12.2005 - product description-123-2-0-246 > (9) -01234- 18.12.2005 - product description-123-2-0-246 > > ---------------------------- > > > As you see missing 4-7 that because as user I did a mistake and went back > delete the line and added a new one. Or maybee customer did not want the > product after all, so it need to be deleted. You know all those yellow > papers on the > desk :D > > Now I loop trough 1-keycount (9) > for i = 1 to keycount > if columnview1[i].exist = true then > do something with columns > col1 = columnview1[i][0] > col2 = columnview1[i][1] > col3 = columnview1[i][2] > col4 = columnview1[i][3] > col5 = columnview1[i][4] > col6 = columnview1[i][5] > end if > > What I wanted was > dim key > for i = 0 to columnview1.count -1 > key = columnview.item[i].key > ' > col1 = columnview1[key][0] > col2 = columnview1[key][1] > col3 = columnview1[key][2] > col4 = columnview1[key][3] > col5 = columnview1[key][4] > col6 = columnview1[key][5] > next > > I also need to go trough all after adding one more line to add a total, > vat and total inc vat to the screen > > Think the last one would be safer and faster. If I make a mistake and > forgett > to zero keycounter then hell brake loose. I know I should not forgett > that :D > > > Regards Rohnny > If you just need browse the column view, you have to do that: ColumnView1.MoveFirst WHILE ColumnView1.Available key = ColumnView1.Item.Key col1 = ColumnView1.Item[0] col2 = ColumnView1.Item[1] ... ColumnView1.MoveNext WEND Regards, -- Benoit Minisini From gambas at ...1... Wed Dec 28 12:05:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Dec 2005 12:05:15 +0100 Subject: [Gambas-user] newbie question executables In-Reply-To: <200512280049.57741.jfabiani@...1109...> References: <200512280039.20264.jfabiani@...1109...> <200512280049.57741.jfabiani@...1109...> Message-ID: <200512281205.15663.gambas@...1...> On Wednesday 28 December 2005 09:49, johnf wrote: > On Wednesday 28 December 2005 00:39, johnf wrote: > > Gambas 1.9.22 > > After I build a executable. How do I run it? > > > > I have tried gbx2 filename and I get an error. > > ERROR: #45: File or directory does not exist > > using Gambas2 I get not a project file. My SUSE 10.0 does not know how to > > run it. > > > > John > > I take it back I can't make an executable. Even thought the program said > it made the executable with an OK message at the bottom the project window > - it did nothing? If makes nothing then what could be wrong? Is it > suppose to create a shell script? > > John > By default, the executable is created inside the project directory, and has the same name as the project, with a '.gambas' extension added. Regards, -- Benoit Minisini From gambas at ...1... Wed Dec 28 12:07:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Dec 2005 12:07:24 +0100 Subject: [Gambas-user] the database connection never errors In-Reply-To: <200512280132.47590.jfabiani@...1109...> References: <200512280132.47590.jfabiani@...1109...> Message-ID: <200512281207.24643.gambas@...1...> On Wednesday 28 December 2005 10:32, johnf wrote: > Hi, > Dim myconn as Connection > WITH myconn > .Type = TypeDataBase.Text > ' "postgresql" > .Host = host.Text > > .Login = username.Text > > .Password = password.Text > > .Name = DataBase.Text > > END WITH > TRY myconn.Open() > IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text > > > The TRY opens even if I pass bad infomation in the text fields. It never > errors. Am I doing something wrong? I notice that the database demo also > never errors. Suse 10.0 Gambas 1.9.22 > John > Strange... I get errors there! What are the values of the MyConn properties exactly? I don't need Password :-) And did you try with the database manager? -- Benoit Minisini From mike_keehan at ...679... Wed Dec 28 16:09:31 2005 From: mike_keehan at ...679... (Mike Keehan) Date: Wed, 28 Dec 2005 15:09:31 +0000 Subject: [Gambas-user] gambas crash? In-Reply-To: <20051228005821.70825.qmail@...1039...> References: <20051228005821.70825.qmail@...1039...> Message-ID: <43B2AAAB.9010100@...679...> Ramon Orticio wrote: > dear friends, > > opening a project in gambas 1.0.6 i used to see a > dialogue box stating more or less like this "the > application is possibly open and opening it again will > affect IDE and will result in a loss of data." i > simply ignore this because though i already rebooted > the computer, this dialogue oftentimes occur. > > most of the times i open two gambas projects in two > different consoles, one my own and the other one > usually a database example in gambas from which i > pattern my project. my laptop has 256MB RAM and 1.5GB > free disk space. it has dual boot, windows and linux. > > just yesterday my laptop won't boot there was a total > blackout. not even the BIOS program will appear in the > display. i tried to connect to other monitor thinking > that the laptop monitor is not functioning, but still > it won't show anything on the other working pc > monitor. > > do you have any idea what caused this problem? is this > a gambas crash as what the dialogue box was saying? is > the BIOS corrupted? the ASUS laptop service center is > a litte bit far from us (500km). anyway thanks for any > info you can share. > Ramon, I don't think it has anything to do with Gambas. Try removing the battery, disconnect the power supply, and all other connections (mouse, network, modem etc.) and wait a few minutes. Then reconnect the power supply only and try turning on. This has worked for me with a HP Omnibook 6100. Mike. From jfabiani at ...1109... Wed Dec 28 18:09:54 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 09:09:54 -0800 Subject: [Gambas-user] newbie question executables In-Reply-To: <200512281205.15663.gambas@...1...> References: <200512280039.20264.jfabiani@...1109...> <200512280049.57741.jfabiani@...1109...> <200512281205.15663.gambas@...1...> Message-ID: <200512280909.54796.jfabiani@...1109...> On Wednesday 28 December 2005 03:05, Benoit Minisini wrote: > On Wednesday 28 December 2005 09:49, johnf wrote: > > On Wednesday 28 December 2005 00:39, johnf wrote: > > > Gambas 1.9.22 > > > After I build a executable. How do I run it? > > > > > > I have tried gbx2 filename and I get an error. > > > ERROR: #45: File or directory does not exist > > > using Gambas2 I get not a project file. My SUSE 10.0 does not know how > > > to run it. > > > > > > John > > > > I take it back I can't make an executable. Even thought the program said > > it made the executable with an OK message at the bottom the project > > window - it did nothing? If makes nothing then what could be wrong? Is > > it suppose to create a shell script? > > > > John > > By default, the executable is created inside the project directory, and has > the same name as the project, with a '.gambas' extension added. > > Regards, When ever I change the name to anything like newprg.gambas it does not make a file with newprg.* in the directory of the project or anywhere else. However, if I don't change the name a file is created. But how do I run it? Changing the permissions to executable does nothing. SUSE 10.0 always ask how to open the file. It does not run just stand alone. BTW the file name it creates is "FirstTry.gambas" which you would expect. John From jfabiani at ...1109... Wed Dec 28 18:36:24 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 09:36:24 -0800 Subject: [Gambas-user] the database connection never errors In-Reply-To: <200512281207.24643.gambas@...1...> References: <200512280132.47590.jfabiani@...1109...> <200512281207.24643.gambas@...1...> Message-ID: <200512280936.24514.jfabiani@...1109...> On Wednesday 28 December 2005 03:07, Benoit Minisini wrote: > On Wednesday 28 December 2005 10:32, johnf wrote: > > Hi, > > Dim myconn as Connection > > WITH myconn > > .Type = TypeDataBase.Text > > ' "postgresql" > > .Host = host.Text > > > > .Login = username.Text > > > > .Password = password.Text > > > > .Name = DataBase.Text > > > > END WITH > > TRY myconn.Open() > > IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text > > > > > > The TRY opens even if I pass bad infomation in the text fields. It never > > errors. Am I doing something wrong? I notice that the database demo > > also never errors. Suse 10.0 Gambas 1.9.22 > > John > > Strange... I get errors there! > > What are the values of the MyConn properties exactly? I don't need > Password :-) > > And did you try with the database manager? I did not try with the database manager. Actually, I don't know how to run it (remember I'm a newbie). What is the name of the database manager file. Checking the code in the database example I notice that you never use "TRY myconn.Open()". The database project always uses "CATCH". Is this why I don't get errors? Anyway I only get errors from "exec" commands from my code. .Type = "postgresql" .Host = "192.168.1.200" .Login = "johnf" .Name = "Real-Acconting" .Password = "password" From gambasfr at ...11... Wed Dec 28 19:58:31 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 28 Dec 2005 19:58:31 +0100 Subject: [Gambas-user] Database manager problem In-Reply-To: <200512272323.08991.jscops@...11...> References: <200512241057.01366.jscops@...11...> <200512241511.46659.gambasfr@...11...> <200512272323.08991.jscops@...11...> Message-ID: <200512281958.32071.gambasfr@...11...> Le Mardi 27 D?cembre 2005 23:23, Jacky a ?crit?: > Le Samedi 24 D?cembre 2005 15:11, Fabien Bodard a ?crit?: > > > With database manager, when i save a table with auto_increment > > > attribut, i lose this attribut. Is it normal ? > > > Gambas 1.9.20 or Gambas 1.0.11 > > > Suse 9.3 > > > > yes, Gambas db not support auto_increment attribute... but i hope Benoit > > add this, because it's really usefull... > > > > Before that i use this : > > > > hres = hCon.Exec("Select Max(id) From Client") > > newid = hRes["Max(id)"] + 1 > > Salut, > no, no Fabien, with an unique key the auto_increment works fine. It's with > the database manager that we lose the auto_increment attribut. Simply > saving table lose this attribut. > ~? Jack ?~ > I just repeat what i've saying... In fact gb.db dont support the autoincrement ! When you are saving a single entry, you don't change the table structure you have create with an sql statement. But when you save a table structure in the manager, it use the gb.db interface and not sql command... And gb.db layer have not autoincrement option ... so it is lose during this op?ration !. Benoit ? Is it possible to add this ? Regards, Fabien Bodard From ronstk at ...239... Wed Dec 28 22:02:02 2005 From: ronstk at ...239... (ron) Date: Wed, 28 Dec 2005 22:02:02 +0100 Subject: [Gambas-user] gambas crash? In-Reply-To: <20051228005821.70825.qmail@...1039...> References: <20051228005821.70825.qmail@...1039...> Message-ID: <200512282202.03247.ronstk@...239...> On Wednesday 28 December 2005 01:58, Ramon Orticio wrote: > "the > application is possibly open and opening it again will > affect IDE and will result in a loss of data." LOL: This is not the harddisk IDE :) You use gamabs during development with a IDE. Stands for 'Intergrated Development Interface' Very confusing al those abreviations. The warning message is to prevent working on your project with two different editors on the same class, form or module, changing the same file and you save the wrong one as the suposed good one. :( BTW: If you want use the databse manager as stand alone, you can use gambas-databasemanager as an seperate program instead of the one in the menu bar. (in /opt/gambas , /user/bin or /user/local/bin , depends on distro.) Ron From gambas at ...1... Wed Dec 28 22:21:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Dec 2005 22:21:24 +0100 Subject: [Gambas-user] newbie question executables In-Reply-To: <200512280909.54796.jfabiani@...1109...> References: <200512280039.20264.jfabiani@...1109...> <200512281205.15663.gambas@...1...> <200512280909.54796.jfabiani@...1109...> Message-ID: <200512282221.24857.gambas@...1...> On Wednesday 28 December 2005 18:09, johnf wrote: > On Wednesday 28 December 2005 03:05, Benoit Minisini wrote: > > On Wednesday 28 December 2005 09:49, johnf wrote: > > > On Wednesday 28 December 2005 00:39, johnf wrote: > > > > Gambas 1.9.22 > > > > After I build a executable. How do I run it? > > > > > > > > I have tried gbx2 filename and I get an error. > > > > ERROR: #45: File or directory does not exist > > > > using Gambas2 I get not a project file. My SUSE 10.0 does not know > > > > how to run it. > > > > > > > > John > > > > > > I take it back I can't make an executable. Even thought the program > > > said it made the executable with an OK message at the bottom the > > > project window - it did nothing? If makes nothing then what could be > > > wrong? Is it suppose to create a shell script? > > > > > > John > > > > By default, the executable is created inside the project directory, and > > has the same name as the project, with a '.gambas' extension added. > > > > Regards, > > When ever I change the name to anything like newprg.gambas it does not make > a file with newprg.* in the directory of the project or anywhere else. > However, if I don't change the name a file is created. But how do I run > it? Changing the permissions to executable does nothing. SUSE 10.0 always > ask how to open the file. > It does not run just stand alone. BTW the file > name it creates is "FirstTry.gambas" which you would expect. > John > I think you use KDE, and KDE does not execute script files automatically, even if they are executable. You must run them in a shell, or create a KDE shortcut. Regards, -- Benoit Minisini From gambas at ...1... Wed Dec 28 22:49:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Dec 2005 22:49:13 +0100 Subject: [Gambas-user] the database connection never errors In-Reply-To: <200512280936.24514.jfabiani@...1109...> References: <200512280132.47590.jfabiani@...1109...> <200512281207.24643.gambas@...1...> <200512280936.24514.jfabiani@...1109...> Message-ID: <200512282249.14503.gambas@...1...> On Wednesday 28 December 2005 18:36, johnf wrote: > On Wednesday 28 December 2005 03:07, Benoit Minisini wrote: > > On Wednesday 28 December 2005 10:32, johnf wrote: > > > Hi, > > > Dim myconn as Connection > > > WITH myconn > > > .Type = TypeDataBase.Text > > > ' "postgresql" > > > .Host = host.Text > > > > > > .Login = username.Text > > > > > > .Password = password.Text > > > > > > .Name = DataBase.Text > > > > > > END WITH > > > TRY myconn.Open() > > > IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text > > > > > > > > > The TRY opens even if I pass bad infomation in the text fields. It > > > never errors. Am I doing something wrong? I notice that the database > > > demo also never errors. Suse 10.0 Gambas 1.9.22 > > > John > > > > Strange... I get errors there! > > > > What are the values of the MyConn properties exactly? I don't need > > Password :-) > > > > And did you try with the database manager? > > I did not try with the database manager. Actually, I don't know how to run > it (remember I'm a newbie). 'Tools' -> 'Database manager' in the Development Environment menus. > What is the name of the database manager file. > Checking the code in the database example I notice that you never use "TRY > myconn.Open()". The database project always uses "CATCH". Is this why I > don't get errors? No, this has about the same effect (at least it should). > > Anyway I only get errors from "exec" commands from my code. > .Type = "postgresql" > .Host = "192.168.1.200" > .Login = "johnf" > .Name = "Real-Acconting" > .Password = "password" > > From the Database example I get errors if I attempt to use a wrong "host", > "login" (if the login does not exist), and "name". So if I use a login of > "Benoit" and "Benoit" exist but pass an incorrect "password" I do not get > an error until I attempt to access data. Strange. I will check... > > John > Regards, -- Benoit Minisini From na2492 at ...9... Wed Dec 28 23:17:19 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 28 Dec 2005 23:17:19 +0100 Subject: [Gambas-user] gambas crash? In-Reply-To: <200512282202.03247.ronstk@...239...> References: <20051228005821.70825.qmail@...1039...> <200512282202.03247.ronstk@...239...> Message-ID: <1135808240.7221.20.camel@...37...> Am Mittwoch, den 28.12.2005, 22:02 +0100 schrieb ron: > On Wednesday 28 December 2005 01:58, Ramon Orticio wrote: > > "the > > application is possibly open and opening it again will > > affect IDE and will result in a loss of data." > > LOL: This is not the harddisk IDE :) > > You use gamabs during development with a IDE. > Stands for 'Intergrated Development Interface' > > Very confusing al those abreviations. > > The warning message is to prevent working on your project > with two different editors on the same class, form > or module, changing the same file and you save the > wrong one as the suposed good one. :( > > BTW: > If you want use the databse manager as stand alone, you can > use gambas-databasemanager as an seperate program instead of > the one in the menu bar. > (in /opt/gambas , /user/bin or /user/local/bin , depends on distro.) > > Ron Salut Ron, back again . Amicalment Charlie Salut, the warning you talk about, Benoit made it while, we plained the danger of the none refeshed files in the IDE of gambas, when a project where opened more then one time. That means you will lose data, if you make changes in the first IDE open with project A and save them, and then you make changes in an other IDE , where project A is also opend and save these changes. Because the tow IDE's do NOT know each from the other. So the warning means: You had a project crash, and the log-file is still there, or the project is opened more then one time, at the same time, and the log -file where found. So I say that warning has NOTHING to do with your problems. If even the Bios don't appear, like you say, I think you are in heavy hardware troubles. Amicalment Charlie From rporticio at ...43... Thu Dec 29 01:37:20 2005 From: rporticio at ...43... (Ramon Orticio) Date: Wed, 28 Dec 2005 16:37:20 -0800 (PST) Subject: [Gambas-user] gambas crash? Message-ID: <20051229003720.26402.qmail@...1298...> dear friends, thank you for your concern. ramon __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From rporticio at ...43... Thu Dec 29 07:34:01 2005 From: rporticio at ...43... (Ramon Orticio) Date: Wed, 28 Dec 2005 22:34:01 -0800 (PST) Subject: [Gambas-user] DataReport Example Message-ID: <20051229063401.69454.qmail@...1016...> may i pose the following inquiries regarding DataReportExample written by Rizky Tahara Shita (rizky at ...225...). 1. This Sub routine PUBLIC SUB TableView1_Data(Row AS Integer, Column AS Integer) 'the array's field name's arrtable[0]="name" arrtable[1]="dept" WITH Mglobal .rs1.MoveTo(Row) tableview1.data.Text = Str(.rs1[arrtable[Column]]) END WITH END 1.1 this routine immeidately get focus and runs even if not called. 1.2 when i tried to debug this routine it appears that there is an automatic looping even without the control structure to loop it. 1.3 how did the above happen? this is very nice but rather unusual in vb. 2. can textboxes be bound to a data in a particular field of a recordset. i can't see a data property in textboxes. thanks ramon __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From jfabiani at ...1109... Thu Dec 29 08:15:14 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 28 Dec 2005 23:15:14 -0800 Subject: [Gambas-user] change the hierarchy of controls Message-ID: <200512282315.15066.jfabiani@...1109...> Hi, How do I change the hierarchy of control on a form? Gambas 1.9.22 SUSE 10.0 John From jfabiani at ...1109... Thu Dec 29 09:36:30 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 29 Dec 2005 00:36:30 -0800 Subject: [Gambas-user] How to set the input mask Message-ID: <200512290036.30817.jfabiani@...1109...> I searched and read - but do I set the input mask of a textbox to uppercase? Also where is it set? John From peter.lee at ...1293... Thu Dec 29 10:54:32 2005 From: peter.lee at ...1293... (peter lee) Date: Thu, 29 Dec 2005 17:54:32 +0800 Subject: [Gambas-user] How get the duration of movie playing? Message-ID: Hi Rohnny, Thanks for your application and helps. However is it possible to get to duration of the movie playing? In window I have an application that kept on playing all the movie located in one specific directory. Is it possible to do in GAMBAS? Either by checking the duration of movie playing or status of movie playing? Thanks Rdgs Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From JamesWilson at ...1288... Thu Dec 29 13:04:18 2005 From: JamesWilson at ...1288... (James Wilson) Date: Thu, 29 Dec 2005 12:04:18 -0000 Subject: [Gambas-user] Images from web Message-ID: <005901c60c70$5c8e0c99$0210a8c0@...1291...> I am trying to develop a little app in gambas to display images from cctv. I have developed a windows Version in .net that gets images (jpegs) from a url and this works great. I n .net I use a picturebox with the image location set to the correct path. I need to grab a max of 2 images per second so ideally do not want to download the image to a local file, would prefer to keep it all in memory. This app will run on the machine where the cameras are recorded, so the images are in shared memory. I?m assuming it will be easier to get the images from the webserver than from shared mem, but obviously shared mem would be mo efficient. But the images in shared mem are raw, so I?m thinking it will be harder that way Many thanks and happy new year James From gambasfr at ...11... Thu Dec 29 17:25:05 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 29 Dec 2005 17:25:05 +0100 Subject: [Gambas-user] DataReport Example In-Reply-To: <20051229063401.69454.qmail@...1016...> References: <20051229063401.69454.qmail@...1016...> Message-ID: <200512291725.05998.gambasfr@...11...> Le Jeudi 29 D?cembre 2005 07:34, Ramon Orticio a ?crit?: > may i pose the following inquiries regarding > DataReportExample written by Rizky Tahara Shita > (rizky at ...225...). > > 1. This Sub routine > > PUBLIC SUB TableView1_Data(Row AS Integer, Column AS > Integer) > 'the array's field name's > > arrtable[0]="name" > arrtable[1]="dept" > > > WITH Mglobal > .rs1.MoveTo(Row) > tableview1.data.Text = Str(.rs1[arrtable[Column]]) > END WITH > END > > 1.1 this routine immeidately get focus and runs even > if not called. > > 1.2 when i tried to debug this routine it appears > that there is an automatic looping even without the > control structure to loop it. > > 1.3 how did the above happen? this is very nice but > rather unusual in vb. > > 2. can textboxes be bound to a data in a particular > field of > a recordset. i can't see a data property in > textboxes. > > thanks > > ramon > Hi Ramon For a thousand time, Gambas is not vb. 1.1.. We are calling that an event :) it exist under vb too. In fact the data event is called when the tableview is drawed. it give the col and the row and we return the data to show by tableview.data.text. TableView.Data is an internal pointer that give the current drawed item. TableView not contain any data as vb control did. it only show the data contained in an iternal result buffer or an array. 1.2... same reason... it's call for each cells 1.3 It's not vb !... but it's different mabe 1 or2 week to understand correctly the tableview and result interaction but all is possible. 2 no, you need to do that by hand. But it's not really difficult. TextBox1.Text = Result!field or TextBox1.Text = Result["field"] Mabe a few more work for that... TextBoxes are part of the gb.qt lib... and result part of the gb.db lib... Contrary to vb gambas is a terminal language... So the toolkit is not integrated to the interpreter. From gambasfr at ...11... Thu Dec 29 17:25:47 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 29 Dec 2005 17:25:47 +0100 Subject: [Gambas-user] change the hierarchy of controls In-Reply-To: <200512282315.15066.jfabiani@...1109...> References: <200512282315.15066.jfabiani@...1109...> Message-ID: <200512291725.47808.gambasfr@...11...> Le Jeudi 29 D?cembre 2005 08:15, johnf a ?crit?: > Hi, > How do I change the hierarchy of control on a form? > Gambas 1.9.22 SUSE 10.0 > Home key and end key.... > John > From gambasfr at ...11... Thu Dec 29 17:29:49 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 29 Dec 2005 17:29:49 +0100 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512290036.30817.jfabiani@...1109...> References: <200512290036.30817.jfabiani@...1109...> Message-ID: <200512291729.49198.gambasfr@...11...> Le Jeudi 29 D?cembre 2005 09:36, johnf a ?crit?: > I searched and read - but do I set the input mask of a textbox to > uppercase? Also where is it set? Where did you see a mask ? you can do : ' Gambas class file PUBLIC SUB TextBox1_Change() TextBox1.Text = UCase(TextBox1.Text) END regards, Fabien Bodard > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 Dec 29 17:43:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Dec 2005 17:43:01 +0100 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512291729.49198.gambasfr@...11...> References: <200512290036.30817.jfabiani@...1109...> <200512291729.49198.gambasfr@...11...> Message-ID: <200512291743.01661.gambas@...1...> On Thursday 29 December 2005 17:29, Fabien Bodard wrote: > Le Jeudi 29 D?cembre 2005 09:36, johnf a ?crit?: > > I searched and read - but do I set the input mask of a textbox to > > uppercase? Also where is it set? > > Where did you see a mask ? > > you can do : > ' Gambas class file > > PUBLIC SUB TextBox1_Change() > > TextBox1.Text = UCase(TextBox1.Text) > > END > > regards, > Fabien Bodard > This works only with ASCII. You must do: TextBox1.Text = String.UCase(TextBox1.Text) -- Benoit Minisini From jfabiani at ...1109... Thu Dec 29 17:51:05 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 29 Dec 2005 08:51:05 -0800 Subject: [Gambas-user] change the hierarchy of controls In-Reply-To: <200512291725.47808.gambasfr@...11...> References: <200512282315.15066.jfabiani@...1109...> <200512291725.47808.gambasfr@...11...> Message-ID: <200512290851.05433.jfabiani@...1109...> On Thursday 29 December 2005 08:25, Fabien Bodard wrote: > Le Jeudi 29 D?cembre 2005 08:15, johnf a ?crit?: > > Hi, > > How do I change the hierarchy of control on a form? > > Gambas 1.9.22 SUSE 10.0 > > Home key and end key.... > > > John that worked - thanks John From jfabiani at ...1109... Thu Dec 29 18:13:58 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 29 Dec 2005 09:13:58 -0800 Subject: [Gambas-user] Newbie questions - object hierarchy Message-ID: <200512290913.58822.jfabiani@...1109...> Hi, Ok I'm a newbie to gambas (new to basic and gambas). And I have lots of questions. But some questions will help find the answers on my own. First, what is the object hierarchy? I was attempting to set the an input mask to a textbox in the change event as follows: me.text - Ucase(me.text) - Turns out "me" is the form. and it should be textbox1.text = Ucase(textbox1.text) where textbox1 is the name of the object. So could someone explain the object hierarchy. Is there a parent as in "parent.object.variable = True" Is there a "self", "this", "me" - how do I address the object from within the object? Where is the IDE documented? How do I release an object? When are the controls available within an object as in: Dim Oinstance As someobject Oinstanace = new someobject Oinstance.object.property = something Or must the property be set within the object - maybe at the open event or with "_new"? Is there a pass a form to a form? Normally I just add a property in the form and then set object property as in object.property = self (maybe this should be "me"). So I can return info to the calling form. So how do I insure that I am returning data to the calling form? Thanks in advance! John From ronstk at ...239... Thu Dec 29 21:33:58 2005 From: ronstk at ...239... (ron) Date: Thu, 29 Dec 2005 21:33:58 +0100 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512290036.30817.jfabiani@...1109...> References: <200512290036.30817.jfabiani@...1109...> Message-ID: <200512292133.58954.ronstk@...239...> On Thursday 29 December 2005 09:36, johnf wrote: > I searched and read - but do I set the input mask of a textbox to uppercase? > Also where is it set? > John > 'gambas is not VB' is written somewhere. :) I asume you mean a mask as '###-##-##-$$' to be able only to accept entering something as '123-45-67-AB' The VB Input Mask is not (yet) in gambas. :( This is a job you have to do in the key_down or key_up event. Ron From jfabiani at ...1109... Thu Dec 29 22:20:24 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 29 Dec 2005 13:20:24 -0800 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512292133.58954.ronstk@...239...> References: <200512290036.30817.jfabiani@...1109...> <200512292133.58954.ronstk@...239...> Message-ID: <200512291320.24880.jfabiani@...1109...> On Thursday 29 December 2005 12:33, ron wrote: > On Thursday 29 December 2005 09:36, johnf wrote: > > I searched and read - but do I set the input mask of a textbox to > > uppercase? Also where is it set? > > John > > 'gambas is not VB' is written somewhere. :) > > I asume you mean a mask as '###-##-##-$$' to be able > only to accept entering something as '123-45-67-AB' > > The VB Input Mask is not (yet) in gambas. :( > > This is a job you have to do in the key_down or key_up > event. > > Ron I have that issue solved - but I still have questions. I need help with some of the overall stuff in Gambas (see earlier post). I'm not a VB programmer - In fact I have only used VB in a very limited way. But since I can't find much on Gambas I have been researching most of the questions on google using VB6. Not really a lot of help but some. Most of my programming has to do with Visual Foxpro. VFP is OOP but has easy access to data. I think VFP matches the thinking in Gambas. So what I don't know about Gambas could fill a library. Actually not knowing VB might be helpful. At least I choose to think so. John From picander78 at ...325... Thu Dec 29 23:29:51 2005 From: picander78 at ...325... (Marco Gusy) Date: Thu, 29 Dec 2005 23:29:51 +0100 Subject: [Gambas-user] Report on the wiki Message-ID: <200512292329.51866.picander78@...325...> Format function has been spammed on the wiki http://www.binara.com/gambas-wiki/bin/view/Gambas/LangFormat Regards From gambas at ...1... Thu Dec 29 23:39:22 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Dec 2005 23:39:22 +0100 Subject: [Gambas-user] Report on the wiki In-Reply-To: <200512292329.51866.picander78@...325...> References: <200512292329.51866.picander78@...325...> Message-ID: <200512292339.23039.gambas@...1...> On Thursday 29 December 2005 23:29, Marco Gusy wrote: > Format function has been spammed on the wiki > http://www.binara.com/gambas-wiki/bin/view/Gambas/LangFormat > > Regards > Now Rob can disable writing on the old wiki. The new wiki at gambasdoc.org is more robust :-) -- Benoit Minisini From picander78 at ...325... Thu Dec 29 23:58:45 2005 From: picander78 at ...325... (Marco Gusy) Date: Thu, 29 Dec 2005 23:58:45 +0100 Subject: [Gambas-user] Default dates format Message-ID: <200512292358.45610.picander78@...325...> I noticed that when I write a date field in a string the format is always "mm-dd-yyyy". (ie Cdate("01/02/03") is printed as 02/01/03) Is it possible to customize this behaviour or have I to do it myself with a function? Thanks!!! Marco From gambas at ...1... Fri Dec 30 00:06:33 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Dec 2005 00:06:33 +0100 Subject: [Gambas-user] Default dates format In-Reply-To: <200512292358.45610.picander78@...325...> References: <200512292358.45610.picander78@...325...> Message-ID: <200512300006.34096.gambas@...1...> On Thursday 29 December 2005 23:58, Marco Gusy wrote: > I noticed that when I write a date field in a string the format is always > "mm-dd-yyyy". (ie Cdate("01/02/03") is printed as 02/01/03) Is it possible > to customize this behaviour or have I to do it myself with a function? > > Thanks!!! > > Marco > Use Str$(), because CDate() does not use localization. You should read the documentation about CDate(), Str$(), Val()... -- Benoit Minisini From ronstk at ...239... Fri Dec 30 05:41:42 2005 From: ronstk at ...239... (ron) Date: Fri, 30 Dec 2005 05:41:42 +0100 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512291320.24880.jfabiani@...1109...> References: <200512290036.30817.jfabiani@...1109...> <200512292133.58954.ronstk@...239...> <200512291320.24880.jfabiani@...1109...> Message-ID: <200512300541.42656.ronstk@...239...> On Thursday 29 December 2005 22:20, johnf wrote: > On Thursday 29 December 2005 12:33, ron wrote: > > On Thursday 29 December 2005 09:36, johnf wrote: > > > I searched and read - but do I set the input mask of a textbox to > > > uppercase? Also where is it set? > > > John > > > > 'gambas is not VB' is written somewhere. :) > > > > I asume you mean a mask as '###-##-##-$$' to be able > > only to accept entering something as '123-45-67-AB' > > > > The VB Input Mask is not (yet) in gambas. :( > > > > This is a job you have to do in the key_down or key_up > > event. > > > > Ron > > I have that issue solved - but I still have questions. I need help with some > of the overall stuff in Gambas (see earlier post). I'm not a VB programmer - > In fact I have only used VB in a very limited way. But since I can't find > much on Gambas I have been researching most of the questions on google using > VB6. Not really a lot of help but some. As mentioned before they are not the same. Much help is to _read_ and _understand_ the examples provided with the install. Use the build in help, yes I know it is not complete, but it will provide almost the actual information for gambas. At some places it is not correct to the actual version, due changes in gambas code not yet updated in the online help. Try in simple small projects 'how to use a component' before starting big things. > Most of my programming has to do with Visual Foxpro. > VFP is OOP but has easy access to data. > I think VFP matches the thinking in Gambas. Be carefull, VFP is special for database access oriented in a simple basic like language. Gambas is Basic language oriented and support simple basic database acccess. In MS Access/VFP a textbox can be bind direct to a database field and a form is the presentation of a record in the recordset, you can easy walk the records almost without running code part. For VB6 the bind of controls to the database is also posible but record navigation has to be done in your code, and some minor display things. For Gambas there is no bind of controls to the backend database, so now all has to be done in code, navigation and display. The technics for creating a application are almost the same but how to do it in code are very different. > So what I don't know about Gambas could fill a library. For the most starters the same. > Actually not knowing VB might be helpful. At least I choose to think so. For the part of VB code, true. The big problem is reading VB code and expecting the same can be done in gambas. It is understanding what the VB code does, and translate to the correct code in gambas. Not the copy/paste behaviour, that way you stay a dummy. :) And the joy of creating an aplication disapears while nothing works and heaving no clue what is wrong and why. > > John > Try not read to much of VB as exact code, use it for the idea how to solve something. At many points there are major differences between VB and Gambas in code. Not the structure of the code but how to access the components/controls is different. You must see gambas as an attempt to get the Basic language to the GNU/Linux world. The most important is to get a background engine to work, and it is doing well ATM, and make it fast, idiot proof and flexible for enhanvements in the future. Together with the current IDE you can say Visual Gambas. Happy coding, Ron From jfabiani at ...1109... Fri Dec 30 07:43:49 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 29 Dec 2005 22:43:49 -0800 Subject: [Gambas-user] How to set the input mask In-Reply-To: <200512300541.42656.ronstk@...239...> References: <200512290036.30817.jfabiani@...1109...> <200512291320.24880.jfabiani@...1109...> <200512300541.42656.ronstk@...239...> Message-ID: <200512292243.49740.jfabiani@...1109...> On Thursday 29 December 2005 20:41, ron wrote: > On Thursday 29 December 2005 22:20, johnf wrote: > > On Thursday 29 December 2005 12:33, ron wrote: > > > On Thursday 29 December 2005 09:36, johnf wrote: > > > > I searched and read - but do I set the input mask of a textbox to > > > > uppercase? Also where is it set? > > > > John > > > > > > 'gambas is not VB' is written somewhere. :) > > > > > > I asume you mean a mask as '###-##-##-$$' to be able > > > only to accept entering something as '123-45-67-AB' > > > > > > The VB Input Mask is not (yet) in gambas. :( > > > > > > This is a job you have to do in the key_down or key_up > > > event. > > > > > > Ron > > > > I have that issue solved - but I still have questions. I need help with > > some of the overall stuff in Gambas (see earlier post). I'm not a VB > > programmer - In fact I have only used VB in a very limited way. But > > since I can't find much on Gambas I have been researching most of the > > questions on google using VB6. Not really a lot of help but some. > > As mentioned before they are not the same. > > Much help is to _read_ and _understand_ the examples provided with the > install. Use the build in help, yes I know it is not complete, but it will > provide almost the actual information for gambas. > At some places it is not correct to the actual version, due changes in > gambas code not yet updated in the online help. > Try in simple small projects 'how to use a component' before starting big > things. > > > Most of my programming has to do with Visual Foxpro. > > VFP is OOP but has easy access to data. > > I think VFP matches the thinking in Gambas. > > Be carefull, VFP is special for database access oriented in a simple basic > like language. Gambas is Basic language oriented and support simple basic > database acccess. > > In MS Access/VFP a textbox can be bind direct to a database field > and a form is the presentation of a record in the recordset, > you can easy walk the records almost without running code part. > > For VB6 the bind of controls to the database is also posible but record > navigation has to be done in your code, and some minor display things. > > For Gambas there is no bind of controls to the backend database, > so now all has to be done in code, navigation and display. > > The technics for creating a application are almost the same but > how to do it in code are very different. > > > So what I don't know about Gambas could fill a library. > > For the most starters the same. > > > Actually not knowing VB might be helpful. At least I choose to think so. > > For the part of VB code, true. > > The big problem is reading VB code and expecting the same can be done in > gambas. It is understanding what the VB code does, and translate to the > correct code in gambas. Not the copy/paste behaviour, that way you stay a > dummy. :) > And the joy of creating an aplication disapears while nothing works > and heaving no clue what is wrong and why. > > > John > > Try not read to much of VB as exact code, use it for the idea how to solve > something. At many points there are major differences between VB and Gambas > in code. Not the structure of the code but how to access the > components/controls is different. > > You must see gambas as an attempt to get the Basic language to the > GNU/Linux world. The most important is to get a background engine to work, > and it is doing well ATM, and make it fast, idiot proof and flexible for > enhanvements in the future. Together with the current IDE you can say > Visual Gambas. > > Happy coding, > > Ron Thanks for the detail response. It helps alot. Looking at the code is just starting to pay off. The big issues for me have been syntax and then understanding the objects,events, and then the IDE. I really don't know what the hierarchy of the objects is and I can't seem to gather that information. I think anyone using VFP could rattle the hierarchy off in just a day of use. I'm not sure if that because of available doc's (help file) or because it become obvious with just simple use. So I'm surprised that I can't find the information and it is not obvious to me. Just yesterday I found out that "me" referred to the form and not the object you are in. So I asked on this list "how does one refer to the object within the object" (like self,this,or me) no response. BTW I'm guessing it the name of the object. Believe me when I say that I'm thankful for all the help but I at a lost how do things. Anyway thanks again for your help. John From gambasfr at ...11... Fri Dec 30 15:18:47 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Fri, 30 Dec 2005 15:18:47 +0100 Subject: [Gambas-user] Mabe a bug on event handler Message-ID: <200512301518.47586.gambasfr@...11...> Hi Benoit This is a snapshot of my project... Try to run it ! I've an event with 2 arguments, if i put 2 argument in the event handler, it say too many arguments, if i put 1 it say not enougth... please can you tell me how to put 1.5 arguments ? ;-) If you can generate a patch in a short time it while be wonderfull. I'm in the last way to show an alpha version of my report g?n?rator. Another query... What about a KeyWord to allow to mask an inhertited parent property, sub or function.(like in vb.net) Some parent function have not to be showed but can be usefull in some internal uses... And in some case i don't want that a parent property changed... like vBox who inherits ReportContainer... Arrange property in this case have not to be set... contrary to Box Why Does i need to export inherited class in componant case ? in this case user have access to many things i don't want to ! I think you need to perform the resembling between the c interface and the gb one for components ! Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.report-0.0.5.tar.gz Type: application/x-tgz Size: 24793 bytes Desc: not available URL: From JamesWilson at ...1288... Fri Dec 30 15:31:46 2005 From: JamesWilson at ...1288... (James Wilson) Date: Fri, 30 Dec 2005 14:31:46 -0000 Subject: [Gambas-user] FW: Images from web Message-ID: <9A7F7547B2BA7E4DAF12D61724A0C53B098344@...1289...> -----Original Message----- From: James Wilson Sent: 29 December 2005 12:04 To: gambas-user at lists.sourceforge.net Subject: Images from web I am trying to develop a little app in gambas to display images from cctv. I have developed a windows Version in .net that gets images (jpegs) from a url and this works great. I n .net I use a picturebox with the image location set to the correct path. I need to grab a max of 2 images per second so ideally do not want to download the image to a local file, would prefer to keep it all in memory. This app will run on the machine where the cameras are recorded, so the images are in shared memory. I'm assuming it will be easier to get the images from the webserver than from shared mem, but obviously shared mem would be mo efficient. But the images in shared mem are raw, so I'm thinking it will be harder that way Many thanks and happy new year James From gambas at ...1... Fri Dec 30 16:17:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Dec 2005 16:17:15 +0100 Subject: [Gambas-user] FW: Images from web In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53B098344@...1289...> References: <9A7F7547B2BA7E4DAF12D61724A0C53B098344@...1289...> Message-ID: <200512301617.16135.gambas@...1...> On Friday 30 December 2005 15:31, James Wilson wrote: > -----Original Message----- > From: James Wilson > Sent: 29 December 2005 12:04 > To: gambas-user at lists.sourceforge.net > Subject: Images from web > > I am trying to develop a little app in gambas to display images from > cctv. I have developed a windows Version in .net that gets images > (jpegs) from a url and this works great. I n .net I use a picturebox > with the image location set to the correct path. I need to grab a max of > 2 images per second so ideally do not want to download the image to a > local file, would prefer to keep it all in memory. This app will run on > the machine where the cameras are recorded, so the images are in shared > memory. I'm assuming it will be easier to get the images from the > webserver than from shared mem, but obviously shared mem would be mo > efficient. But the images in shared mem are raw, so I'm thinking it will > be harder that way > > Many thanks and happy new year > > James > What is the size of your image? I think you can download it to a temporary file (by using 'wget' for example) without problem. On my Mandriva system, the /tmp directory is a special file system that uses the memory and the swap, and so there is no speed loss. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Dec 30 21:25:05 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 30 Dec 2005 15:25:05 -0500 Subject: [Gambas-user] FW: Images from web In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53B098344@...1289...> References: <9A7F7547B2BA7E4DAF12D61724A0C53B098344@...1289...> Message-ID: <200512301525.05676.sourceforge-raindog2@...94...> On Fri December 30 2005 09:31, James Wilson wrote: > I am trying to develop a little app in gambas to display > images from cctv. I have developed a windows Version in .net > that gets images (jpegs) from a url and this works great. I n > .net I use a picturebox with the image location set to the I already responded to this question last weekend.... you need to use gb.net.curl if you don't want to use an external program. I have no idea whether you can take the downloaded JPEG as a string and somehow stick it into a PictureBox without first saving it to disk, though. Rob From appsdev at ...966... Fri Dec 30 23:20:51 2005 From: appsdev at ...966... (A Person) Date: Fri, 30 Dec 2005 18:50:51 -0330 Subject: [Gambas-user] TextLabel Formatting Code Message-ID: <43B5B2C3.9010802@...966...> Good Day All and Season's Greetings . . . I am having extreme difficulty formatting a textlabel. Nothing that I try seems to work. . . . TextLabel1.Caption = "Stopped!" & Space$(5) & "The new debugged code is: " . . . 1. The above Space$(5) has no effect. 2. The spaces after _is:_ have no effect. 3. The gb.NewLine character has no apparent effect. 4. Chr$(13) and Chr$(10) have no effect. 5. I deciphered might mean something. It doesn't work. I am (1) trying to include spaces in the text and (2) trying to end a line and start another. Any help? Paul From dcamposf at ...626... Fri Dec 30 23:31:50 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 30 Dec 2005 23:31:50 +0100 Subject: [Gambas-user] net.curl component In-Reply-To: <20051223055120.M20756@...951...> References: <20051223055120.M20756@...951...> Message-ID: <7259b5ae0512301431r38ed9181x@...627...> You can use HttpGet and HttpPost examples from Gambas package. Regards, D. Campos 2005/12/23, nando : > > Does anyone have any examples how to use the curl component ? > -Fenando > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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 gambas-user at lists.sourceforge.net Sat Dec 31 10:24:19 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Sat, 31 Dec 2005 10:24:19 +0100 Subject: [Gambas-user] TextLabel Formatting Code In-Reply-To: <43B5B2C3.9010802@...966...> References: <43B5B2C3.9010802@...966...> Message-ID: <43B64E43.8090606@lists.sourceforge.net> A Person schrieb: > Good Day All and Season's Greetings . . . > > I am having extreme difficulty formatting a textlabel. > Nothing that I try seems to work. > > . . . > TextLabel1.Caption = "Stopped!" & Space$(5) & > "The new debugged code is: " > . . . > > 1. The above Space$(5) has no effect. > 2. The spaces after _is:_ have no effect. > 3. The gb.NewLine character has no apparent effect. > 4. Chr$(13) and Chr$(10) have no effect. > 5. I deciphered might mean something. It doesn't work. > > I am (1) trying to include spaces in the text and (2) trying to end a > line and start another. > > Any help? > > Paul > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi Paul You are using html, and html converts many spaces to one. Use   instead, or better format tags with css-styles. But not shure how a textlabel from gambas works with html-code. Regards, Staudi From gambas-user at lists.sourceforge.net Sat Dec 31 10:43:09 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Sat, 31 Dec 2005 10:43:09 +0100 Subject: [Gambas-user] TextLabel Formatting Code In-Reply-To: <43B64E43.8090606@lists.sourceforge.net> References: <43B5B2C3.9010802@...966...> <43B64E43.8090606@lists.sourceforge.net> Message-ID: <43B652AD.80501@lists.sourceforge.net> Werner Staudacher schrieb: > A Person schrieb: > >> Good Day All and Season's Greetings . . . >> >> I am having extreme difficulty formatting a textlabel. >> Nothing that I try seems to work. >> >> . . . >> TextLabel1.Caption = "Stopped!" & Space$(5) & >> "The new debugged code is: " >> . . . >> >> 1. The above Space$(5) has no effect. >> 2. The spaces after _is:_ have no effect. >> 3. The gb.NewLine character has no apparent effect. >> 4. Chr$(13) and Chr$(10) have no effect. >> 5. I deciphered might mean something. It doesn't work. >> >> I am (1) trying to include spaces in the text and (2) trying to end a >> line and start another. >> >> Any help? >> >> Paul >> >> > Hi Paul > > You are using html, and html converts many spaces to one. Use   > instead, or better format tags with css-styles. > But not shure how a textlabel from gambas works with html-code. > > Regards, Staudi > Sorry, i forgot that in html ... a new line is
or enclose paragraphs with

your textblock...

and is bold staudi From JamesWilson at ...1288... Sat Dec 31 12:59:18 2005 From: JamesWilson at ...1288... (James Wilson) Date: Sat, 31 Dec 2005 11:59:18 -0000 Subject: [Gambas-user] RE: Gambas-user digest, Vol 1 #1628 - 5 msgs Message-ID: <9A7F7547B2BA7E4DAF12D61724A0C53B098345@...1289...> >I am trying to develop a little app in gambas to display images from cctv. I have developed >a windows Version in .net that gets images >(jpegs) from a url and this works great. I n .net I use a picturebox with the image > location set to the correct path. I need to grab a max of >2 images per second so ideally do not want to download the image to a local file, would ?>prefer to keep it all in memory. This app will run on the machine where the cameras are >recorded, so the images are in shared memory. I'm assuming it will be easier to get the >images from the webserver than from shared mem, but obviously shared mem would be mo >efficient. But the images in shared mem are raw, so I'm thinking it will be harder that way >Many thanks and happy new year Sorry You did reply but on the next groups someone asked for examples of how to use net.curl class and I was unable to find any examples of netcurl using images. The wget idea I can understand and seems very logical, if not ideal. Will get me going, then later on I can modify it hopefully to get the raw images out of shared memory. Many thanks for your help. James From m.moeller at ...1299... Sat Dec 31 18:11:46 2005 From: m.moeller at ...1299... (Marcus Moeller) Date: Sat, 31 Dec 2005 18:11:46 +0100 Subject: [Gambas-user] l10n of variables Message-ID: <200512311811.46547.m.moeller@...1299...> Hello Gambas User, I just need some help in i18n. I have set up my project using .po files for translation. But I have noticed that only captions of Gui Elements are listed in the "Translate Project" utility. I am using variables of the type String to draw text to a drawing area. Now I need to now how to translate the values of these variables. If its not possible at the moment, I could perhaps read the system LANG environment and translate it by myself. But I don't know how to access system variables. Any help is welcome Marcus From na2492 at ...9... Sat Dec 31 19:07:12 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 31 Dec 2005 19:07:12 00100 Subject: [Gambas-user] l10n of variables Message-ID: <43b6c8d0.6ff8.0@...9...> >Hello Gambas User, > >I just need some help in i18n. I have set up my project using .po files for >translation. But I have noticed that only captions of Gui Elements are listed >in the "Translate Project" utility. > >I am using variables of the type String to draw text to a drawing area. Now I >need to now how to translate the values of these variables. > >If its not possible at the moment, I could perhaps read the system LANG >environment and translate it by myself. But I don't know how to access system >variables. > >Any help is welcome >Marcus Salut, try system on gambas-1.0.x otherwise you can use Shell or Exec ? system.Language is what you need. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From pvera at ...729... Sat Dec 31 20:07:06 2005 From: pvera at ...729... (Pablo Vera) Date: Sat, 31 Dec 2005 13:07:06 -0600 Subject: [Gambas-user] l10n of variables In-Reply-To: <200512311811.46547.m.moeller@...1299...> References: <200512311811.46547.m.moeller@...1299...> Message-ID: <43B6D6DA.6010900@...729...> In gambas 1.0 enclosing the string in parenthesis worked, something like this: StrVar1 = ("This is a translatable string") StrVar2 = "This is not ..." Saludos, Pablo Vera Marcus Moeller wrote: > Hello Gambas User, > > I just need some help in i18n. I have set up my project using .po files for > translation. But I have noticed that only captions of Gui Elements are listed > in the "Translate Project" utility. > > I am using variables of the type String to draw text to a drawing area. Now I > need to now how to translate the values of these variables. > > If its not possible at the moment, I could perhaps read the system LANG > environment and translate it by myself. But I don't know how to access system > variables. > > Any help is welcome > Marcus > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >