From na2492 at ...9... Sun May 1 00:51:48 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sun, 1 May 2005 00:51:48 00200 Subject: [Gambas-user] Please.... Message-ID: <42740c04.6698.0@...9...> > > > >Anyone can give me a sample code to open a sqlite database and list data >on a TableView? :~( > >Many many tanks!! >-- > Ciao, Enzo. > >(vcalandra at ...69...) > Salut, on gambas you have a good samble with 'gambas-database-manager' is working also with sqlite. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From neil at ...233... Sun May 1 14:36:30 2005 From: neil at ...233... (neil lewis) Date: Sun, 01 May 2005 13:36:30 +0100 Subject: [Gambas-user] Copying a folder and subfolders Message-ID: <4274CD4E.4070606@...233...> Hi All, I'm sure it's fairly trivial, but here goes. I need to copy the contents of a folder which may include subfolders (and maybe even sub-subfolders). The notes for COPY say it can't be used recursively, so what's the best way to do this? I've checked the manual and the wiki and so far I can find no examples or suggestions. Neil Lewis From zenum.net at ...626... Sun May 1 14:49:39 2005 From: zenum.net at ...626... (Tom) Date: Sun, 1 May 2005 22:49:39 +1000 Subject: [Gambas-user] Copying a folder and subfolders In-Reply-To: <4274CD4E.4070606@...233...> References: <4274CD4E.4070606@...233...> Message-ID: <200505012249.39908.zenum.net@...626...> > Hi All, > > I'm sure it's fairly trivial, but here goes. > > I need to copy the contents of a folder which may include subfolders > (and maybe even sub-subfolders). > The notes for COPY say it can't be used recursively, so what's the best > way to do this? > I've checked the manual and the wiki and so far I can find no examples > or suggestions. > > Neil Lewis > I had a similar problem with the MKDIR function that gambas has where I couldnt create subdirectories recursively. I solved this by just using the SHELL command though you could use EXEC as well. This way you can add your own options to the copy command. Hope this helps, -Tom From fidojones at ...805... Mon May 2 01:20:44 2005 From: fidojones at ...805... (Lorenzo Tejera) Date: Mon, 2 May 2005 01:20:44 +0200 (CEST) Subject: [Gambas-user] How to disable the ALT underline word in buttons? Message-ID: <58898.213.231.71.163.1114989644.squirrel@...962...> I don't know how it active, but my gambas program put alt underlines in all my buttons to click with ALT button and key. Normally it works manually New &New but now it put in every buttons, without put & symbol. I want to disable, any help? From gambasfr at ...11... Mon May 2 13:10:57 2005 From: gambasfr at ...11... (Fabien) Date: Mon, 2 May 2005 13:10:57 +0200 (CEST) Subject: [Gambas-user] Copying a folder and subfolders Message-ID: <25560417.1115032257496.JavaMail.www@...963...> > Message du 01/05/05 14:39 > De : "neil lewis" > A : gambas-user at lists.sourceforge.net > Copie à : > Objet : [Gambas-user] Copying a folder and subfolders > > Hi All, > > I'm sure it's fairly trivial, but here goes. > > I need to copy the contents of a folder which may include subfolders > (and maybe even sub-subfolders). > The notes for COPY say it can't be used recursively, so what's the best > way to do this? > I've checked the manual and the wiki and so far I can find no examples > or suggestions. > use this command : sDest as STring sFrom as STring EXEC("cp", "-R", sfrom, sdest) Fabien Bodard From nando_f at ...951... Mon May 2 16:33:37 2005 From: nando_f at ...951... (nando) Date: Mon, 2 May 2005 10:33:37 -0400 Subject: [Gambas-user] Copying a folder and subfolders In-Reply-To: <25560417.1115032257496.JavaMail.www@...963...> References: <25560417.1115032257496.JavaMail.www@...963...> Message-ID: <20050502142724.M68524@...951...> Benoit, Questions: (1) Does the following... PRIVATE my_array [4096, 16] as STRING ...occupy a static section of RAM or is it dymanic depending on the size of string actually stored in each element ?? (Remalloc'd every time there is an assignment?) (2) Are byte,integer arrays MALLOC'd in a static section of RAM once?? Thanks -Fernando From sluca at ...67... Mon May 2 16:53:38 2005 From: sluca at ...67... (Scaramella Luca) Date: Mon, 02 May 2005 14:53:38 +0000 Subject: [Gambas-user] Tab Order In-Reply-To: Message-ID: Hi, I would like to know how the Tab key works in the forms. There is any way to use a vb like TabIndex method for the objects inside the form?? I noticed the tab key has a logical order but how can i manage it?? Thanks From neil at ...233... Mon May 2 22:15:09 2005 From: neil at ...233... (neil lewis) Date: Mon, 02 May 2005 21:15:09 +0100 Subject: [Gambas-user] Copying a folder and subfolders In-Reply-To: <25560417.1115032257496.JavaMail.www@...963...> References: <25560417.1115032257496.JavaMail.www@...963...> Message-ID: <42768A4D.5020405@...233...> Thanks, Fabien. Neil Lewis Fabien wrote: > > > >>Message du 01/05/05 14:39 >>De : "neil lewis" >>A : gambas-user at lists.sourceforge.net >>Copie à : >>Objet : [Gambas-user] Copying a folder and subfolders >> >>Hi All, >> >>I'm sure it's fairly trivial, but here goes. >> >>I need to copy the contents of a folder which may include subfolders >>(and maybe even sub-subfolders). >>The notes for COPY say it can't be used recursively, so what's the best >>way to do this? >>I've checked the manual and the wiki and so far I can find no examples >>or suggestions. >> >> >> > >use this command : > >sDest as STring >sFrom as STring > > >EXEC("cp", "-R", sfrom, sdest) > >Fabien Bodard > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. >Get your fingers limbered up and give it your best shot. 4 great events, 4 >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From r.perez at ...204... Mon May 2 23:30:30 2005 From: r.perez at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Mon, 02 May 2005 23:30:30 +0200 Subject: [Gambas-user] OT: Wireless In-Reply-To: <20050428085130.75F2D37225@...700...> References: <20050428085130.75F2D37225@...700...> Message-ID: <42769BF6.8080000@...204...> Daniel Oxley escribi?: >Thanks Charlie, however it seems that either I am searching wrong or there >are not many supported devices or the DB is out of date! > >Daniel > >-----Original Message----- >From: gambas-user-admin at lists.sourceforge.net >[mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Charlie Reinl >Sent: 27 April 2005 21:00 >To: gambas-user at lists.sourceforge.net >Subject: Re: [Gambas-user] OT: Wireless > > > >>>Hi all, >>> >>>I know that this is off topic but..... >>> >>>Can anyone recommend a good wireless card for Suse? It will be for a >>>PC >>> >>> > > > >>>rather than a laptop so I need a PCI one. >>> >>>Thanks, >>>Daniel >>> >>> >> >>Salut, >> >>SuSE has/had a hardware-database. >>Look at www.suse.com for that. >> >>Amicalment >>Charlie >>* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * >> >> >> >Salut, > >look at >http://cdb.novell.com/searchForm.php?searchtype=simple&LANG=en_UK&PHPSESSID= >a858be28eb91d08e5c0500b0a7dbfbc1 > > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > >------------------------------------------------------- >SF.Net email is sponsored by: Tell us your software development plans! >Take this survey and enter to win a one-year sub to SourceForge.net >Plus IDC's 2005 look-ahead and a copy of this survey >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >------------------------------------------------------- >SF.Net email is sponsored by: Tell us your software development plans! >Take this survey and enter to win a one-year sub to SourceForge.net >Plus IDC's 2005 look-ahead and a copy of this survey >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > With Suse 9.2 and 9.3 I use in my laptop PCMCIA C54C (Conceptronic). In my PC I use the same but PCI -- Ram?n P?rez r.perez at ...204... 615964957 From sluca at ...67... Tue May 3 09:08:23 2005 From: sluca at ...67... (Scaramella Luca) Date: Tue, 03 May 2005 07:08:23 +0000 Subject: [Gambas-user] Re: Gambas 1.9.6 and Contro, Groups Message-ID: I modified my code and now i can't replicate the error anymore. Sorry about that From gambas at ...1... Tue May 3 10:14:51 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 10:14:51 +0200 Subject: [Gambas-user] Tab Order In-Reply-To: References: Message-ID: <200505031014.52602.gambas@...1...> On Monday 02 May 2005 16:53, Scaramella Luca wrote: > Hi, > I would like to know how the Tab key works in the forms. > There is any way to use a vb like TabIndex method for the objects inside > the form?? > I noticed the tab key has a logical order but how can i manage it?? > > Thanks > > In Gambas, "TabIndex" = ZOrder. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 3 10:19:33 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 10:19:33 +0200 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <20050502142724.M68524@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <20050502142724.M68524@...951...> Message-ID: <200505031019.34082.gambas@...1...> On Monday 02 May 2005 16:33, nando wrote: > Benoit, > > Questions: > (1) Does the following... > > PRIVATE my_array [4096, 16] as STRING > > ...occupy a static section of RAM or > is it dymanic depending on the size of string actually stored > in each element ?? (Remalloc'd every time there is an assignment?) The array itself is statically allocated in your class, but a string is just a pointer to a malloc() allocation. By doing this, an object of your class will take at least 4096 * 16 * 4 = 256 Kb ! > > (2) Are byte,integer arrays MALLOC'd in a static section of RAM once?? > What do you mean by being "malloc'd" in a static section of ram once ??? There are two types of arrays in Gambas: - "static arrays", declared with DIM array[x, y] AS Type - "dynamic arrays", declared with DIM array AS NEW Type[x, y] The dynamic arrays are true Gambas objects, like in Java, but not static ones. Static arrays are allocated directly in the object they are declared (or in a temporary allocation if you declared them as local variables in a method). > Thanks > -Fernando > > Regardsn -- Benoit Minisini mailto:gambas at ...1... From fosco at ...765... Tue May 3 11:31:27 2005 From: fosco at ...765... (=?iso-8859-15?Q?Tr=E9court?= Nicolas) Date: Tue, 3 May 2005 11:31:27 +0200 Subject: [Gambas-user] lib.gb.api.so Message-ID: <20050503093126.GA22243@...766...> I have this kind of problem zhen using gb.api: ERROR: #27: Cannot load component '/usr/lib/gambas2/lib.gb.api.so': /usr/lib/gambas2/lib.gb.api.so: cannot open shared object file: No such file or directory I installed all debian packages from: http://www.linex.org/sources/linex/debian/dists/cl/gambas/binary-i386/ Where can I download the file 'lib.gb.api.so' ? From sluca at ...67... Tue May 3 15:45:39 2005 From: sluca at ...67... (Scaramella Luca) Date: Tue, 03 May 2005 13:45:39 +0000 Subject: [Gambas-user] Re: Tab Order Message-ID: Thanks, There is any documentation about the ZOrder?? It's an Object Property (textBox in my case)? Show me a sample please Regards Luca From nando_f at ...951... Tue May 3 16:17:12 2005 From: nando_f at ...951... (nando) Date: Tue, 3 May 2005 10:17:12 -0400 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <200505031019.34082.gambas@...1...> References: <25560417.1115032257496.JavaMail.www@...963...> <20050502142724.M68524@...951...> <200505031019.34082.gambas@...1...> Message-ID: <20050503141402.M60277@...951...> Thank you. About item (2) below - what I meant was: would... my_array [1234,12] = "HELLO" my_array [1234,12] = "Good Bye" perform a re-malloc to lengthen the string space requirements because line 2 is longer than line 1 ? -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Tue, 3 May 2005 10:19:33 +0200 Subject: [Gambas-user] About Gambas arrays > On Monday 02 May 2005 16:33, nando wrote: > > Benoit, > > > > Questions: > > (1) Does the following... > > > > PRIVATE my_array [4096, 16] as STRING > > > > ...occupy a static section of RAM or > > is it dymanic depending on the size of string actually stored > > in each element ?? (Remalloc'd every time there is an assignment?) > > The array itself is statically allocated in your class, but a string > is just a pointer to a malloc() allocation. > > By doing this, an object of your class will take at least 4096 * 16 > * 4 = 256 Kb ! > > > > > (2) Are byte,integer arrays MALLOC'd in a static section of RAM once?? > > > > What do you mean by being "malloc'd" in a static section of ram once > ??? > > There are two types of arrays in Gambas: > > - "static arrays", declared with DIM array[x, y] AS Type > - "dynamic arrays", declared with DIM array AS NEW Type[x, y] > > The dynamic arrays are true Gambas objects, like in Java, but not > static ones. Static arrays are allocated directly in the object they > are declared (or in a temporary allocation if you declared them as > local variables in a method). > > > Thanks > > -Fernando > > > > > > Regardsn > > -- > Benoit Minisini > mailto:gambas at ...1... > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great > events, 4 opportunities to win big! Highest score wins.NEC IT Guy > Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > 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... Tue May 3 15:53:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 15:53:54 +0200 Subject: [Gambas-user] Re: Tab Order In-Reply-To: References: Message-ID: <200505031553.55096.gambas@...1...> On Tuesday 03 May 2005 15:45, Scaramella Luca wrote: > Thanks, > There is any documentation about the ZOrder?? > It's an Object Property (textBox in my case)? > Show me a sample please > > Regards > Luca > No, it is something you set from the IDE, by using the form editor menu. To change ZOrder by code, you have the Raise() and Lower() method of the Control class. Regards, -- Benoit Minisini mailto:gambas at ...1... From nando_f at ...951... Tue May 3 16:23:36 2005 From: nando_f at ...951... (nando) Date: Tue, 3 May 2005 10:23:36 -0400 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <200505031019.34082.gambas@...1...> References: <25560417.1115032257496.JavaMail.www@...963...> <20050502142724.M68524@...951...> <200505031019.34082.gambas@...1...> Message-ID: <20050503141732.M21283@...951...> Benoit, My transition from VB to GAMBAS is progressing. I want to use .ADD and .CLEAR for an array but the syntax and usage eludes me. If I do the following... PRIVATE my_array [4096] as SHORT I am having a difficulty using .CLEAR my_array.clear reports it is not an object I know I am missing something in my understanding here. Can you aid in clearing my brain fog? Thank you -Fernando From akubukanspy at ...43... Tue May 3 16:28:04 2005 From: akubukanspy at ...43... (Elu jelek) Date: Tue, 3 May 2005 07:28:04 -0700 (PDT) Subject: [Gambas-user] Greatly i has made chart ( bar ) class Message-ID: <20050503142804.52752.qmail@...965...> Hi all Greatly i has made chart 2 dimension, but i dont know how to make it become component ? #Super_Spy ============================# http://superspy.tk #============================Super_Spy# __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Tue May 3 16:37:17 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 16:37:17 +0200 Subject: [Gambas-user] Greatly i has made chart ( bar ) class In-Reply-To: <20050503142804.52752.qmail@...965...> References: <20050503142804.52752.qmail@...965...> Message-ID: <200505031637.18046.gambas@...1...> On Tuesday 03 May 2005 16:28, Elu jelek wrote: > Hi all > Greatly i has made chart 2 dimension, but i dont know > how to make it become component ? > Good news! Please come on the devel mailing-list for development related topics, and maybe you will be enlightened :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 3 16:28:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 16:28:27 +0200 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <20050503141402.M60277@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031019.34082.gambas@...1...> <20050503141402.M60277@...951...> Message-ID: <200505031628.27708.gambas@...1...> On Tuesday 03 May 2005 16:17, nando wrote: > Thank you. > > About item (2) below - what I meant was: > > would... > my_array [1234,12] = "HELLO" > my_array [1234,12] = "Good Bye" > > perform a re-malloc to lengthen the string space requirements > because line 2 is longer than line 1 ? > > -Fernando > No. The string contents is allocated in its own place. The array contents are just pointers to these strings. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 3 16:29:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 16:29:25 +0200 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <20050503141732.M21283@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031019.34082.gambas@...1...> <20050503141732.M21283@...951...> Message-ID: <200505031629.25886.gambas@...1...> On Tuesday 03 May 2005 16:23, nando wrote: > Benoit, > > My transition from VB to GAMBAS is progressing. > I want to use .ADD and .CLEAR for an array > but the syntax and usage eludes me. > > If I do the following... > > PRIVATE my_array [4096] as SHORT > > I am having a difficulty using .CLEAR > > my_array.clear reports it is not an object > > I know I am missing something in my understanding here. > Can you aid in clearing my brain fog? > > > Thank you > -Fernando > I can just repeat what I said in my previous mail: - DIM array[xx] AS Type are static arrays, not objects. - DIM array AS NEW Type[xx] are dynamic arrays, i.e. true Gambas objects. Regards, -- Benoit Minisini mailto:gambas at ...1... From nando_f at ...951... Tue May 3 17:25:38 2005 From: nando_f at ...951... (nando) Date: Tue, 3 May 2005 11:25:38 -0400 Subject: [Gambas-user] DIMing Arrays In-Reply-To: <200505031629.25886.gambas@...1...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031019.34082.gambas@...1...> <20050503141732.M21283@...951...> <200505031629.25886.gambas@...1...> Message-ID: <20050503151955.M2596@...951...> Note that PRIVATE my_array AS NEW String[] will not compile/run if a space exists between String and the [ From gambas at ...1... Tue May 3 17:32:44 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 17:32:44 +0200 Subject: [Gambas-user] DIMing Arrays In-Reply-To: <20050503151955.M2596@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031629.25886.gambas@...1...> <20050503151955.M2596@...951...> Message-ID: <200505031732.44519.gambas@...1...> On Tuesday 03 May 2005 17:25, nando wrote: > Note that > > PRIVATE my_array AS NEW String[] > > will not compile/run if a space exists > between String and the [ > Yes, this is a syntax error :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 3 18:14:19 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 May 2005 18:14:19 +0200 Subject: [Gambas-user] gambas 1.0.6 Message-ID: <200505031814.20060.gambas@...1...> Hi, I just uploaded a new bug fix release of Gambas. Here is the ChangeLog: ---8<------------------------------------------------------------------------ * The source package now uses Automake 1.9. INTERPRETER * BUG: OPEN ... DIRECT now correctly works. * BUG: Opening a file with CREATE flag now always implies READ flag. * BUG: SEEK and READ now always work on files opened in DIRECT mode. QT COMPONENT * BUG: I finally got rid of the spurious warning generated by the TableView control. DATABASE COMPONENT * BUG: Result methods now always return an error when the result is not available. * BUG: Now tables whose primary key fields are not necessarily the first ones work. * BUG: The PostgreSQL driver has been fixed. Now it works for any version greater or equal than 7.3. ---8<------------------------------------------------------------------------ Enjoy it! -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Wed May 4 08:32:33 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 04 May 2005 08:32:33 +0200 Subject: [Gambas-user] TableView gray column width? Message-ID: <42786C81.8080502@...221...> Hi folks, Just ran into this problem: How can I adjust the width of the very first (gray) column in a TableView? It adjusts itself when strings are inserted which are bigger than before, i. e. it widens itself. But it does not narrow afterwards, even when you reduce the number of Rows and Columns to 0 and start all over. The problem is that TableView.Columns[0].Text refers to the first string in the gray column, but TableView.Columns[0].Width refers to the width of the first normal (white) column! In my project, I use the same TableView for 2 different sorts of tables, one which just has the automatic numbers in the gray column and 2 white columns with data, and another one which uses the gray column to display names and has a number of further white cells behind it. When you switch back to the small table, the numbers appear in a very wide gray column, but it cannot be narrowed anymore. What can I do? Rolf From eilert-sprachen at ...221... Wed May 4 09:20:09 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 04 May 2005 09:20:09 +0200 Subject: [Gambas-user] Gambas code is much shorter Message-ID: <427877A9.4020500@...221...> This is just a question about which I'd like to hear some comment from the professional programmers here. Currently I'm migrating a project from VB to Gambas. Instead of retyping/copying the code, I found it easier to just use the overall ideas of the original VB code and re-invent them in Gambas. It's a translating job rather than a retyping one. Anyway, after a while I found that Gambas code appears to be much smaller and compact than that of VB, though I couldn't make it out to some specific item. On average, I use about 20 - 30 % less code lines than in VB to achieve the same functionality within a comparable Sub or Function. When I started, I expected it to be the opposite, as there are a few things which seemed to be rather roundabout to me. For example, you have to DIM every variable in a separate line, and I missed the practical dynamic more-dimensional string variables and structs. Meanwhile, however, I've got used to the Gambas ways of doing it. So, this is what I would like to know: Why is my Gambas code so much less complex? Does anyone here have an explanation for it? Rolf From oxleyd at ...699... Wed May 4 09:20:45 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 4 May 2005 09:20:45 +0200 Subject: [Gambas-user] OT: Wireless In-Reply-To: <42769BF6.8080000@...204...> Message-ID: <20050504072604.1C14D37228@...700...> Thanks all. After some digging around, I bought a Netgear WG311T as that seems to work! Just waiting for it to arrive now! Daniel -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Ram?n P?rez Sent: 02 May 2005 23:31 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] OT: Wireless Daniel Oxley escribi?: >Thanks Charlie, however it seems that either I am searching wrong or >there are not many supported devices or the DB is out of date! > >Daniel > >-----Original Message----- >From: gambas-user-admin at lists.sourceforge.net >[mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Charlie >Reinl >Sent: 27 April 2005 21:00 >To: gambas-user at lists.sourceforge.net >Subject: Re: [Gambas-user] OT: Wireless > > > >>>Hi all, >>> >>>I know that this is off topic but..... >>> >>>Can anyone recommend a good wireless card for Suse? It will be for a >>>PC >>> >>> > > > >>>rather than a laptop so I need a PCI one. >>> >>>Thanks, >>>Daniel >>> >>> >> >>Salut, >> >>SuSE has/had a hardware-database. >>Look at www.suse.com for that. >> >>Amicalment >>Charlie >>* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * >> >> >> >Salut, > >look at >http://cdb.novell.com/searchForm.php?searchtype=simple&LANG=en_UK&PHPSE >SSID= >a858be28eb91d08e5c0500b0a7dbfbc1 > > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > >------------------------------------------------------- >SF.Net email is sponsored by: Tell us your software development plans! >Take this survey and enter to win a one-year sub to SourceForge.net >Plus IDC's 2005 look-ahead and a copy of this survey >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >------------------------------------------------------- >SF.Net email is sponsored by: Tell us your software development plans! >Take this survey and enter to win a one-year sub to SourceForge.net >Plus IDC's 2005 look-ahead and a copy of this survey >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > With Suse 9.2 and 9.3 I use in my laptop PCMCIA C54C (Conceptronic). In my PC I use the same but PCI -- Ram?n P?rez r.perez at ...204... 615964957 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Wed May 4 09:38:09 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 04 May 2005 09:38:09 +0200 Subject: [Gambas-user] About Gambas arrays In-Reply-To: <20050503141732.M21283@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <20050502142724.M68524@...951...> <200505031019.34082.gambas@...1...> <20050503141732.M21283@...951...> Message-ID: <42787BE1.30308@...221...> Hi Fernando, nando schrieb: > Benoit, > > My transition from VB to GAMBAS is progressing. > I want to use .ADD and .CLEAR for an array > but the syntax and usage eludes me. From my point of view (and after having experimented with it for a while) I found that some hints in the help seem to be misleading. > > If I do the following... > > PRIVATE my_array [4096] as SHORT > > I am having a difficulty using .CLEAR > > my_array.clear reports it is not an object > > I know I am missing something in my understanding here. > Can you aid in clearing my brain fog? :-) Don't know if my sun shines bright enough to heat away that fog, but what I would do is DIM my_array as NEW SHORT[] To add something to the array at its end, you will use my_array.Add(xx) and to clear the stuff completely, you may use my_array.Clear The drawback is that for having a 4096 cells big array you will have to add 4096 values first. (On the other hand, when you use a fixed-size array like you did above, you will have to write 4096 zeros to get rid of its values...) But be aware that poking something into a certain position of it just will need a my_array[x] = y In my programs, much of the stuff in the help about STATIC, PRIVATE and so on works different from how it's explained, but this may be due to the fact that I use modules rather than classes (I found that they react differently here). Rolf From eilert-sprachen at ...221... Wed May 4 09:50:05 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 04 May 2005 09:50:05 +0200 Subject: [Gambas-user] DIMing Arrays In-Reply-To: <200505031732.44519.gambas@...1...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031629.25886.gambas@...1...> <20050503151955.M2596@...951...> <200505031732.44519.gambas@...1...> Message-ID: <42787EAD.4020005@...221...> Bonjour Benoit, Benoit Minisini schrieb: > On Tuesday 03 May 2005 17:25, nando wrote: > >>Note that >> >>PRIVATE my_array AS NEW String[] >> >>will not compile/run if a space exists >>between String and the [ >> > > > Yes, this is a syntax error :-) > Is this wanted or just "something we cannot make better": In practice, there are many cases where something counts from 0 but is interpreted like 1, i. e. you will have to write a "- 1" here and there. If you leave out the space, it is interpreted as a "-1" value, thus leading to error messages. From its context, one might expect the interpreter to interprete it as "x - 1", but even the editor doesn't as the colors will tell you when you leave the line. You know what I mean? For j = 0 to my_array.Count-1 won't do as it's interpreted as a "-1", and a "-1" doesn't belong there. Or t$ = Mid$(x$, i-1, 1) won't do either. In both cases (and from my vague understanding of the mechanisms) the parser will detect a "-1" because it's token-orientated and does not see the context. Rolf From gambas at ...1... Wed May 4 11:53:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 May 2005 11:53:03 +0200 Subject: [Gambas-user] DIMing Arrays In-Reply-To: <42787EAD.4020005@...221...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031732.44519.gambas@...1...> <42787EAD.4020005@...221...> Message-ID: <200505041153.04040.gambas@...1...> On Wednesday 04 May 2005 09:50, Eilert wrote: > Bonjour Benoit, > > Benoit Minisini schrieb: > > On Tuesday 03 May 2005 17:25, nando wrote: > >>Note that > >> > >>PRIVATE my_array AS NEW String[] > >> > >>will not compile/run if a space exists > >>between String and the [ > > > > Yes, this is a syntax error :-) > > Is this wanted or just "something we cannot make better": > > In practice, there are many cases where something counts from 0 but is > interpreted like 1, i. e. you will have to write a "- 1" here and there. > > If you leave out the space, it is interpreted as a "-1" value, thus > leading to error messages. From its context, one might expect the > interpreter to interprete it as "x - 1", but even the editor doesn't as > the colors will tell you when you leave the line. > > You know what I mean? > > For j = 0 to my_array.Count-1 > > won't do as it's interpreted as a "-1", and a "-1" doesn't belong there. > > Or > > t$ = Mid$(x$, i-1, 1) > > won't do either. > > In both cases (and from my vague understanding of the mechanisms) the > parser will detect a "-1" because it's token-orientated and does not see > the context. > > Rolf > I think I finally fixed that. Now I can write "i= i-1" and get "i = i - 1", or write "i=i+-1" and get "i = i + -1". I hope you will be happy :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Wed May 4 12:57:07 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 04 May 2005 12:57:07 +0200 Subject: [Gambas-user] DIMing Arrays In-Reply-To: <200505041153.04040.gambas@...1...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031732.44519.gambas@...1...> <42787EAD.4020005@...221...> <200505041153.04040.gambas@...1...> Message-ID: <4278AA83.1090903@...221...> Benoit Minisini schrieb: > On Wednesday 04 May 2005 09:50, Eilert wrote: > >>Bonjour Benoit, >> >>Benoit Minisini schrieb: >> >>>On Tuesday 03 May 2005 17:25, nando wrote: >>> >>>>Note that >>>> >>>>PRIVATE my_array AS NEW String[] >>>> >>>>will not compile/run if a space exists >>>>between String and the [ >>> >>>Yes, this is a syntax error :-) >> >>Is this wanted or just "something we cannot make better": >> >>In practice, there are many cases where something counts from 0 but is >>interpreted like 1, i. e. you will have to write a "- 1" here and there. >> >>If you leave out the space, it is interpreted as a "-1" value, thus >>leading to error messages. From its context, one might expect the >>interpreter to interprete it as "x - 1", but even the editor doesn't as >>the colors will tell you when you leave the line. >> >>You know what I mean? >> >>For j = 0 to my_array.Count-1 >> >>won't do as it's interpreted as a "-1", and a "-1" doesn't belong there. >> >>Or >> >>t$ = Mid$(x$, i-1, 1) >> >>won't do either. >> >>In both cases (and from my vague understanding of the mechanisms) the >>parser will detect a "-1" because it's token-orientated and does not see >>the context. >> >>Rolf >> > > > I think I finally fixed that. Now I can write "i= i-1" and get "i = i - 1", or > write "i=i+-1" and get "i = i + -1". > > I hope you will be happy :-) > > Regards, > Oh, I didn't notice that - thanks! And thanks anyway for a great, great Gambas :-) Rolf From ulisse at ...933... Wed May 4 14:17:31 2005 From: ulisse at ...933... (ulisse at ...933...) Date: Wed, 04 May 2005 14:17:31 +0200 Subject: [Gambas-user] ListView ScrollBar Message-ID: <4278bd5b.38a.1684.793@...933...> I'd like to add the following to my project: 2 buttons one above and one below the ListView control in order to let someone scroll the ListView without the need of using the lateral bar. I'm actually achieving that through ListViewItem select and ensurevisible. Is there any more direct way to scroll the listview control? Thanks From thomas at ...947... Wed May 4 13:26:51 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Wed, 04 May 2005 11:26:51 +0000 Subject: [Gambas-user] Gambas 1.0.5 - GTK problem on RedHat 4 (CentOS) Message-ID: <20050504.FnZ.11712600@...948...> People, I am compiling Gambas 1.0.5 on a CentOS 4 (eq. RedHat EL 4), and it won't give me the GTK component. I even add -enable-gtk-component flag when compiling.. but it doesn't work???? /T -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From gambas at ...1... Wed May 4 14:31:42 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 May 2005 14:31:42 +0200 Subject: [Gambas-user] Gambas 1.0.5 - GTK problem on RedHat 4 (CentOS) In-Reply-To: <20050504.FnZ.11712600@...948...> References: <20050504.FnZ.11712600@...948...> Message-ID: <200505041431.42888.gambas@...1...> On Wednesday 04 May 2005 13:26, Thomas Mathiesen wrote: > People, > > I am compiling Gambas 1.0.5 on a CentOS 4 (eq. RedHat EL 4), and it won't > give me the GTK component. I even add -enable-gtk-component flag when > compiling.. but it doesn't work???? > > /T > GTK+ component is part of development version, not stable one! -- Benoit Minisini mailto:gambas at ...1... From nando_f at ...951... Wed May 4 17:13:56 2005 From: nando_f at ...951... (nando) Date: Wed, 4 May 2005 11:13:56 -0400 Subject: [Gambas-user] Timer question In-Reply-To: <4278AA83.1090903@...221...> References: <25560417.1115032257496.JavaMail.www@...963...> <200505031732.44519.gambas@...1...> <42787EAD.4020005@...221...> <200505041153.04040.gambas@...1...> <4278AA83.1090903@...221...> Message-ID: <20050504150911.M62471@...951...> Example: ... Timer1.Delay = 4000 Timer1.Enabled = True .... Question: During the 4 seconds that the Timer is ticking... what is the appropriate way to reset the count to start over? I know I could Disable then Enable, but that is 2 lines of code. Would Timer1.Delay = 4000 restart it while enabled? -Fernando From gambas at ...1... Wed May 4 17:20:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 May 2005 17:20:48 +0200 Subject: [Gambas-user] Timer question In-Reply-To: <20050504150911.M62471@...951...> References: <25560417.1115032257496.JavaMail.www@...963...> <4278AA83.1090903@...221...> <20050504150911.M62471@...951...> Message-ID: <200505041720.49405.gambas@...1...> On Wednesday 04 May 2005 17:13, nando wrote: > Example: > > ... > Timer1.Delay = 4000 > Timer1.Enabled = True > .... > > Question: > > During the 4 seconds that the Timer is ticking... > what is the appropriate way to reset the count to start over? > > I know I could Disable then Enable, but that is 2 lines of code. > Would > > Timer1.Delay = 4000 > > restart it while enabled? Yes. At least the way I wrote the Timer class in Qt. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 4 18:02:49 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 May 2005 18:02:49 +0200 Subject: [Gambas-user] gambas2 1.9.7 Message-ID: <200505041802.49404.gambas@...1...> Hi, I have just uploaded a new snapshot of the development version. The main changes are: - The interpreter can call functions in extern shared libraries now. You get new subroutines for dealing with memory and pointers. The READ and WRITE instructions can read from and write to memory. - The SHELL and EXEC instructions can run their process in a virtual terminal. - Deleted records are hidden from the database Result objects now. I hope this way Daniel will be happy :-) - Of course, the bug fixes of the 1.0.6 version have been merged. The current support for extern shared libraries is not as complete as what Daniel did in its gb.api component. The following is missing: - Support for alias (i.e. library function name different from the Gambas function name) - Support for callbacks. - Support for C-like structures. You can emulate them with the new memory allocation subroutines (Alloc, Free and Realloc) and the READ/WRITE instructions applied to the pointer returned by Alloc(). And I'm not sure that this support shouldn't go to a component like Daniel did. The interpreter is growing... :-( Here is the complete ChangeLog: ----8<------------------------------------------------------------------------ * Symbolic link to gambas IDE does not have the '.gambas' extension anymore. * 'gbi' was rewritten so that it can take a component name as argument, and create the information files only for this component. COMPILER * Support for declaring functions in extern shared libraries. The syntax is: EXTERN (args...) IN * New datatype named 'Pointer' that is a synonymous for 'Integer'. INTERPRETER * BUG: OPEN ... DIRECT now correctly works. * BUG: Opening a file with CREATE flag now always implies READ flag. * BUG: SEEK and READ now always work on files opened in DIRECT mode. * Support for calling functions in extern shared libraries. * If the startup class declares a public method named 'Application_Read', then the standard input is watched by the event loop. * New subroutines, Alloc(), Free() and Realloc() for allocating and freeing memory fragments. * A new subroutine, StrPtr(), that returns the null-terminated string located at the specified address. * You can use READ and WRITE to read from or write to memory, by using an integer as stream. The interpreter should raise an error and not crash if you supply an invalid memory address. * Now, if you use FOR INPUT/OUTPUT instead of FOR READ/WRITE with the EXEC or SHELL instruction, the executed process is plugged to a pseudo-terminal. This way, you can easily pilot a program that needs to be run in a terminal. * BUG: '_call' special method management has been fixed. DEVELOPMENT ENVIRONMENT * Support for the Pointer datatype. QT COMPONENT * BUG: I finally got rid of the spurious warning generated by the TableView control. DATABASE COMPONENT * BUG: Result methods now always return an error when the result is not available. * BUG: Now tables whose primary key fields are not necessarily the first ones work. * BUG: The PostgreSQL driver has been fixed. Now it works for any version greater or equal than 7.3. * Now deleted records are removed from the Result object. ----8<------------------------------------------------------------------------ Note that I'm going to Palerma tomorrow for a talk about Gambas (http://linux-meeting.org), and I won't come back to my computer until next Tuesday. Enjoy this new break-everything version! :-) -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Wed May 4 18:56:35 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 4 May 2005 12:56:35 -0400 Subject: [Gambas-user] gambas2 1.9.7 In-Reply-To: <200505041802.49404.gambas@...1...> References: <200505041802.49404.gambas@...1...> Message-ID: <200505041256.35479.sourceforge-raindog2@...94...> On Wednesday 04 May 2005 12:02, Benoit Minisini wrote: > The READ and WRITE instructions can read from and write to memory. What, no PEEK and POKE? ;) I will package this as soon as I can. Rob From kztyrvlq at ...966... Wed May 4 19:49:38 2005 From: kztyrvlq at ...966... (A Person) Date: Wed, 04 May 2005 15:19:38 -0230 Subject: [Gambas-user] Non - Displaying Text Message-ID: <42790B32.2070007@...966...> Wednesday, 4 May 2005 I'm new to Linux BASIC but not VB. Please help me. I OPEN/READ a 1.4mb data file and randomly choose one line out of 26460 lines of text to print to a textlabel. Some text does not display. In particular, if a line has the less than '<' character then it and all the following text does not display. My playing around suggests that it and others maybe special characters. (1) Can anyone help me find the other special characters? (2) How can I display the text? I tried '<<' but it did not work. The prospect of editing a 1.4mb text file for all the other special characters and work arounds is a show stopper. Any help is appreciated. From sourceforge-raindog2 at ...94... Wed May 4 20:04:34 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 4 May 2005 14:04:34 -0400 Subject: [Gambas-user] Non - Displaying Text In-Reply-To: <42790B32.2070007@...966...> References: <42790B32.2070007@...966...> Message-ID: <200505041404.34737.sourceforge-raindog2@...94...> On Wednesday 04 May 2005 13:49, A Person wrote: > I OPEN/READ a 1.4mb data file and randomly choose one line out of > 26460 lines of text to print to a textlabel. Some text does not > display. In particular, if a line has the less than '<' character > then it and all the following text does not display. The TextLabel control is an HTML control. So, "<" means "start an HTML tag". You can do this: mystring = replace(mystring, "&", "&") mystring = replace(mystring, "<", "<") and you shouldn't have any more problems. (The first line is to ensure that ampersands don't get lost either.) Rob From gnurkum at ...397... Wed May 4 21:33:36 2005 From: gnurkum at ...397... (Gnurkum) Date: Wed, 4 May 2005 21:33:36 +0200 (CEST) Subject: [Gambas-user] 2 columns (numbers and text) with scrollbar Message-ID: <20050504193336.87373.qmail@...967...> I want to create a control that displays 2 columns of information, numbers and text, and with scrollbar. The text must be displayed always in is own column. Something like: 1 This is a line 10 This is a very long line. Hello, is fun to be a long line. 200 This is a new line 2 The last line for the moment 45 ... The problem is that with a textLabel i make a table with html and is fine, but no scrollbar appears, and with textArea appears scrollbar, but the html code not create the table. Any idea? (sorry for my english) ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, m?s seguridad http://correo.yahoo.es From nando_f at ...951... Thu May 5 02:59:47 2005 From: nando_f at ...951... (nando) Date: Wed, 4 May 2005 20:59:47 -0400 Subject: [Gambas-user] IDE Freeze and Crash In-Reply-To: <200505041802.49404.gambas@...1...> References: <200505041802.49404.gambas@...1...> Message-ID: <20050505005410.M25223@...951...> Benoit, When I am running a program in the IDE, it always crashes when I do the following. - The program stops at a breakpoint because I want to watch a variable which is not being watched - I type the variable name and press the Watch button - FREEZE UP - I must Force Quit the IDE - The Variable I want to watch is a global string is 29 bytes long and does have characters in it that are not easily printable including binary zero. -Fernando From nando_f at ...951... Thu May 5 03:13:07 2005 From: nando_f at ...951... (nando) Date: Wed, 4 May 2005 21:13:07 -0400 Subject: [Gambas-user] IDE Freeze and Crash In-Reply-To: <20050505005410.M25223@...951...> References: <200505041802.49404.gambas@...1...> <20050505005410.M25223@...951...> Message-ID: <20050505010902.M63891@...951...> The 29 byte string is composed as follows a = "nF" & chr$(29) & STRING(11,chr$(0)) & chr$(208) & chr$(21) & chr$(128) & chr$(130) & chr$(86) & chr$(1) & "01215jK" & chr$(150) & chr$(220) ---------- Original Message ----------- From: "nando" To: gambas-user at lists.sourceforge.net Sent: Wed, 4 May 2005 20:59:47 -0400 Subject: [Gambas-user] IDE Freeze and Crash > Benoit, > > When I am running a program in the IDE, > it always crashes when I do the following. > > - The program stops at a breakpoint because > I want to watch a variable which is not being watched > > - I type the variable name and press the Watch button > > - FREEZE UP - I must Force Quit the IDE > > - The Variable I want to watch is a global string > is 29 bytes long and does have characters in it > that are not easily printable including binary zero. > > -Fernando > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great > events, 4 opportunities to win big! Highest score wins.NEC IT Guy > Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > 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... Thu May 5 04:25:51 2005 From: nando_f at ...951... (nando) Date: Wed, 4 May 2005 22:25:51 -0400 Subject: [Gambas-user] READ statement question In-Reply-To: <20050505010902.M63891@...951...> References: <200505041802.49404.gambas@...1...> <20050505005410.M25223@...951...> <20050505010902.M63891@...951...> Message-ID: <20050505022343.M63123@...951...> I want to read in 100 bytes from a file in to an array DIM buffer[500] AS BYTE Do I have to do it one at a time in a loop or can I READ #hfile, buffer[1],100 ?? -Fernando From nando_f at ...951... Thu May 5 05:32:54 2005 From: nando_f at ...951... (nando) Date: Wed, 4 May 2005 23:32:54 -0400 Subject: [Gambas-user] IDE Freeze and Crash - alternate example In-Reply-To: <20050505010902.M63891@...951...> References: <200505041802.49404.gambas@...1...> <20050505005410.M25223@...951...> <20050505010902.M63891@...951...> Message-ID: <20050505032925.M38732@...951...> A different example: DIM s AS STRING DIM x as INTEGER ... s = CHR$(0) IF ASC(MID$(s,1,1) <> 0 THEN INC x ...Freezes on the last line above when single stepping -Fernando From amurphy at ...968... Thu May 5 16:36:59 2005 From: amurphy at ...968... (Murphy, Allen) Date: Thu, 5 May 2005 10:36:59 -0400 Subject: [Gambas-user] gambas2-1.9.7 possible bug with work around Message-ID: <7E7552A1956AE5428B2BD7BA0B92657ACDD721@...969...> Hello, After downloading and compiling gambas2-1.9.7, everything seemed to go well. After the usual "./configure", "make", "make install" commands things looked good. However, when executing the "gambas2" command to start the IDE, I received an error (unfortunately I did not write it down completely - it had somehting to do with FOption... and recursive definition). Anyway, after investigating the make output, I noticed that there was an error compiling gambas2 in line 845 of FFind.class. I opened the file from ../gambas2-1.9.7/app/src/gambas2/ in Kate and located the line #845: sFile=Left(hForm.Title,Instr(hform.Title," ")-1) The only thing I could think of was that the "-1" was being interpreted incorrectly so I add spaces as follows: sFile = Left(hForm.Title, Instr(hform.Title," ") - 1) After this I saved the file, ran "make uninstall", and then "make install" again. Believe it or not, this worked! I can now run gambas2 :)! I'm no expert, but if someone else runs into this problem it is worth a try. Take care, Allen Murphy *** Scanned by GenNET AV 11 Out *** From daniel.campos at ...338... Thu May 5 17:18:51 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 05 May 2005 17:18:51 +0200 Subject: [Gambas-user] gambas2-1.9.7 possible bug with work around In-Reply-To: <7E7552A1956AE5428B2BD7BA0B92657ACDD721@...969...> References: <7E7552A1956AE5428B2BD7BA0B92657ACDD721@...969...> Message-ID: <427A395B.2080706@...338...> I had this problem, too Good job! D. Campos Murphy, Allen escribi?: >Hello, > >After downloading and compiling gambas2-1.9.7, everything seemed to go >well. After the usual "./configure", "make", "make install" commands >things looked good. However, when executing the "gambas2" command to >start the IDE, I received an error (unfortunately I did not write it >down completely - it had somehting to do with FOption... and recursive >definition). > >Anyway, after investigating the make output, I noticed that there was an >error compiling gambas2 in line 845 of FFind.class. I opened the file >from ../gambas2-1.9.7/app/src/gambas2/ in Kate and located the line >#845: > > sFile=Left(hForm.Title,Instr(hform.Title," ")-1) > >The only thing I could think of was that the "-1" was being interpreted >incorrectly so I add spaces as follows: > > sFile = Left(hForm.Title, Instr(hform.Title," ") - 1) > >After this I saved the file, ran "make uninstall", and then "make >install" again. Believe it or not, this worked! I can now run gambas2 >:)! > >I'm no expert, but if someone else runs into this problem it is worth a >try. > >Take care, >Allen Murphy > > >*** Scanned by GenNET AV 11 Out *** > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. >Get your fingers limbered up and give it your best shot. 4 great events, 4 >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From karl.reinl at ...9... Fri May 6 00:00:29 2005 From: karl.reinl at ...9... (Charlie) Date: Fri, 06 May 2005 00:00:29 +0200 Subject: [Gambas-user] gambas2-1.9.7 possible bug with work around References: <7E7552A1956AE5428B2BD7BA0B92657ACDD721@...969...> <427A395B.2080706@...338...> Message-ID: <427A977D.8030701@...9...> Daniel Campos schrieb: > I had this problem, too > > Good job! > > D. Campos > > > Murphy, Allen escribi?: > >> Hello, >> >> After downloading and compiling gambas2-1.9.7, everything seemed to go >> well. After the usual "./configure", "make", "make install" commands >> things looked good. However, when executing the "gambas2" command to >> start the IDE, I received an error (unfortunately I did not write it >> down completely - it had somehting to do with FOption... and recursive >> definition). >> >> Anyway, after investigating the make output, I noticed that there was an >> error compiling gambas2 in line 845 of FFind.class. I opened the file >> from ../gambas2-1.9.7/app/src/gambas2/ in Kate and located the line >> #845: >> >> sFile=Left(hForm.Title,Instr(hform.Title," ")-1) >> >> The only thing I could think of was that the "-1" was being interpreted >> incorrectly so I add spaces as follows: >> >> sFile = Left(hForm.Title, Instr(hform.Title," ") - 1) >> >> After this I saved the file, ran "make uninstall", and then "make >> install" again. Believe it or not, this worked! I can now run gambas2 >> :)! >> >> I'm no expert, but if someone else runs into this problem it is worth a >> try. >> >> Take care, >> Allen Murphy > Salut, the -1 or +1 (or other numbers) is gambas interpreter problem. I had it when I made the PrettyPrinter. There are not many cases where a -1 works , but - 1 works allways. Amicalment Charlie From parra at ...970... Fri May 6 00:04:01 2005 From: parra at ...970... (Fernando Parra) Date: Fri, 6 May 2005 00:04:01 +0200 (CEST) Subject: [Gambas-user] Old screenshoot! Message-ID: <1590.201.245.225.187.1115330641.squirrel@...971...> Hey Gambas-people! I notice that the website screenshoot is really old (september 2004), is it possible that someone send a new screnshoot? I dont have a running version of gambas (yes, I am a big donkey) but I would like to see the new improvements in action. Best wishes to everyone Fernando Parra From nando_f at ...951... Fri May 6 15:31:41 2005 From: nando_f at ...951... (nando) Date: Fri, 6 May 2005 09:31:41 -0400 Subject: [Gambas-user] Segmentation Fault example In-Reply-To: <20050505032925.M38732@...951...> References: <200505041802.49404.gambas@...1...> <20050505005410.M25223@...951...> <20050505010902.M63891@...951...> <20050505032925.M38732@...951...> Message-ID: <20050506132246.M25677@...951...> I get a segmentation fault with the following... ... PUBLIC s1 AS STRING PUBLIC s2 AS STRING PUBLIC c AS INTEGER ... s1 = "/home/" s2 = "a_folder" IF EXIST ( s1 & s2 ) THEN c = color.rgb(0, 255.0) ... Conditions: (1) The folder must exist for the THEN to execute (2) The rgb parameters are ZERO COMMA SPACE TWO FIVE FIVE PERIOD ZERO and is deliberately syntax incorrect. I found this only because I was sleepy and hit the period and not comma. -Fernando From daniel.campos at ...338... Fri May 6 17:06:36 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Fri, 06 May 2005 17:06:36 +0200 Subject: [Gambas-user] Segmentation Fault example In-Reply-To: <20050506132246.M25677@...951...> References: <200505041802.49404.gambas@...1...> <20050505005410.M25223@...951...> <20050505010902.M63891@...951...> <20050505032925.M38732@...951...> <20050506132246.M25677@...951...> Message-ID: <427B87FC.4080909@...338...> > > >I get a segmentation fault with the following... > >... > >I found this only because I was sleepy and hit the period and not comma. > >-Fernando > > What is the Gambas version that you are using? There's not segfault with gambas 1.9.7, may be something was fixed... Regards, D. Campos From eilert-sprachen at ...221... Fri May 6 17:52:16 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 06 May 2005 17:52:16 +0200 Subject: [Gambas-user] TableView gray column width? In-Reply-To: <42786C81.8080502@...221...> References: <42786C81.8080502@...221...> Message-ID: <427B92B0.6020605@...221...> I don't like repeating too much in a mailing list - but it seems nobody has read this (and I had some mail trouble that morning). As it's rather important to me, here it's again: Eilert schrieb: > Hi folks, > > Just ran into this problem: How can I adjust the width of the very first > (gray) column in a TableView? > > It adjusts itself when strings are inserted which are bigger than > before, i. e. it widens itself. But it does not narrow afterwards, even > when you reduce the number of Rows and Columns to 0 and start all over. > > The problem is that > > TableView.Columns[0].Text > > refers to the first string in the gray column, but > > TableView.Columns[0].Width > > refers to the width of the first normal (white) column! > > In my project, I use the same TableView for 2 different sorts of tables, > one which just has the automatic numbers in the gray column and 2 white > columns with data, and another one which uses the gray column to display > names and has a number of further white cells behind it. When you switch > back to the small table, the numbers appear in a very wide gray column, > but it cannot be narrowed anymore. > > What can I do? > > Rolf From christoph.conrad at ...17... Sat May 7 11:19:13 2005 From: christoph.conrad at ...17... (Christoph Conrad) Date: Sat, 07 May 2005 11:19:13 +0200 Subject: [Gambas-user] Request: change size of font for treeview in project window Message-ID: <87sm0zgzqm.fsf@...972...> nT From ml at ...973... Sat May 7 14:11:24 2005 From: ml at ...973... (ML) Date: Sat, 07 May 2005 14:11:24 +0200 Subject: [Gambas-user] Global multidimensional arrays Message-ID: <427CB06C.6010107@...973...> Hi all, a few days ago I came across Gambas and the more I discover about it the more I like it! Congratulations to all the developers for their very neat, promising work!!! Having started coding some test applications, I have a problem though that I haven't been able to solve by trial and error and also by looking at the documentation and in the ML. It could just be a matter of poor experience and practice with Gambas but I have yet to find a solution. The problem is that I need to have a global bidimensional array of floats, available through all modules and classes. According to the help file, "There is no such thing as a project-wide global variable in Gambas. As a workaround, consider making a class called Global and declaring your global variables as static public variables in that class, and then referring to them as Global.variablename in your project. It's still poor programming practice but at least they'll be identified as global variables whenever you use them". That's exactly what I've tried to do, but if I create a Global class and declare in it a "static public P[5,5] as float", when trying to compile the code, I get a "Arrays are forbidden here at line xx in Global class" error. So, if arrays are forbidden here, how can I overcome this problem? TIA for your help, Piero From nando_f at ...951... Sat May 7 17:45:19 2005 From: nando_f at ...951... (nando) Date: Sat, 7 May 2005 11:45:19 -0400 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <427CB06C.6010107@...973...> References: <427CB06C.6010107@...973...> Message-ID: <20050507153138.M57559@...951...> Same problem I encountered when I started using Gambas. Here's what I did. You cannot have what you want exactly. You can do this... At the top of a class or a module type... PRIVATE my_array [5000,3000] AS FLOAT This array is PRIVATE for the whole class or module. -you can do PUBLIC non-arrays for a whole project but arrays can't be public for the whole project, only just a class or module. Then make something like... PUBLIC SUB write_my_array (value as FLOAT,x AS INTEGER, y AS INTEGER ) '--the pass in the value to write and match the my_array subscripts my_array [x,y] = value END -you can use the above anywhere in your project like write_my_array (23.5, 4, 66) 'which writes the value 23.5 into the array at [4,66] Then make something like... PUBLIC SUB read_array (x AS INTEGER, y AS INTEGER) RETURN my_array [x,y] END -you can use the above anywhere in your project like label1.text = read_array (4, 66) 'which reads the value from [4, 66] and puts it in a label. -Fernando ---------- Original Message ----------- From: ML To: gambas-user at lists.sourceforge.net Sent: Sat, 07 May 2005 14:11:24 +0200 Subject: [Gambas-user] Global multidimensional arrays > Hi all, > > a few days ago I came across Gambas and the more I discover about it > the more I like it! Congratulations to all the developers for their > very neat, promising work!!! > > Having started coding some test applications, I have a problem > though that I haven't been able to solve by trial and error and also > by looking at the documentation and in the ML. It could just be a > matter of poor experience and practice with Gambas but I have yet to > find a solution. > > The problem is that I need to have a global bidimensional array of > floats, available through all modules and classes. > > According to the help file, > > "There is no such thing as a project-wide global variable in Gambas. > As a workaround, consider making a class called Global and declaring > your global variables as static public variables in that class, and > then referring to them as Global.variablename in your project. It's > still poor programming practice but at least they'll be identified > as global variables whenever you use them". > > That's exactly what I've tried to do, but if I create a Global class > and declare in it a "static public P[5,5] as float", when trying to > compile the code, I get a "Arrays are forbidden here at line xx in > Global class" error. > > So, if arrays are forbidden here, how can I overcome this problem? > > TIA for your help, > Piero > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great > events, 4 opportunities to win big! Highest score wins.NEC IT Guy > Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ml at ...973... Sat May 7 18:33:35 2005 From: ml at ...973... (ML) Date: Sat, 07 May 2005 18:33:35 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <20050507153138.M57559@...951...> References: <427CB06C.6010107@...973...> <20050507153138.M57559@...951...> Message-ID: <427CEDDF.30402@...973...> Hi Fernando, first of all thanks for your reply. On 07/05/2005 17:45, nando wrote: > You cannot have what you want exactly. (Maybe I should post this to gambas-devel...) Does anybody know if this feature (that is global arrays) is foreseen to be implemented some time? > You can do this... [snip] > Then make something like... PUBLIC SUB write_my_array (value as FLOAT,x AS > INTEGER, y AS INTEGER ) '--the pass in the value to write and match the > my_array subscripts > > my_array [x,y] = value > > END > > -you can use the above anywhere in your project like write_my_array (23.5, > 4, 66) 'which writes the value 23.5 into the array at [4,66] > > Then make something like... PUBLIC SUB read_array (x AS INTEGER, y AS > INTEGER) > > RETURN my_array [x,y] END > > -you can use the above anywhere in your project like label1.text = > read_array (4, 66) 'which reads the value from [4, 66] and puts it in a > label. This is very similar to what I thought. However I was a little skeptical about this approach because, since in my case the data contained in the array should be accessed quite many times, I am afraid that calling a function every time for reading/writing could have a hard impact on performance. Anyway, if there isn't any other solution I'll give it a try. Thanks a lot! Piero From alain at ...974... Sun May 8 12:19:43 2005 From: alain at ...974... (Alain Van der Eycken) Date: Sun, 8 May 2005 12:19:43 +0200 Subject: [Gambas-user] listview questions In-Reply-To: <1590.201.245.225.187.1115330641.squirrel@...971...> References: <1590.201.245.225.187.1115330641.squirrel@...971...> Message-ID: <200505081219.43231.alain@...974...> Hi All, Being reasonably new with Gambas, i find myself struggling with the listview control in multiselect mode Can someone please (pretty please with a cherry on top) show me the gambas way of how to: loop through every item in the list, and delete it from the list if the listview.item.selected property is set ? I've constructed this for-next monstrosity which does kinda-sorta what i want, but it's ugly and error-prone and just doesn't feel right. How do you do it the gambas way ? and: How do i move the view to another item in the list ? When i load the list, it comes up with the first item in the list. According to the docs, there is a method 'MoveTo(key)' that should change the view to the item in question. However, i must be missing something here as well. Suppose i load a list with 200 items. When the list comes up, it shows item1, item2,etc --which is of course fine and dandy-- however,I want the list to show item150. When i do a listview.moveto(key of item150) the view doesn't change to display item150, but keeps on displaying item1. So what is it that i am missing/not doing here ?? Kind Regards, Alain From eilert-sprachen at ...221... Mon May 9 11:28:21 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 09 May 2005 11:28:21 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <427CB06C.6010107@...973...> References: <427CB06C.6010107@...973...> Message-ID: <427F2D35.8080906@...221...> Hi Piero, > > The problem is that I need to have a global bidimensional array of floats, > available through all modules and classes. Well, the question of global or not is very easy to solve: You can have global variables and arrays by declaring them PUBLIC and then calling them with the name of the module/class they are in (any_class.my_global_string) from any other class/module. This works with standard 1-dimensional arrays too. I need a lot of string arrays. My way of using this in my current project is to store the strings of dimension 2 as part-strings in the array of dimension 1, separated with chr$(9) or so. To extract the single part-strings, I use Split(). This works rather fast, so no problem for me. With float arrays you might use another trick: create dimension 1 as an object array - myArray as Object[] - and place as many float arrays in it as are needed for that dimension. The float arrays then represent dimension 2. Access is possible via two square brackets. Here is a small example within one class: PRIVATE abc AS NEW Object[] PUBLIC SUB _New() DIM xyz AS Float[] DIM i AS INTEGER FOR i = 0 to 9 xyz = NEW Float[] xyz.Resize(10) abc.Add(xyz) NEXT Now you access the 2 dimensions for example by abc[i][j] = something Hope it helps! Rolf From thomas at ...947... Mon May 9 10:45:03 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Mon, 09 May 2005 08:45:03 +0000 Subject: [Gambas-user] OT: GTK component and Ubuntu development Message-ID: <20050509.RFf.02573300@...948...> I am thinking of building a so-called "Domain Authentication Utility" for Ubuntu. In-short, this utility will setup a domain server and on clients, it'll add the clients to this domain (using openldap + samba + kerberos ..and mail etc.). To be able to release gambas-based applications on Ubuntu, I seriously need the gtk component, as Gnome is default on Ubuntu. Is there a timeline for the release of Gambas 1.9.6 features in a stable release? (From my point of view, the 1.9.6 is very stable). I think it'd be a breakthrough, and will maybe lead to gambas runtime becoming a standard package in Ubuntu (www.ubuntulinux.com). Cheers /Thomas -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From daniel.campos at ...338... Mon May 9 12:14:33 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Mon, 09 May 2005 12:14:33 +0200 Subject: [Gambas-user] OT: GTK component and Ubuntu development In-Reply-To: <20050509.RFf.02573300@...948...> References: <20050509.RFf.02573300@...948...> Message-ID: <427F3809.9040108@...338...> Thomas Mathiesen escribi?: >I am thinking of building a so-called "Domain Authentication Utility" for >Ubuntu. >In-short, this utility will setup a domain server and on clients, it'll add >the clients to this domain (using openldap + samba + kerberos ..and mail >etc.). > >To be able to release gambas-based applications on Ubuntu, I seriously need >the gtk component, as Gnome is default on Ubuntu. > >Is there a timeline for the release of Gambas 1.9.6 features in a stable >release? >(From my point of view, the 1.9.6 is very stable). > >I think it'd be a breakthrough, and will maybe lead to gambas runtime becoming >a standard package in Ubuntu (www.ubuntulinux.com). > > By now, there are packages for Debian (and Ubuntu) from the 1.0.x series, but there are packages of the 1.9.x series for Linex (a Debian based system, too). May be the packager of both branches (Jos? L. Redrejo) will be able to tell you more, but I think soon the 1.9.x will be the only official packages for Debian systems... Regards, D. Campos >Cheers >/Thomas > >-- >LinProfs >Phone: +31703521193 & +31652572454 >Web: www.linprofs.com & www.linprofs.nl >Email: thomas at ...947... > >- >"Microsoft is to operating systems & security .... >.... what McDonalds is to gourmet cooking" > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. >Get your fingers limbered up and give it your best shot. 4 great events, 4 >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From gambas at ...1... Mon May 9 14:13:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 14:13:15 +0200 Subject: [Gambas-user] gambas2 1.9.7 In-Reply-To: <200505041256.35479.sourceforge-raindog2@...94...> References: <200505041802.49404.gambas@...1...> <200505041256.35479.sourceforge-raindog2@...94...> Message-ID: <200505091413.16375.gambas@...1...> On Wednesday 04 May 2005 18:56, Rob wrote: > On Wednesday 04 May 2005 12:02, Benoit Minisini wrote: > > The READ and WRITE instructions can read from and write to memory. > > What, no PEEK and POKE? ;) > > I will package this as soon as I can. > > Rob > > LOL! I didn't think about them :-) The problem is that PEEK and POKE can only deal with bytes. The READ and WRITE commands can deal with any datatypes... -- Benoit Minisini mailto:gambas at ...1... From sluca at ...67... Mon May 9 14:31:03 2005 From: sluca at ...67... (Scaramella Luca) Date: Mon, 09 May 2005 12:31:03 +0000 Subject: [Gambas-user] Print on device Message-ID: Hi, I'm trying Open the device /dev/lp0 for print on a POS printer(text only parallel). (i don't have the linux driver and the generic linux The instruction Open "/dev/lp0" FOR WRITE as #hFile gives an "Acces Forbidden" error if i try to use it as a normal user. There is any way to use the device as a normal user through Gambas?? Thanks From radoslav.dejanovic at ...116... Mon May 9 14:53:07 2005 From: radoslav.dejanovic at ...116... (Radoslav =?iso-8859-2?q?Dejanovi=E6?=) Date: Mon, 9 May 2005 14:53:07 +0200 Subject: [Gambas-user] gambas2 1.9.7 In-Reply-To: <200505091413.16375.gambas@...1...> References: <200505041802.49404.gambas@...1...> <200505041256.35479.sourceforge-raindog2@...94...> <200505091413.16375.gambas@...1...> Message-ID: <200505091453.07819.radoslav.dejanovic@...116...> On Monday 09 May 2005 14:13, Benoit Minisini wrote: > The problem is that PEEK and POKE can only deal with bytes. The READ and > WRITE commands can deal with any datatypes... Yeah, but for history's sake... ;) -- Radoslav Dejanovi? Operacijski sustavi d.o.o. http://www.opsus.hr From pvera at ...729... Mon May 9 15:23:16 2005 From: pvera at ...729... (Pablo Vera) Date: Mon, 09 May 2005 08:23:16 -0500 Subject: [Gambas-user] Print on device In-Reply-To: References: Message-ID: <427F6444.9040807@...729...> This is not an issue with gambas, it is related to the access rights of the normal user. Usually, the owner of /dev/lp0 is "root" and its group is "lp", so make sure that your normal user is a member of the "lp" group. Saludos, Pablo Vera Scaramella Luca wrote: > Hi, > I'm trying Open the device /dev/lp0 for print on a POS printer(text only > parallel). > (i don't have the linux driver and the generic linux > The instruction > Open "/dev/lp0" FOR WRITE as #hFile > gives an "Acces Forbidden" error if i try to use it as a normal user. > > There is any way to use the device as a normal user through Gambas?? > > Thanks > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Mon May 9 15:54:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 15:54:48 +0200 Subject: [Gambas-user] TableView gray column width? In-Reply-To: <42786C81.8080502@...221...> References: <42786C81.8080502@...221...> Message-ID: <200505091554.48537.gambas@...1...> On Wednesday 04 May 2005 08:32, Eilert wrote: > Hi folks, > > Just ran into this problem: How can I adjust the width of the very first > (gray) column in a TableView? > > It adjusts itself when strings are inserted which are bigger than > before, i. e. it widens itself. But it does not narrow afterwards, even > when you reduce the number of Rows and Columns to 0 and start all over. > > The problem is that > > TableView.Columns[0].Text > > refers to the first string in the gray column, but > > TableView.Columns[0].Width > > refers to the width of the first normal (white) column! > > In my project, I use the same TableView for 2 different sorts of tables, > one which just has the automatic numbers in the gray column and 2 white > columns with data, and another one which uses the gray column to display > names and has a number of further white cells behind it. When you switch > back to the small table, the numbers appear in a very wide gray column, > but it cannot be narrowed anymore. > > What can I do? > > Rolf > Did you try to hide the header and to show it again ? Maybe it could help. The QT QTable widget is somewhat specific, so I can't use its features too much. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 9 16:00:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 16:00:23 +0200 Subject: [Gambas-user] Old screenshoot! In-Reply-To: <1590.201.245.225.187.1115330641.squirrel@...971...> References: <1590.201.245.225.187.1115330641.squirrel@...971...> Message-ID: <200505091600.23421.gambas@...1...> On Friday 06 May 2005 00:04, Fernando Parra wrote: > Hey Gambas-people! > > I notice that the website screenshoot is really old (september 2004), is > it possible that someone send a new screnshoot? I dont have a running > version of gambas (yes, I am a big donkey) but I would like to see the new > improvements in action. > > Best wishes to everyone > > Fernando Parra > > The current new improvements are inside the interpreter and the compiler. Maybe I should put a screenshot of the source code ? :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 9 15:58:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 15:58:28 +0200 Subject: [Gambas-user] 2 columns (numbers and text) with scrollbar In-Reply-To: <20050504193336.87373.qmail@...967...> References: <20050504193336.87373.qmail@...967...> Message-ID: <200505091558.28546.gambas@...1...> On Wednesday 04 May 2005 21:33, Gnurkum wrote: > I want to create a control that displays 2 columns of > information, numbers and text, and with scrollbar. The > text must be displayed always in is own column. > Something like: > > 1 This is a line > 10 This is a very long > line. Hello, is fun > to be a long line. > 200 This is a new line > 2 The last line for the > moment > 45 ... > > The problem is that with a textLabel i make a table > with html and is fine, but no scrollbar appears, and > with textArea appears scrollbar, but the html code not > create the table. > > Any idea? > > (sorry for my english) > You have to use the TextView control inside a ScrollView, and gives it a good height. To know which height the TextView should have, put the text in it, and use the TextHeight property. Be careful, this property sometimes does only work if the text is already shown to the screen. Regards, -- Benoit Minisini mailto:gambas at ...1... From eilert-sprachen at ...221... Mon May 9 16:17:25 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 09 May 2005 16:17:25 +0200 Subject: [Gambas-user] TableView gray column width? In-Reply-To: <200505091554.48537.gambas@...1...> References: <42786C81.8080502@...221...> <200505091554.48537.gambas@...1...> Message-ID: <427F70F5.204@...221...> Benoit Minisini schrieb: > On Wednesday 04 May 2005 08:32, Eilert wrote: > >>Hi folks, >> >>Just ran into this problem: How can I adjust the width of the very first >>(gray) column in a TableView? >> >>It adjusts itself when strings are inserted which are bigger than >>before, i. e. it widens itself. But it does not narrow afterwards, even >>when you reduce the number of Rows and Columns to 0 and start all over. >> >>The problem is that >> >>TableView.Columns[0].Text >> >>refers to the first string in the gray column, but >> >>TableView.Columns[0].Width >> >>refers to the width of the first normal (white) column! >> >>In my project, I use the same TableView for 2 different sorts of tables, >>one which just has the automatic numbers in the gray column and 2 white >>columns with data, and another one which uses the gray column to display >>names and has a number of further white cells behind it. When you switch >>back to the small table, the numbers appear in a very wide gray column, >>but it cannot be narrowed anymore. >> >>What can I do? >> >>Rolf >> > > > Did you try to hide the header and to show it again ? Maybe it could help. > > The QT QTable widget is somewhat specific, so I can't use its features too > much. > > Regards, > That was a very great idea, Benoit! :-) Runs perfectly now. Thanks a lot. Rolf From gambas at ...1... Mon May 9 16:17:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 16:17:40 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <427CB06C.6010107@...973...> References: <427CB06C.6010107@...973...> Message-ID: <200505091617.41215.gambas@...1...> On Saturday 07 May 2005 14:11, ML wrote: > Hi all, > > a few days ago I came across Gambas and the more I discover about it the > more I like it! > Congratulations to all the developers for their very neat, promising > work!!! > > Having started coding some test applications, I have a problem though that > I haven't been able to solve by trial and error and also by looking at the > documentation and in the ML. > It could just be a matter of poor experience and practice with Gambas but I > have yet to find a solution. > > The problem is that I need to have a global bidimensional array of floats, > available through all modules and classes. > > According to the help file, > > "There is no such thing as a project-wide global variable in Gambas. As a > workaround, consider making a class called Global and declaring your global > variables as static public variables in that class, and then referring to > them as Global.variablename in your project. It's still poor programming > practice but at least they'll be identified as global variables whenever > you use them". > > That's exactly what I've tried to do, but if I create a Global class and > declare in it a "static public P[5,5] as float", when trying to compile the > code, I get a "Arrays are forbidden here at line xx in Global class" error. > > So, if arrays are forbidden here, how can I overcome this problem? > > TIA for your help, > Piero > > In gambas, there two types of arrays: - Static array, that are allocated inside the object when they are private to them. They can't be public. - Dynamic arrays, that are true Gambas objects, and that work like arrays in Java. They can be public. In the development version, dynamic arrays can be multi-dimensional. So you can write now: STATIC PUBLIC p AS Float[] and in the contructor: p = NEW Float[5, 5] At the moment, you can't write directly STATIC PUBLIC p AS NEW Float[5, 5] Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 9 16:22:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 16:22:39 +0200 Subject: [Gambas-user] OT: GTK component and Ubuntu development In-Reply-To: <20050509.RFf.02573300@...948...> References: <20050509.RFf.02573300@...948...> Message-ID: <200505091622.40103.gambas@...1...> On Monday 09 May 2005 10:45, Thomas Mathiesen wrote: > I am thinking of building a so-called "Domain Authentication Utility" for > Ubuntu. > In-short, this utility will setup a domain server and on clients, it'll add > the clients to this domain (using openldap + samba + kerberos ..and mail > etc.). > > To be able to release gambas-based applications on Ubuntu, I seriously need > the gtk component, as Gnome is default on Ubuntu. > > Is there a timeline for the release of Gambas 1.9.6 features in a stable > release? > (From my point of view, the 1.9.6 is very stable). > > I think it'd be a breakthrough, and will maybe lead to gambas runtime > becoming a standard package in Ubuntu (www.ubuntulinux.com). > > Cheers > /Thomas > > -- > LinProfs > Phone: +31703521193 & +31652572454 > Web: www.linprofs.com & www.linprofs.nl > Email: thomas at ...947... > > - > "Microsoft is to operating systems & security .... > .... what McDonalds is to gourmet cooking" > 1.9.x is a *development* version, and there is no timeline for making it stable. There are many problems in it, and I will continue breaking things inside until I'm statisfied :-) If you want to use it as it is a stable version, you should do it at your own risk. I won't hear you crying :-) Elsewhere, I'm sure that installing the Qt library on the The Ubuntu is very easy. I installed the Debian gambas packages on a Ubuntu Live-CD in a few mouse clicks, and the only problem I had is that QT fonts were too large. Regards, -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Mon May 9 15:58:43 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Mon, 09 May 2005 13:58:43 +0000 Subject: [Gambas-user] OT: GTK component and Ubuntu development Message-ID: <20050509.gZO.60733200@...948...> > 1.9.x is a *development* version, and there is no timeline for making it > stable. There are many problems in it, and I will continue breaking things > inside until I'm statisfied :-) I totally understand... and I am very happy that I have Gambas in this world :) > If you want to use it as it is a stable version, you should do it at your own > risk. I won't hear you crying :-) Won't cry too much ;) > Elsewhere, I'm sure that installing the Qt library on the The Ubuntu is very > easy. I installed the Debian gambas packages on a Ubuntu Live-CD in a few > mouse clicks, and the only problem I had is that QT fonts were too large. It ain't hard, but if you're running Gnome and using any theme in the world, you will still get the "shitty-looking" default kde window for all your gambas-qt forms.. I can't tell people to change their kde theme.. when they run Gnome (even though they've got qt/kdelibs there) Cheers /Thomas From jredrejo at ...96... Mon May 9 17:25:46 2005 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Mon, 09 May 2005 17:25:46 +0200 Subject: [Gambas-user] OT: GTK component and Ubuntu development In-Reply-To: <20050509150232.1CD1DF899@...773...> References: <20050509150232.1CD1DF899@...773...> Message-ID: <1115652346.2648.12.camel@...975...> El lun, 09-05-2005 a las 08:01 -0700, "Thomas Mathiesen" escribi?: > I am thinking of building a so-called "Domain Authentication Utility" for > Ubuntu. > In-short, this utility will setup a domain server and on clients, it'll add > the clients to this domain (using openldap + samba + kerberos ..and mail > etc.). > > To be able to release gambas-based applications on Ubuntu, I seriously need > the gtk component, as Gnome is default on Ubuntu. > > Is there a timeline for the release of Gambas 1.9.6 features in a stable > release? > (From my point of view, the 1.9.6 is very stable). > > I think it'd be a breakthrough, and will maybe lead to gambas runtime becoming > a standard package in Ubuntu (www.ubuntulinux.com). > > Cheers > /Thomas As far as I know, gambas is already a standar package in Ubuntu http://packages.ubuntu.com/hoary/source/gambas, but their packages are quite obsolete. The stable version of gambas is more updated in Debian (http://packages.debian.org/unstable/source/gambas). In Linex I have already the 1.9.3 packages that include a gambas-gb-gtk component quite usable in Debian. (http://www.itais.net/index.php?blog=3 uses them succesfully in some thousands of pc in my region high schools). Those packages work in Debian sarge, so probably they will work in Ubuntu as well. Add deb http://www.linex.org/sources/linex/debian/ sarge linex to your /etc/apt/sources.list. Finally, last week Mark Suttelworth (http://www.itais.net/index.php?title=i_am_not_going_to_ask_you_to_use_ubuntu&more=1&c=1&tb=1&pb=1) asked me those packages to include them in Ubuntu, so you will have the unstable gambas version there soon. Before that I will prepare debian packages with the last unstable version. Regards. From gambas at ...1... Mon May 9 17:28:34 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 May 2005 17:28:34 +0200 Subject: [Gambas-user] gambas2 1.9.8 Message-ID: <200505091728.35006.gambas@...1...> Hi, I've just uploaded a new release of the development version, just for fixing the bug in the gambas compiler in the previous package. Note that now source packages are stored on the SourceForge FTP servers. YOu can't access them anymore directly on the web site. The syntax of EXTERN has been enhanced too: * A new keyword, LIBRARY, allows you to declare the name of the library for the next EXTERN declarations. In this case, IN becomes optional. * You can declare the real name of the extern function (if it is different from the name used with Gambas) by using the EXEC keyword at the end of the declaration. I join an example, that I take from Daniel Campos 'gb.api' web site and that I modified. Enjoy it! Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: NCurses-0.0.22.tar.gz Type: application/x-tgz Size: 710 bytes Desc: not available URL: From ml at ...973... Mon May 9 17:34:19 2005 From: ml at ...973... (ML) Date: Mon, 09 May 2005 17:34:19 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <200505091617.41215.gambas@...1...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> Message-ID: <427F82FB.5090009@...973...> Hi Benoit, your explanations together with Rolf's suggestions and hints in another message have been really of great help to me. Arrays in Gambas have no more secrets now... :-) Thanks a lot guys!!! Piero --- On 09/05/2005 16:17, Benoit Minisini wrote: > In gambas, there two types of arrays: > > - Static array, that are allocated inside the object when they are private to > them. They can't be public. > > - Dynamic arrays, that are true Gambas objects, and that work like arrays in > Java. They can be public. > > In the development version, dynamic arrays can be multi-dimensional. So you > can write now: > > STATIC PUBLIC p AS Float[] > > and in the contructor: > > p = NEW Float[5, 5] > > At the moment, you can't write directly STATIC PUBLIC p AS NEW Float[5, 5] > > Regards, > From eilert-sprachen at ...221... Mon May 9 17:51:28 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 09 May 2005 17:51:28 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <200505091617.41215.gambas@...1...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> Message-ID: <427F8700.3050905@...221...> Benoit Minisini schrieb: > In the development version, dynamic arrays can be multi-dimensional. So you > can write now: > > STATIC PUBLIC p AS Float[] > > and in the contructor: > > p = NEW Float[5, 5] Great thing, I'm really looking forward to it. Will it be possible to write p = NEW Float[x, y] too? Rolf From ml at ...973... Mon May 9 19:52:24 2005 From: ml at ...973... (ML) Date: Mon, 09 May 2005 19:52:24 +0200 Subject: [Gambas-user] Global multidimensional arrays In-Reply-To: <427F8700.3050905@...221...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> Message-ID: <427FA358.4050901@...973...> On 09/05/2005 17:51, Eilert wrote: > Great thing, I'm really looking forward to it. Will it be possible to write > > p = NEW Float[x, y] > > too? Yesss, I just used it... and it works! :-) Piero From nando_f at ...951... Mon May 9 22:41:58 2005 From: nando_f at ...951... (nando) Date: Mon, 9 May 2005 16:41:58 -0400 Subject: [Gambas-user] Code to Change to different Workspace In-Reply-To: <427F8700.3050905@...221...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> Message-ID: <20050509203939.M36432@...951...> Does anyone have an idea how to code so my form or any form can be on a different Workspace (virtual Desktop) and how to switch to a different desktop?? -Fernando From picander78 at ...325... Tue May 10 09:23:05 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 10 May 2005 09:23:05 +0200 Subject: [Gambas-user] Multiselect files Message-ID: <200505100923.05132.picander78@...325...> Hi all. I would like to multi-select files in a dir, should I create a dedicated form with a listview/treeview or is there some faster way? Thanks Marco From eilert-sprachen at ...221... Tue May 10 09:46:54 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 10 May 2005 09:46:54 +0200 Subject: [Gambas-user] Multiselect files In-Reply-To: <200505100923.05132.picander78@...325...> References: <200505100923.05132.picander78@...325...> Message-ID: <428066EE.7010506@...221...> Hi Marco, Marco Gusy schrieb: > Hi all. I would like to multi-select files in a dir, should I create a > dedicated form with a listview/treeview or is there some faster way? > > Thanks There is a standard dialog which should do the job. Let me have a look... Yep, "Dialog.FileOpen" is it. Look it up under gb.qt "Dialog" in the help. Paths are set and returned via Dialog.Path. Funny: If the user clicks Cancel, the function will return True :-) Aaah - I tried it, it is just able to return one single file. That's why you asked, mate, isn't it? Sorry, guess you'll have to code it by hand, no faster way I would know about. By the way, wouldn't that be a handy thing to include as an example/tool for the Gambas package? I guess more people will be happy to use such a tweaked dialog. Rolf From gambas at ...1... Tue May 10 10:56:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 May 2005 10:56:40 +0200 Subject: [Gambas-user] Code to Change to different Workspace In-Reply-To: <20050509203939.M36432@...951...> References: <427CB06C.6010107@...973...> <427F8700.3050905@...221...> <20050509203939.M36432@...951...> Message-ID: <200505101056.41016.gambas@...1...> On Monday 09 May 2005 22:41, nando wrote: > Does anyone have an idea how to code > so my form or any form can be on a different > Workspace (virtual Desktop) and how to > switch to a different desktop?? > > -Fernando > Good question! I'd like to know :-) I think it is in the freedesktop.org standards... I already used them to let a window stay on top. I think it should be possible to define/change the window workspace too. -- Benoit Minisini mailto:gambas at ...1... From achim.huth at ...18... Tue May 10 11:16:32 2005 From: achim.huth at ...18... (Achim Huth) Date: Tue, 10 May 2005 11:16:32 +0200 (MEST) Subject: [Gambas-user] (no subject) Message-ID: <1692.1115716592@...976...> confirm 353195 -- +++ Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS +++ GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail From picander78 at ...325... Tue May 10 11:45:48 2005 From: picander78 at ...325... (Marco Gusy) Date: Tue, 10 May 2005 11:45:48 +0200 Subject: [Gambas-user] Multiselect files In-Reply-To: <428066EE.7010506@...221...> References: <200505100923.05132.picander78@...325...> <428066EE.7010506@...221...> Message-ID: <200505101145.48180.picander78@...325...> Thanks for the fast answer! I think Dialog class should allow multiselect, if any developer would like to implement this it would be great. By the way... also the kde open dialog would be very useful (that form with the "Home" "Temp" bookmark in the left) maybe as an object of gb.qt.kde.... Marco From bernieman at ...977... Tue May 10 14:41:44 2005 From: bernieman at ...977... (BernieMan) Date: Tue, 10 May 2005 14:41:44 +0200 Subject: [Gambas-user] Database Development-Files Message-ID: <4280AC08.9000103@...977...> Hi all, I have Kanotix (Debian) and tried to compile the Gambas database drivers without success. The Gambas-Website says: ... the PostgreSQL, MySQL, SQlite or ODBC development packages if you want to compile database drivers. What are the exact names of these development-packages for PostgreSQL MySQL SQlite ODBC thx in advance /BM From therden at ...775... Tue May 10 21:05:27 2005 From: therden at ...775... (Thomas Herden) Date: Tue, 10 May 2005 15:05:27 -0400 Subject: [Gambas-user] Database Development-Files In-Reply-To: <4280AC08.9000103@...977...> References: <4280AC08.9000103@...977...> Message-ID: <200505101505.27580.therden@...775...> On Tuesday 10 May 2005 8:41 am, BernieMan wrote: > I have Kanotix (Debian) and tried to compile the Gambas database drivers > without success. > > The Gambas-Website says: > ... the PostgreSQL, MySQL, SQlite or ODBC development packages if you > want to compile database drivers. > > What are the exact names of these development-packages for > PostgreSQL > MySQL > SQlite > ODBC > > thx in advance > /BM I had the same question back in January. In the spirit of "teach a man to fish", I will pass on the excellent advice I received then: > On Monday 10 January 2005 10:17, Jos? L. Redrejo Rodr?guez wrote: > > > So, just sit down in front of your pc, and > > inside the gambas source directory type: > > "fakeroot dpkg-buildpackage" (or "dpkg-buildpackage" if you have logged > > in as root.) > > This will compile and generate all your own debian packages, or if you > > don't have the development packages needed installed in your system, it > > will tell you what packages you must install using apt-get. On Tuesday 11 January 2005 1:08 pm, Thomas M. Herden wrote: > I'll have to read up on the dpkg-buildpackage command -- it hasn't come to > my attention before. > > The first time I ran it it identified the missing deb packages, as > promised. The second time it generated the deb files -- but as I wasn't > certain how to setup and use a local depository (told you I'm a newbie), I > went back and ran ./configure;make;make install. Success! > > Thank you very much for your assistance! Good luck! -Tom Herden From rolf.frogs at ...221... Wed May 11 09:33:06 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Wed, 11 May 2005 09:33:06 +0200 Subject: [Gambas-user] Problems with ampersand in a string Message-ID: <200505110933.09463.rolf.frogs@...221...> Hi everybody out there I try to query a postgersql database where the string contains an ampersand char which results in an error. So I try to substitute the "&" with a "%" char and use the "like"-operator, but I didn't see any modification after the substitute command: tmp = Replace$(string1, "&", "%") even with charset conversion tmp = Replace$(string1, Conv$("&", System.Charset, "UTF-8"), "%") I also tried the "qoute"-Operator, which doesn't help either. What are my mistakes? In use is Gambas 1.9.3 - because I'm waiting for new Debian packages at linex (does anybody knows, when they are available?). Many thanks for help Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From nando_f at ...951... Wed May 11 09:47:54 2005 From: nando_f at ...951... (nando) Date: Wed, 11 May 2005 03:47:54 -0400 Subject: [Gambas-user] Problems with ampersand in a string In-Reply-To: <200505110933.09463.rolf.frogs@...221...> References: <200505110933.09463.rolf.frogs@...221...> Message-ID: <20050511074743.M19465@...951...> what error ? ---------- Original Message ----------- From: Rolf Schmidt To: "Gambas," Sent: Wed, 11 May 2005 09:33:06 +0200 Subject: [Gambas-user] Problems with ampersand in a string > Hi everybody out there > > I try to query a postgersql database where the string contains an > ampersand char which results in an error. > > So I try to substitute the "&" with a "%" char and use the "like"- > operator, but I didn't see any modification after the substitute command: > > tmp = Replace$(string1, "&", "%") > > even with charset conversion > > tmp = Replace$(string1, Conv$("&", System.Charset, "UTF-8"), "%") > > I also tried the "qoute"-Operator, which doesn't help either. > > What are my mistakes? > In use is Gambas 1.9.3 - because I'm waiting for new Debian packages > at linex > (does anybody knows, when they are available?). > > Many thanks for help > Rolf ------- End of Original Message ------- From nando_f at ...951... Wed May 11 10:44:32 2005 From: nando_f at ...951... (nando) Date: Wed, 11 May 2005 04:44:32 -0400 Subject: [Gambas-user] Watch Window oddity In-Reply-To: <20050511074743.M19465@...951...> References: <200505110933.09463.rolf.frogs@...221...> <20050511074743.M19465@...951...> Message-ID: <20050511084157.M17035@...951...> I noticed when using the WATCH window, if I type a name of a CONST, it is an 'Error' I do realize it's silly to require watching a const in the WATCH. -Fernando From gambas at ...1... Wed May 11 11:07:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 11:07:12 +0200 Subject: [Gambas-user] Problems with ampersand in a string In-Reply-To: <200505110933.09463.rolf.frogs@...221...> References: <200505110933.09463.rolf.frogs@...221...> Message-ID: <200505111107.13059.gambas@...1...> On Wednesday 11 May 2005 09:33, Rolf Schmidt wrote: > Hi everybody out there > > I try to query a postgersql database where the string contains an ampersand > char which results in an error. > > So I try to substitute the "&" with a "%" char and use the "like"-operator, > but I didn't see any modification after the substitute command: > > tmp = Replace$(string1, "&", "%") > > even with charset conversion > > tmp = Replace$(string1, Conv$("&", System.Charset, "UTF-8"), "%") > > I also tried the "qoute"-Operator, which doesn't help either. > > What are my mistakes? > In use is Gambas 1.9.3 - because I'm waiting for new Debian packages at > linex (does anybody knows, when they are available?). > > Many thanks for help > Rolf The query string in all Gambas database methods (Find, Edit, Exec) work like the Subst$() function. Look at the documentation! ;-) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 11 11:12:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 11:12:37 +0200 Subject: [Gambas-user] listview questions In-Reply-To: <200505081219.43231.alain@...974...> References: <1590.201.245.225.187.1115330641.squirrel@...971...> <200505081219.43231.alain@...974...> Message-ID: <200505111112.37221.gambas@...1...> On Sunday 08 May 2005 12:19, Alain Van der Eycken wrote: > Hi All, > > Being reasonably new with Gambas, i find myself struggling with the > listview control in multiselect mode > > Can someone please (pretty please with a cherry on top) show me the gambas > way of how to: > > loop through every item in the list, and delete it from the list if the > listview.item.selected property is set ? > I've constructed this for-next monstrosity which does kinda-sorta what i > want, but it's ugly and error-prone and just doesn't feel right. How do you > do it the gambas way ? > > and: > > How do i move the view to another item in the list ? > > When i load the list, it comes up with the first item in the list. > According to the docs, there is a method 'MoveTo(key)' that should change > the view to the item in question. However, i must be missing something here > as well. Suppose i load a list with 200 items. When the list comes up, it > shows item1, item2,etc --which is of course fine and dandy-- however,I want > the list to show item150. > When i do a listview.moveto(key of item150) the view doesn't change to > display item150, but keeps on displaying item1. > So what is it that i am missing/not doing here ?? > > Kind Regards, > > Alain > The Move*() method moves the *internal* cursor of the ListView. This cursor is intended to let you loop throug every ListView item. The ListView.Item returns the current item pointed by the internal cursor. To change the visible selected item, use the Selected property of the item. ListView.Current returns the current selected item. Are things clearer now ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 11 11:16:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 11:16:54 +0200 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504261021.23784.sourceforge-raindog2@...94...> References: <200504191954.08142.joe1962@...626...> <200504261104.55932.joe1962@...626...> <200504261021.23784.sourceforge-raindog2@...94...> Message-ID: <200505111116.54375.gambas@...1...> On Tuesday 26 April 2005 16:21, Rob wrote: > On Tuesday 26 April 2005 07:04, Jose J. Rodriguez wrote: > > > Can you verify that 'lib.gb.so' is really created during > > > installation ? Can you try to detect if it is destroyed, and when > > > > Gambas seems to run without it. There are Gambas Slackware (VL is > > Slackware based) Packages available on > > www.linuxpackages.net, I wonder how they did it? Manually without > > checkinstall? > > Gambas' make install doesn't seem to install lib.gb.so*, so I cp -a > them in my Mandrake RPM spec file after make install completes and > before the packages' file lists are checked. > > Rob > I never encountered this problem. 'lib.gb.so' is made by the 'Makefile.am' file in the ./main/gbx directory, then it is used by 'gbi2' to extract information about the interpreter native classes, and then it is destroyed. Very strange... -- Benoit Minisini mailto:gambas at ...1... From nando_f at ...951... Wed May 11 11:33:59 2005 From: nando_f at ...951... (nando) Date: Wed, 11 May 2005 05:33:59 -0400 Subject: [Gambas-user] Question regarding CASE and GOTO In-Reply-To: <20050509203939.M36432@...951...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> <20050509203939.M36432@...951...> Message-ID: <20050511093218.M54246@...951...> Benoit, Can I GOTO out of the CASE without any problems ? -Fernando From gambas at ...1... Wed May 11 11:44:32 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 11:44:32 +0200 Subject: [Gambas-user] Question regarding CASE and GOTO In-Reply-To: <20050511093218.M54246@...951...> References: <427CB06C.6010107@...973...> <20050509203939.M36432@...951...> <20050511093218.M54246@...951...> Message-ID: <200505111144.32630.gambas@...1...> On Wednesday 11 May 2005 11:33, nando wrote: > Benoit, > > Can I GOTO out of the CASE without any problems ? > > -Fernando > > Strange... It seems that you answer a previous a thread. Please start a new thread when you ask a new question. If you did, then tell me which mailer you use. Maybe there is a problem with it, or with mine (KMail). Let's back to GOTO now... The rule is that the compiler will raise an error if a GOTO is forbidden. Try it... In your case, I think you can do that, even if it is a very bad practise. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed May 11 12:04:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 12:04:24 +0200 Subject: [Gambas-user] Watch Window oddity In-Reply-To: <20050511084157.M17035@...951...> References: <200505110933.09463.rolf.frogs@...221...> <20050511074743.M19465@...951...> <20050511084157.M17035@...951...> Message-ID: <200505111204.24442.gambas@...1...> On Wednesday 11 May 2005 10:44, nando wrote: > I noticed when using the WATCH window, > if I type a name of a CONST, it is an 'Error' > > I do realize it's silly to require watching a const in the WATCH. > > -Fernando > OK. I will fix it in the next version. -- Benoit Minisini mailto:gambas at ...1... From ml at ...973... Wed May 11 12:46:53 2005 From: ml at ...973... (ML) Date: Wed, 11 May 2005 12:46:53 +0200 Subject: [Gambas-user] Multiselect files In-Reply-To: <200505101145.48180.picander78@...325...> References: <200505100923.05132.picander78@...325...> <428066EE.7010506@...221...> <200505101145.48180.picander78@...325...> Message-ID: <4281E29D.1050403@...973...> On 10/05/2005 11:45, Marco Gusy wrote: > Thanks for the fast answer! > > I think Dialog class should allow multiselect, if any developer would like to > implement this it would be great. Well, a quick hack that works for me is in the attached patches to CDialog.cpp files in gb.qt and gb.qt.kde that allow to select multiple files. The new method Dialog.OpenFiles behaves like its brother Dialog.OpenFile (that is it returns true if no files have been selected and vice versa) but, after calling OpenFiles, Dialog.Path contains a string containing all the files chosen, separated by spaces. You can then easily split the string to get an array of the files you selected. Ciao, Piero -------------- next part -------------- --- CDialog_orig.cpp 2005-05-10 23:59:45.000000000 +0200 +++ CDialog.cpp 2005-05-11 12:10:16.000000000 +0200 @@ -148,6 +148,25 @@ END_METHOD +BEGIN_METHOD_VOID(CDIALOG_open_files) + + QStringList files; + + files = QFileDialog::getOpenFileNames(get_filter(), dialog_path, + qApp->activeWindow(), 0, dialog_title); + + if (files.isEmpty()) + GB.ReturnBoolean(true); + else + { + dialog_path = files.join(" "); + GB.ReturnBoolean(false); + } + + dialog_title = QString::null; + +END_METHOD + BEGIN_METHOD_VOID(CDIALOG_save_file) @@ -246,6 +265,7 @@ GB_STATIC_METHOD("_exit", NULL, CDIALOG_exit, NULL), GB_STATIC_METHOD("OpenFile", "b", CDIALOG_open_file, NULL), + GB_STATIC_METHOD("OpenFiles", "b", CDIALOG_open_files, NULL), GB_STATIC_METHOD("SaveFile", "b", CDIALOG_save_file, NULL), GB_STATIC_METHOD("SelectDirectory", "b", CDIALOG_get_directory, NULL), GB_STATIC_METHOD("SelectColor", "b", CDIALOG_get_color, NULL), -------------- next part -------------- --- CDialog_orig.cpp 2005-05-11 12:18:15.000000000 +0200 +++ CDialog.cpp 2005-05-11 12:01:27.000000000 +0200 @@ -69,7 +69,7 @@ } //qDebug("%s", s.latin1()); - + return s; } @@ -124,7 +124,7 @@ { if (GB.CheckObject(VPROP(GB_OBJECT))) return; - + dialog_font = *(((QT_FONT *)VPROP(GB_OBJECT))->font); } @@ -160,6 +160,25 @@ END_METHOD +BEGIN_METHOD_VOID(CDIALOG_open_files) + + QStringList files; + + files = KFileDialog::getOpenFileNames(dialog_path, get_filter(), + qApp->activeWindow(), dialog_title); + + if (files.isEmpty()) + GB.ReturnBoolean(true); + else + { + dialog_path = files.join(" "); + GB.ReturnBoolean(false); + } + + dialog_title = QString::null; + +END_METHOD + BEGIN_METHOD_VOID(CDIALOG_save_file) @@ -193,7 +212,7 @@ dialog_path = file; GB.ReturnBoolean(false); } - + dialog_title = QString::null; END_METHOD @@ -237,6 +256,7 @@ GB_STATIC_METHOD("_exit", NULL, CDIALOG_exit, NULL), GB_STATIC_METHOD("OpenFile", "b", CDIALOG_open_file, NULL), + GB_STATIC_METHOD("OpenFiles", "b", CDIALOG_open_files, NULL), GB_STATIC_METHOD("SaveFile", "b", CDIALOG_save_file, NULL), GB_STATIC_METHOD("SelectDirectory", "b", CDIALOG_get_directory, NULL), From gambas at ...1... Wed May 11 14:01:04 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 14:01:04 +0200 Subject: [Gambas-user] Multiselect files In-Reply-To: <4281E29D.1050403@...973...> References: <200505100923.05132.picander78@...325...> <200505101145.48180.picander78@...325...> <4281E29D.1050403@...973...> Message-ID: <200505111401.04717.gambas@...1...> On Wednesday 11 May 2005 12:46, ML wrote: > On 10/05/2005 11:45, Marco Gusy wrote: > > Thanks for the fast answer! > > > > I think Dialog class should allow multiselect, if any developer would > > like to implement this it would be great. > > Well, a quick hack that works for me is in the attached patches to > CDialog.cpp files in gb.qt and gb.qt.kde that allow to select multiple > files. > > The new method Dialog.OpenFiles behaves like its brother Dialog.OpenFile > (that is it returns true if no files have been selected and vice versa) > but, after calling OpenFiles, Dialog.Path contains a string containing all > the files chosen, separated by spaces. > > You can then easily split the string to get an array of the files you > selected. > > Ciao, > Piero Thanks for the patch. I will use it, but in a different way. I will add in the next development version an optional parameter to Dialog.OpenFile(), to tell that we want to select multiple files, and a new property, Dialog.Paths, that will return an array of the selected files. Regards, -- Benoit Minisini mailto:gambas at ...1... From picander78 at ...325... Wed May 11 15:41:05 2005 From: picander78 at ...325... (Marco Gusy) Date: Wed, 11 May 2005 15:41:05 +0200 Subject: [Gambas-user] Multiselect files In-Reply-To: <200505111401.04717.gambas@...1...> References: <200505100923.05132.picander78@...325...> <4281E29D.1050403@...973...> <200505111401.04717.gambas@...1...> Message-ID: <200505111541.05652.picander78@...325...> Alle 14:01, mercoled? 11 maggio 2005, Benoit Minisini ha scritto: > Thanks for the patch. I will use it, but in a different way. I will add in > the next development version an optional parameter to Dialog.OpenFile(), to > tell that we want to select multiple files, and a new property, > Dialog.Paths, that will return an array of the selected files. Thanks Benoit, it's exactly how i wished it could be... Thanks Piero too for suggesting a patch so fast. Marco From eilert-sprachen at ...221... Wed May 11 16:49:09 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 11 May 2005 16:49:09 +0200 Subject: [Gambas-user] Changing window size from code Message-ID: <42821B65.60505@...221...> In a dialog window, it should be possible to change its size by dlgDialog.Height = something... In my dialog here, it doesn't. The beast doesn't care at all :-) What am I doing wrong? The reason for this is that there is a changing number of input TextBoxes, and the window is to change accordingly in size to look nice. I tried the command in Form_Open and in Form_Activate, it doesn't have any effect. Rolf From gambas at ...1... Wed May 11 17:42:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 May 2005 17:42:39 +0200 Subject: [Gambas-user] Changing window size from code In-Reply-To: <42821B65.60505@...221...> References: <42821B65.60505@...221...> Message-ID: <200505111742.40637.gambas@...1...> On Wednesday 11 May 2005 16:49, Eilert wrote: > In a dialog window, it should be possible to change its size by > > dlgDialog.Height = something... > > In my dialog here, it doesn't. The beast doesn't care at all :-) > > What am I doing wrong? > > The reason for this is that there is a changing number of input > TextBoxes, and the window is to change accordingly in size to look nice. > I tried the command in Form_Open and in Form_Activate, it doesn't have > any effect. > > Rolf > You must set Window.Border to Window.Resizable, change the size of your dialog, and set Window.Border to Window.Fixed back. One of many funny Gambas things :-) -- Benoit Minisini mailto:gambas at ...1... From joe1962 at ...626... Sun May 8 23:20:17 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sun, 8 May 2005 21:20:17 +0000 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504261021.23784.sourceforge-raindog2@...94...> References: <200504191954.08142.joe1962@...626...> <200504261104.55932.joe1962@...626...> <200504261021.23784.sourceforge-raindog2@...94...> Message-ID: <200505082120.17622.joe1962@...626...> On Tuesday, 26 de April de 2005 02:21 pm, Rob wrote: > On Tuesday 26 April 2005 07:04, Jose J. Rodriguez wrote: > > > Can you verify that 'lib.gb.so' is really created during > > > installation ? Can you try to detect if it is destroyed, and when > > > > Gambas seems to run without it. There are Gambas Slackware (VL is > > Slackware based) Packages available on > > www.linuxpackages.net, I wonder how they did it? Manually without > > checkinstall? > > Gambas' make install doesn't seem to install lib.gb.so*, so I cp -a > them in my Mandrake RPM spec file after make install completes and > before the packages' file lists are checked. > Hi Rob, make install gives this output (relevant part): Creating the library info files... /opt/gambas/share/gambas/info/gb.debug.info /opt/gambas/share/gambas/info/gb.eval.info /opt/gambas/share/gambas/info/gb.db.info /opt/gambas/share/gambas/info/gb.compress.info /opt/gambas/share/gambas/info/gb.xml.libxml.xslt.info /opt/gambas/share/gambas/info/gb.xml.libxml.rpc.info /opt/gambas/share/gambas/info/gb.xml.libxml.info /opt/gambas/share/gambas/info/gb.qt.editor.info /opt/gambas/share/gambas/info/gb.qt.ext.info /opt/gambas/share/gambas/info/gb.qt.kde.html.info /opt/gambas/share/gambas/info/gb.qt.kde.info /opt/gambas/share/gambas/info/gb.qt.info /opt/gambas/share/gambas/info/gb.net.curl.info /opt/gambas/share/gambas/info/gb.net.info /opt/gambas/share/gambas/info/gb.sdl.info /opt/gambas/share/gambas/info/gb.vb.info /opt/gambas/share/gambas/info/gb.info Installing the development environment... Compiling gambas... OK Compiling gambas-database-manager... OK checkinstall, on the other hand, gives this: Creating the library info files... /opt/gambas/share/gambas/info/gb.debug.info /opt/gambas/share/gambas/info/gb.eval.info /opt/gambas/share/gambas/info/gb.db.info /opt/gambas/share/gambas/info/gb.compress.info /opt/gambas/share/gambas/info/gb.xml.libxml.xslt.info /opt/gambas/share/gambas/info/gb.xml.libxml.rpc.info /opt/gambas/share/gambas/info/gb.xml.libxml.info /opt/gambas/share/gambas/info/gb.qt.editor.info /opt/gambas/share/gambas/info/gb.qt.ext.info /opt/gambas/share/gambas/info/gb.qt.kde.html.info /opt/gambas/share/gambas/info/gb.qt.kde.info /opt/gambas/share/gambas/info/gb.qt.info /opt/gambas/share/gambas/info/gb.net.curl.info /opt/gambas/share/gambas/info/gb.net.info /opt/gambas/share/gambas/info/gb.sdl.info /opt/gambas/share/gambas/info/gb.vb.info /opt/gambas/lib/gambas/lib.gb.so: not found make[2]: *** [install-exec-local] Error 1 make[2]: Leaving directory `/mnt/linux/downloads/kget/develop/gambas/gambas-1.0.6/gambas-1.0.6' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/mnt/linux/downloads/kget/develop/gambas/gambas-1.0.6/gambas-1.0.6' make: *** [install-recursive] Error 1 **** ?Installation failed. Aborting package creation. Cleaning up...OK Bye. Narrowing it down further, as you can see, with make install: /opt/gambas/share/gambas/info/gb.vb.info /opt/gambas/share/gambas/info/gb.info while checkinstall does this: /opt/gambas/share/gambas/info/gb.vb.info /opt/gambas/lib/gambas/lib.gb.so: not found Any ideas why it's different with checkinstall? Why /opt/gambas/lib/gambas/lib.gb.so after /opt/gambas/share/gambas/info/gb.vb.info instead of /opt/gambas/share/gambas/info/vb.info, as with make install? Thanks, Joe1962 From bernieman.tux at ...626... Wed May 11 10:20:58 2005 From: bernieman.tux at ...626... (BernieMan) Date: Wed, 11 May 2005 10:20:58 +0200 Subject: [Gambas-user] Database Development-Files In-Reply-To: <200505101505.27580.therden@...775...> References: <4280AC08.9000103@...977...> <200505101505.27580.therden@...775...> Message-ID: <4281C06A.9010700@...626...> Thomas Herden schrieb: > On Tuesday 10 May 2005 8:41 am, BernieMan wrote: > > >>I have Kanotix (Debian) and tried to compile the Gambas database drivers >>without success. >> >>The Gambas-Website says: >>... the PostgreSQL, MySQL, SQlite or ODBC development packages if you >>want to compile database drivers. >> >>What are the exact names of these development-packages for >>PostgreSQL >>MySQL >>SQlite >>ODBC >> >>thx in advance >>/BM > > > I had the same question back in January. In the spirit of "teach a man to > fish", I will pass on the excellent advice I received then: > > >>On Monday 10 January 2005 10:17, Jos? L. Redrejo Rodr?guez wrote: >> >> >>>So, just sit down in front of your pc, and >>>inside the gambas source directory type: >>>"fakeroot dpkg-buildpackage" (or "dpkg-buildpackage" if you have logged >>>in as root.) >>>This will compile and generate all your own debian packages, or if you >>>don't have the development packages needed installed in your system, it >>>will tell you what packages you must install using apt-get. > > > On Tuesday 11 January 2005 1:08 pm, Thomas M. Herden wrote: > > >>I'll have to read up on the dpkg-buildpackage command -- it hasn't come to >>my attention before. >> >>The first time I ran it it identified the missing deb packages, as >>promised. The second time it generated the deb files -- but as I wasn't >>certain how to setup and use a local depository (told you I'm a newbie), I >>went back and ran ./configure;make;make install. Success! >> >>Thank you very much for your assistance! > > > Good luck! > -Tom Herden Well, Thx Thomas for your excellent advice, I just caught the fish - /BM From eilert-sprachen at ...221... Wed May 11 18:21:54 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 11 May 2005 18:21:54 +0200 Subject: [Gambas-user] Changing window size from code In-Reply-To: <200505111742.40637.gambas@...1...> References: <42821B65.60505@...221...> <200505111742.40637.gambas@...1...> Message-ID: <42823122.3090803@...221...> Benoit Minisini schrieb: > On Wednesday 11 May 2005 16:49, Eilert wrote: > >>In a dialog window, it should be possible to change its size by >> >>dlgDialog.Height = something... >> >>In my dialog here, it doesn't. The beast doesn't care at all :-) >> >>What am I doing wrong? >> >>The reason for this is that there is a changing number of input >>TextBoxes, and the window is to change accordingly in size to look nice. >>I tried the command in Form_Open and in Form_Activate, it doesn't have >>any effect. >> >>Rolf >> > > > You must set Window.Border to Window.Resizable, change the size of your > dialog, and set Window.Border to Window.Fixed back. > > One of many funny Gambas things :-) > Aaaah - ok. This runs, thank you. Have a nice evening! Rolf From sourceforge-raindog2 at ...94... Wed May 11 20:13:33 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 11 May 2005 14:13:33 -0400 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200505082120.17622.joe1962@...626...> References: <200504191954.08142.joe1962@...626...> <200504261021.23784.sourceforge-raindog2@...94...> <200505082120.17622.joe1962@...626...> Message-ID: <200505111413.33770.sourceforge-raindog2@...94...> On Sunday 08 May 2005 17:20, Jose J. Rodriguez wrote: > Any ideas why it's different with checkinstall? > Why /opt/gambas/lib/gambas/lib.gb.so > after /opt/gambas/share/gambas/info/gb.vb.info instead > of /opt/gambas/share/gambas/info/vb.info, as with make install? I have no idea.... checkinstall is just something rpmbuild does, and I don't know where it gets its ideas on what to look for. Maybe it looks for all the files in %files plus anything ending in .so. Rob From joe1962 at ...626... Mon May 9 12:19:21 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 9 May 2005 10:19:21 +0000 Subject: [Gambas-user] gambas2 1.9.7 In-Reply-To: <200505091453.07819.radoslav.dejanovic@...116...> References: <200505041802.49404.gambas@...1...> <200505091413.16375.gambas@...1...> <200505091453.07819.radoslav.dejanovic@...116...> Message-ID: <200505091019.21632.joe1962@...626...> On Monday, 9 de May de 2005 12:53 pm, Radoslav Dejanovi? wrote: > On Monday 09 May 2005 14:13, Benoit Minisini wrote: > > The problem is that PEEK and POKE can only deal with bytes. The READ and > > WRITE commands can deal with any datatypes... > > Yeah, but for history's sake... ;) Quite right! You could use PEEKB / POKEB and PEEKW / POKEW, I've seem them used before, but don't remember which BASIC that was. READ and WRITE are automatically associated in one's mind with files. Joe1962 From nando_f at ...951... Thu May 12 02:51:34 2005 From: nando_f at ...951... (nando) Date: Wed, 11 May 2005 20:51:34 -0400 Subject: [Gambas-user] Another IDE and CONST oddity In-Reply-To: <42823122.3090803@...221...> References: <42821B65.60505@...221...> <200505111742.40637.gambas@...1...> <42823122.3090803@...221...> Message-ID: <20050512004641.M31127@...951...> Benoit, I have a module 'mod1' with PUBLIC CONST my_const AS INTEGER = 300 When I code in a class, for example... x = y * mod1.my_const When I type the 'period' after mod1, the list of objects displays in a small list, the constant does not show in the list. -Fernando From frankberg at ...390... Thu May 12 09:13:26 2005 From: frankberg at ...390... (Frank Berg) Date: Thu, 12 May 2005 09:13:26 +0200 Subject: [Gambas-user] gambas2 1.9.8 References: <200505091728.35006.gambas@...1...> Message-ID: <000401c556c2$1767a600$0200a8c0@...602...> hi, i was try to use the example. both daniels (component and example) and benoits (ide and example). both show the same output. there is none new window(s), both examples printing an long string on ascii sequences on the direct window of gambas. the init() command comes with the first sequence on the direct window. the ApiPointer Variable V1 are = 0 and the V2 != 0 > > I join an example, that I take from Daniel Campos 'gb.api' web site and > that I > modified. > > Enjoy it! From sluca at ...67... Thu May 12 09:31:41 2005 From: sluca at ...67... (Scaramella Luca) Date: Thu, 12 May 2005 07:31:41 +0000 Subject: [Gambas-user] Buttons Icons & Text Message-ID: Hi, There is a way to align the text in a button at the center/bottom of the button with picture?? If i set a Picture in a Button the text appears on the right of the picture. I would like to align the text on the center bottom. In Vb if i set a commandbutton in graphical style i've the text aligned at the bottom/center. (for me looks better expecially on big buttons) Thanks Luca From daniel.campos at ...338... Thu May 12 10:47:54 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 12 May 2005 10:47:54 +0200 Subject: [Gambas-user] gambas2 1.9.8 In-Reply-To: <000401c556c2$1767a600$0200a8c0@...602...> References: <200505091728.35006.gambas@...1...> <000401c556c2$1767a600$0200a8c0@...602...> Message-ID: <4283183A.3090301@...338...> Frank Berg escribi?: > hi, > i was try to use the example. both daniels (component and example) and > benoits (ide and example). both show the same output. there is none > new window(s), > both examples printing an long string on ascii sequences on the direct > window of gambas. > the init() command comes with the first sequence on the direct window. > the ApiPointer Variable V1 are = 0 and the V2 != 0 You've to compile the examples and run it in a real console (or X terminal). The Gambas console emulation for the IDE can not handle NCurses commands. Regards, D. Campos > >> >> I join an example, that I take from Daniel Campos 'gb.api' web site and >> that I >> modified. >> >> Enjoy it! > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From oreip at ...1... Thu May 12 15:33:38 2005 From: oreip at ...1... (PV) Date: Thu, 12 May 2005 15:33:38 +0200 Subject: [Gambas-user] Object class and name Message-ID: <42835B32.3020507@...1...> Hi everybody, I need to iterate over a set of different controls (like textboxes, buttons, labels etc) inside a container, and I need to know their name (and possibly class) to properly operate on each of them. I have to do something like DIM hControl AS Control FOR EACH hControl IN Frame1.Children IF hControl.Class [or .Name] = something THEN ... END IF NEXT but, according to what I have been able so far to learn about Gambas, neither .Class nor .Name are available. Is that right or is there any other method to accomplish this task? TIA, Piero From eeller at ...826... Thu May 12 18:12:57 2005 From: eeller at ...826... (Eldon Eller) Date: Thu, 12 May 2005 09:12:57 -0700 Subject: [Gambas-user] Object class and name In-Reply-To: <42835B32.3020507@...1...> References: <42835B32.3020507@...1...> Message-ID: <42838089.3010209@...826...> I have not tried this, but I believe you can attach a tag to each control that will let you do what you want. PV wrote: > Hi everybody, > > I need to iterate over a set of different controls (like textboxes, > buttons, > labels etc) inside a container, and I need to know their name (and possibly > class) to properly operate on each of them. > > I have to do something like > > DIM hControl AS Control > FOR EACH hControl IN Frame1.Children > IF hControl.Class [or .Name] = something THEN > ... > END IF > NEXT > > but, according to what I have been able so far to learn about Gambas, > neither > .Class nor .Name are available. > > Is that right or is there any other method to accomplish this task? > > TIA, > Piero > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Wsouzap at ...87... Thu May 12 20:06:36 2005 From: Wsouzap at ...87... (Wsouzap at ...87...) Date: Thu, 12 May 2005 14:06:36 -0400 Subject: [Gambas-user] Icon in KDE tray Message-ID: <77DEFE4C.2641F846.001B903D@...87...> Hi! I'm need hide my form and show icon program in KDE tray with tray menu. Any help???? From oreip at ...1... Thu May 12 20:20:02 2005 From: oreip at ...1... (PV) Date: Thu, 12 May 2005 20:20:02 +0200 Subject: [Gambas-user] Object class and name In-Reply-To: <42838089.3010209@...826...> References: <42835B32.3020507@...1...> <42838089.3010209@...826...> Message-ID: <42839E52.5020703@...1...> Yes, I know it works because I have already used it as a workaround, but I hoped to get those pieces of information directly from the object structure, because I thought it could be easier and simpler to maintain. Thank you, Piero --- On 12/05/2005 18:12, Eldon Eller wrote: > I have not tried this, but I believe you can attach a tag to each > control that will let you do what you want. > > PV wrote: > >> Hi everybody, >> >> I need to iterate over a set of different controls (like textboxes, >> buttons, >> labels etc) inside a container, and I need to know their name (and >> possibly >> class) to properly operate on each of them. From nando_f at ...951... Thu May 12 21:53:49 2005 From: nando_f at ...951... (nando) Date: Thu, 12 May 2005 15:53:49 -0400 Subject: [Gambas-user] READ file problem - bug In-Reply-To: <4283183A.3090301@...338...> References: <200505091728.35006.gambas@...1...> <000401c556c2$1767a600$0200a8c0@...602...> <4283183A.3090301@...338...> Message-ID: <20050512194359.M54958@...951...> Benoit, One of my programs has uses a data file where the first two bytes in the file were written as a SHORT (2 bytes) with the value 999 (base 10) When my program starts, part of the initialization is to read this SHORT. I have a problem because the SHORT value read in is -6397 which happens to be exactly the BIG ENDIAN representation of 999 The 999 was initially written LITTLE ENDIAN as a SHORT and when I use KHexEdit, viewing the beginning of the data file, I see 999 (decimal) LITTLE ENDIAN and when I click to see BIG ENDIAN, it is -6397. I specicially open the file as READ LITTLE. This is a repeatable problem I encounter. I have verified this a few times before writing this. Perhaps I doing something wrong. Thanks -Fernando From nando_f at ...951... Thu May 12 21:59:22 2005 From: nando_f at ...951... (nando) Date: Thu, 12 May 2005 15:59:22 -0400 Subject: [Gambas-user] READ file problem - bug -update In-Reply-To: <4283183A.3090301@...338...> References: <200505091728.35006.gambas@...1...> <000401c556c2$1767a600$0200a8c0@...602...> <4283183A.3090301@...338...> Message-ID: <20050512195922.M86701@...951...> Benoit, my snip of code is... PUBLIC short_variable AS SHORT ... OPEN "my_file" FOR READ WRITE LITTLE AS #hfile SEEK #hfile, 0 READ #hfile, ME.short_variable ... Attempting to solve this, I removed the ME. and it works correct every time so far. ..somethings funny... Thanks -Fernando From nando_f at ...951... Fri May 13 09:27:38 2005 From: nando_f at ...951... (nando) Date: Fri, 13 May 2005 03:27:38 -0400 Subject: [Gambas-user] IsNumber question In-Reply-To: <20050512195922.M86701@...951...> References: <200505091728.35006.gambas@...1...> <000401c556c2$1767a600$0200a8c0@...602...> <4283183A.3090301@...338...> <20050512195922.M86701@...951...> Message-ID: <20050513071454.M44047@...951...> Benoit, I have a question with TEXTAREA TextArea1.Text = "349" PRINT IsNumber(TextArea1.Text) produces FALSE I was presuming from Wiki that IsNumber tested an expression. Of course 349 is a string but it also vals to a valid number. It would seem that IsNumber only looks at the type of var without doing the internally VAL - perhaps as designed. Performing the VAL would help determine if a string VAL'd to a valid number. Yes, I could code it, but is seemed IsNumber ought to do that. How would IsNumber be used without VAL at the same time? Sincerely -Fernando From gambas at ...1... Fri May 13 11:34:02 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 May 2005 11:34:02 +0200 Subject: [Gambas-user] READ file problem - bug In-Reply-To: <20050512194359.M54958@...951...> References: <200505091728.35006.gambas@...1...> <4283183A.3090301@...338...> <20050512194359.M54958@...951...> Message-ID: <200505131134.02347.gambas@...1...> On Thursday 12 May 2005 21:53, nando wrote: > Benoit, > > One of my programs has uses a data file > where the first two bytes in the file > were written as a SHORT (2 bytes) with > the value 999 (base 10) > > When my program starts, > part of the initialization is to read this SHORT. > > I have a problem because the SHORT value > read in is -6397 which happens to be exactly > the BIG ENDIAN representation of 999 > > The 999 was initially written LITTLE ENDIAN as a SHORT > and when I use KHexEdit, viewing the beginning of > the data file, I see 999 (decimal) LITTLE ENDIAN > and when I click to see BIG ENDIAN, it is -6397. > I specicially open the file as READ LITTLE. > > This is a repeatable problem I encounter. > I have verified this a few times before writing this. > > Perhaps I doing something wrong. > > Thanks > -Fernando > Can you try to open the file in buffered mode ? I think the problem comes from the bug I talked about in your previous private mail. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri May 13 11:36:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 May 2005 11:36:29 +0200 Subject: [Gambas-user] IsNumber question In-Reply-To: <20050513071454.M44047@...951...> References: <200505091728.35006.gambas@...1...> <20050512195922.M86701@...951...> <20050513071454.M44047@...951...> Message-ID: <200505131136.29297.gambas@...1...> On Friday 13 May 2005 09:27, nando wrote: > Benoit, > > I have a question with TEXTAREA > > TextArea1.Text = "349" > PRINT IsNumber(TextArea1.Text) > > produces FALSE > > I was presuming from Wiki that > IsNumber tested an expression. > > Of course 349 is a string > but it also vals to a valid number. > > It would seem that IsNumber only looks at the type of var > without doing the internally VAL - perhaps as designed. > Performing the VAL would help determine if a string VAL'd > to a valid number. > > Yes, I could code it, but is seemed IsNumber ought to do that. > How would IsNumber be used without VAL at the same time? > > Sincerely > -Fernando > IsNumber() just tests the type of the value (from boolean to float). It does not behave like IsNumber() in VB. To know if a string is a number, you must use Val()/CInt()/CFloat() and test if you get an error. Regards, -- Benoit Minisini mailto:gambas at ...1... From gibsonsphoto at ...247... Fri May 13 13:06:08 2005 From: gibsonsphoto at ...247... (neil lewis) Date: Fri, 13 May 2005 12:06:08 +0100 Subject: [Gambas-user] test a DVD device Message-ID: <42848A20.4060808@...247...> Hi all, I have a couple of queries. I'm writing a simple backup program in Gambas for a friend who wants to be able to run automated backups between 1GB and 4GB in size. We decided that a DVD recorder would be the simplest route for this. The program currently uses a set of GUI based configuration tools to set basic configuration, create profiles, manage media, etc. and a non-gui part which to be run from CRON to carry out the actual process. My problem is trying to test the drive to see if it's ready for use, ie a DVD is present, it is blank but formatted or it has already been used. How can I test a DVD writer to see: a) If there is a disk present in the drive b) If present, whether it is formatted and ready for use c) If present and formatted, whether it already contains data If possible, I'd also like to be able to read the disk label so that the program can identify if it should be overwritten or the process should abort with an error. I've tried to start by using TRY file = DIR(/dev/dvdram, "*.*") where file is defined by DIM file as STRING[] at the start of the sub. I want to read ERROR after this test to decide whether to write to the DVD as a new disk (-Z option) or in overwrite mode (-M option) but I always get an error, blank or not. I'm using EXEC["growisofs", "-Z" (or "-M"), device, "-R", "-J" Path_to_Files] to burn the files to the DVD. device is currently /dev/dvdram. This part works fine. Any help would be appreciated. Neil Lewis. From nando_f at ...951... Fri May 13 20:10:50 2005 From: nando_f at ...951... (nando) Date: Fri, 13 May 2005 14:10:50 -0400 Subject: [Gambas-user] test a DVD device In-Reply-To: <42848A20.4060808@...247...> References: <42848A20.4060808@...247...> Message-ID: <20050513180631.M42362@...951...> An alternate method I used was external USB drives each with 200B IDE's in them. Although I used a shell script and not Gambas, that is on the list of changes to do. I have 8 drives where each drive is to be used every four days. The script knows which drive ought to be plugged in because each drive has one identifier file that is queried. This method is far easier than DVD especially because increasing file sizes overtime would make automated DVD limiting. IDE drives are large and cheap. -Fernando ---------- Original Message ----------- From: neil lewis To: gambas-user at lists.sourceforge.net Sent: Fri, 13 May 2005 12:06:08 +0100 Subject: [Gambas-user] test a DVD device > Hi all, > > I have a couple of queries. > > I'm writing a simple backup program in Gambas for a friend who wants > to be able to run automated backups between 1GB and 4GB in size. We > decided that a DVD recorder would be the simplest route for this. > > The program currently uses a set of GUI based configuration tools to > set basic configuration, create profiles, manage media, etc. and a > non-gui part which to be run from CRON to carry out the actual process. > > My problem is trying to test the drive to see if it's ready for use, > ie a DVD is present, it is blank but formatted or it has already > been used. > > How can I test a DVD writer to see: > a) If there is a disk present in the drive > b) If present, whether it is formatted and ready for use > c) If present and formatted, whether it already contains data > > If possible, I'd also like to be able to read the disk label so that > the program can identify if it should be overwritten or the process > should abort with an error. > > I've tried to start by using TRY file = DIR(/dev/dvdram, "*.*") > where file is defined by DIM file as STRING[] at the start of the > sub. I want to read ERROR after this test to decide whether to write > to the DVD as a new disk (-Z option) or in overwrite mode (-M option) > but I always get an error, blank or not. > > I'm using EXEC["growisofs", "-Z" (or "-M"), device, "-R", "-J" > Path_to_Files] to burn the files to the DVD. device is currently > /dev/dvdram. This part works fine. > > Any help would be appreciated. > > Neil Lewis. > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&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... Sat May 14 21:40:53 2005 From: nando_f at ...951... (nando) Date: Sat, 14 May 2005 15:40:53 -0400 Subject: [Gambas-user] Serial Port Problem In-Reply-To: <20050509203939.M36432@...951...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> <20050509203939.M36432@...951...> Message-ID: <20050514193845.M21172@...951...> I am using the Serial Port Control. Sometimes, not often, I get a WRITE ERROR, which I find odd. The port is open. Any ideas why this would happen? -Fernando From daniel.campos at ...338... Sat May 14 21:55:29 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Sat, 14 May 2005 21:55:29 +0200 Subject: [Gambas-user] Serial Port Problem In-Reply-To: <20050514193845.M21172@...951...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> <20050509203939.M36432@...951...> <20050514193845.M21172@...951...> Message-ID: <428657B1.703@...338...> Can you send your code? Daniel nando escribi?: >I am using the Serial Port Control. > >Sometimes, not often, I get a WRITE ERROR, which I find odd. > >The port is open. > >Any ideas why this would happen? > >-Fernando > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From nando_f at ...951... Sat May 14 22:08:01 2005 From: nando_f at ...951... (nando) Date: Sat, 14 May 2005 16:08:01 -0400 Subject: [Gambas-user] Serial Port Problem In-Reply-To: <428657B1.703@...338...> References: <427CB06C.6010107@...973...> <200505091617.41215.gambas@...1...> <427F8700.3050905@...221...> <20050509203939.M36432@...951...> <20050514193845.M21172@...951...> <428657B1.703@...338...> Message-ID: <20050514200124.M72363@...951...> I use a slightly modified version from the serial port example: ... PUBLIC sub Write_Serial (a AS String) IF Sport.status = Net.Inactive THEN Message ("open port first") ELSE chkrts.Value = TRUE WAIT 0.01 WRITE #Sport,a,Len(a) WAIT 0.5 chkrts.Value = FALSE ENDIF ... The serial devices I use need RTS UP to accept the data and then take that data and transmit it when RTS goes low. (which is RS-232 exact use of RTS spec) -Fernando ---------- Original Message ----------- From: Daniel Campos To: gambas-user at lists.sourceforge.net Sent: Sat, 14 May 2005 21:55:29 +0200 Subject: Re: [Gambas-user] Serial Port Problem > Can you send your code? > > Daniel > > nando escribi?: > > >I am using the Serial Port Control. > > > >Sometimes, not often, I get a WRITE ERROR, which I find odd. > > > >The port is open. > > > >Any ideas why this would happen? > > > >-Fernando > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by Oracle Space Sweepstakes > >Want to be the first software developer in space? > >Enter now for the Oracle Space Sweepstakes! > >http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_ids93&alloc_id281&op?k > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mrzanderson at ...626... Mon May 16 05:17:15 2005 From: mrzanderson at ...626... (Tom) Date: Mon, 16 May 2005 13:17:15 +1000 Subject: [Gambas-user] Process_read In-Reply-To: <20050514200124.M72363@...951...> References: <427CB06C.6010107@...973...> <428657B1.703@...338...> <20050514200124.M72363@...951...> Message-ID: <200505161317.15879.mrzanderson@...626...> Hello, Just wondering if there are any known problems with Process_read in the 1.03 release? We are reading the output of an svn command which outputs a large amount of lines (100+). This command does not supply instant output, instead it must download files from a server and then print out the result. With small quantities this works fine, however when it comes to reading large amounts of output it gets the output lines mixed up. Almost as if it wraps the output... Here is an example.. ===================== Expected Output: Added /home/user/project/subfolder/file1 Added /home/user/project/subfolder/file2 Modified /home/user/project/subfolder/file3 Deleted /home/user/project/subfolder/file4 Deleted /home/user/project/subfolder/file5 Actual Output: Added /home/user/project/subfolder/file1 Added /home/user/project/subfolder/file2 Modified /home/user/project/subf older/file3 Deleted /home/user/project/subfolder ==================== This is more or less the kind of output that we are getting... Again only with large lists of output. Before we spent too much time killing ourselves over our code I thought it would be best to ask if anyone else has been experiencing similar problems? Regards, Tom From nando_f at ...951... Mon May 16 06:04:28 2005 From: nando_f at ...951... (nando) Date: Mon, 16 May 2005 00:04:28 -0400 Subject: [Gambas-user] Process_read In-Reply-To: <200505161317.15879.mrzanderson@...626...> References: <427CB06C.6010107@...973...> <428657B1.703@...338...> <20050514200124.M72363@...951...> <200505161317.15879.mrzanderson@...626...> Message-ID: <20050516040320.M99906@...951...> Step 1 would be upgrade to 1.06 (lastest stable version) Some file I/O has been fixed -Fernando ---------- Original Message ----------- From: Tom To: gambas-user at lists.sourceforge.net Sent: Mon, 16 May 2005 13:17:15 +1000 Subject: [Gambas-user] Process_read > Hello, > > Just wondering if there are any known problems with Process_read in > the 1.03 release? We are reading the output of an svn command which > outputs a large amount of lines (100+). This command does not supply > instant output, instead it must download files from a server and > then print out the result. > > With small quantities this works fine, however when it comes to > reading large amounts of output it gets the output lines mixed up. > Almost as if it wraps the output... Here is an example.. > > ===================== > > Expected Output: > > Added /home/user/project/subfolder/file1 > Added /home/user/project/subfolder/file2 > Modified /home/user/project/subfolder/file3 > Deleted /home/user/project/subfolder/file4 > Deleted /home/user/project/subfolder/file5 > > Actual Output: > > Added /home/user/project/subfolder/file1 > Added /home/user/project/subfolder/file2 > Modified /home/user/project/subf > older/file3 > Deleted > /home/user/project/subfolder > > ==================== > > This is more or less the kind of output that we are getting... Again > only with large lists of output. > > Before we spent too much time killing ourselves over our code I > thought it would be best to ask if anyone else has been experiencing > similar problems? > > Regards, > Tom > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&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 daniel.campos at ...338... Mon May 16 15:41:15 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Mon, 16 May 2005 15:41:15 +0200 Subject: [Gambas-user] gb.net and gb.net.curl fixes for Gambas2 Message-ID: <4288A2FB.8000203@...338...> Hi: I've placed here: http://gambas.gnulinex.org/net Some fixes for gb.net and gb.net.curl. Finally I found that it seems the GB_STREAM_DESC structure changed in any point in the past, so there's a field "handle" that wasn't managed by both components. This could be the fix for some strange and "aleatory" bugs when working with Socket, UdpSocket, SerialPort, HttpClient and FtpClient. Regards, D. Campos From mrzanderson at ...626... Tue May 17 13:43:04 2005 From: mrzanderson at ...626... (Tom) Date: Tue, 17 May 2005 21:43:04 +1000 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <4288A2FB.8000203@...338...> References: <4288A2FB.8000203@...338...> Message-ID: <200505172143.04697.mrzanderson@...626...> Hey, I am trying to read the output of a command using Process_Read(), however it's output is a prompt for the user to type something in... What I did was: SHELL command WAIT FOR READ WRITE AS myProcess PUBLIC SUB Process_Read() ????????reads the line into a variable ????????if the variable is "user prompt:" then ????????????????WRITE getUserInput() ????????end if END however it doesnt seem to work... Have I done something wrong? From oreip at ...1... Tue May 17 19:20:11 2005 From: oreip at ...1... (PV) Date: Tue, 17 May 2005 19:20:11 +0200 Subject: [Gambas-user] Logical operators and short circuit Message-ID: <428A27CB.1010904@...1...> Hi all, I haven't been able to find an answer in the documentation even though, according to the behavior I see in some lines of my code, I suspect the answer should be "no": does gambas support short circuiting for logical operators? Thank you, Piero From nando_f at ...951... Wed May 18 00:09:40 2005 From: nando_f at ...951... (nando) Date: Tue, 17 May 2005 18:09:40 -0400 Subject: [Gambas-user] Picture Box Bug/Confusion In-Reply-To: <200505161317.15879.mrzanderson@...626...> References: <427CB06C.6010107@...973...> <428657B1.703@...338...> <20050514200124.M72363@...951...> <200505161317.15879.mrzanderson@...626...> Message-ID: <20050517220000.M19743@...951...> I have a large PNG in a picture box The PNG is 1844 x 2200 If I hold the mouse over the picturebox control with the mouse, it always says PictureBox1 1856 x 2360 for the IDE tooltip. Intestingly, the picture is slightly skewed and it doesn't matter what I set the Width or Height to, the picturebox dimensions on the IDE tooltip are incorrect (1856 x 2360) I'm thinking the skewing is because of my monitor alignment - except other smaller (resonable sized) PNG's look normal. The picture box X and Y are negative, -500 to -1500 range. 1856 x 2360 seems to be what it thinks everything is. Is the 1856 X 2360 the PNG size, because the graphics programs say 1844 x 2200 So, I'm a bit confused. -Fernando From nando_f at ...951... Wed May 18 00:36:52 2005 From: nando_f at ...951... (nando) Date: Tue, 17 May 2005 18:36:52 -0400 Subject: [Gambas-user] Picture Box Bug/Confusion In-Reply-To: <20050517220000.M19743@...951...> References: <427CB06C.6010107@...973...> <428657B1.703@...338...> <20050514200124.M72363@...951...> <200505161317.15879.mrzanderson@...626...> <20050517220000.M19743@...951...> Message-ID: <20050517223535.M1065@...951...> And a PNG of size 340K does every time freeze the computer quite solidly. This is when the file is bound to the control in the IDE. -Fernando ---------- Original Message ----------- From: "nando" To: gambas-user at lists.sourceforge.net Sent: Tue, 17 May 2005 18:09:40 -0400 Subject: [Gambas-user] Picture Box Bug/Confusion > I have a large PNG in a picture box > > The PNG is 1844 x 2200 > > If I hold the mouse over the picturebox control with the > mouse, it always says PictureBox1 1856 x 2360 for the IDE tooltip. > > Intestingly, the picture is slightly skewed and > it doesn't matter what I set the Width or Height to, > the picturebox dimensions on the IDE tooltip are incorrect > (1856 x 2360) > > I'm thinking the skewing is because of my monitor alignment - > except other smaller (resonable sized) PNG's look normal. > > The picture box X and Y are negative, -500 to -1500 range. > > 1856 x 2360 seems to be what it thinks everything is. > > Is the 1856 X 2360 the PNG size, because the graphics programs > say 1844 x 2200 > > So, I'm a bit confused. > > -Fernando > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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 panpan at ...726... Wed May 18 08:31:19 2005 From: panpan at ...726... (P@...727...@N) Date: Wed, 18 May 2005 13:31:19 +0700 Subject: [Gambas-user] Re: Gambas2-1.9.6 doesn't show forms, classes, modules, etc. In-Reply-To: <20050428031051.786DF13388@...773...> References: <20050428031051.786DF13388@...773...> Message-ID: <428AE137.1020705@...726...> > > >> Sorry, forgot to attach the screenshot. >> Here's the one >> ------------------------------- >> I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) >> Every projects I've opened, the project window only show directories >> inside the project dirs. >> I attached the screenshot. >> Any ideas why this happens? and the solution? >> The project was made in Gambas-1.0.3 and everything is fine. >> >> Thank's in advance, >> salam >> -iggy > I sent this mail last month. Apparently this all because I put the project in a Fat32 fs. This does not happens in gambas1. salam -iggy From w at ...731... Wed May 18 08:26:37 2005 From: w at ...731... (Vincenzo Ing. Virgilio) Date: Wed, 18 May 2005 08:26:37 +0200 Subject: [Gambas-user] Another article about Gambas in Italy Message-ID: <428AE01D.5080006@...731...> Hi everybody! We got another article about Gambas on a italian newspaper. You can find it in http://www.gambas.it/linuxpro/GambasLeCo05-2005.jpg I got to do a presentation at LWE about Gambas in Milan at 14.30 of Tuesday 24th of may. If somepeople planned to come, we will be there. I'm trying to publish the presentation of Benoit at Linux Meeting in Palermo on 6-7 May 2005 at http://www.gambas.it/GambasPa.wmv It's a 14 Mbyte Wmv file, spoken in English! But slides was in Italian. Any suggestion is wellcome. Enjoy it! Vincenzo Virgilio From matthias-laur at ...978... Thu May 19 10:31:10 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Thu, 19 May 2005 10:31:10 +0200 Subject: [Gambas-user] process.id Message-ID: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> Hello, I want to store a mpg file from s-video-in for 10 sec with the following command Shell "cat /dev/video0 > myfile.mpg" AS myprocess Wait (10) myprocess.kill But after then the process was still alive. Then I try: Shell "kill " & myprocess.id With no access. The process was still alive. Then I saw that the number that myprocess.id returns was 1 lower then the number that the command "fuser /dev/video0" in the bash returns. So at last I try: Shell "kill " & cstr(myprocess.id +1) And it works. Can you tell me why? I'm using Gambas 1.0.6 Greets from Hamburg Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu May 19 10:49:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 10:49:03 +0200 Subject: [Gambas-user] Picture Box Bug/Confusion In-Reply-To: <20050517220000.M19743@...951...> References: <427CB06C.6010107@...973...> <200505161317.15879.mrzanderson@...626...> <20050517220000.M19743@...951...> Message-ID: <200505191049.03998.gambas@...1...> On Wednesday 18 May 2005 00:09, nando wrote: > I have a large PNG in a picture box > > The PNG is 1844 x 2200 > > If I hold the mouse over the picturebox control with the > mouse, it always says PictureBox1 1856 x 2360 for the IDE tooltip. > > Intestingly, the picture is slightly skewed and > it doesn't matter what I set the Width or Height to, > the picturebox dimensions on the IDE tooltip are incorrect > (1856 x 2360) > > I'm thinking the skewing is because of my monitor alignment - > except other smaller (resonable sized) PNG's look normal. > > The picture box X and Y are negative, -500 to -1500 range. > > 1856 x 2360 seems to be what it thinks everything is. > > Is the 1856 X 2360 the PNG size, because the graphics programs > say 1844 x 2200 > > So, I'm a bit confused. > > -Fernando > > Please send your project, or at least the faulty form! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 19 10:50:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 10:50:41 +0200 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <200505172143.04697.mrzanderson@...626...> References: <4288A2FB.8000203@...338...> <200505172143.04697.mrzanderson@...626...> Message-ID: <200505191050.42143.gambas@...1...> On Tuesday 17 May 2005 13:43, Tom wrote: > Hey, > > I am trying to read the output of a command using Process_Read(), however > it's output is a prompt for the user to type something in... > > What I did was: > > SHELL command WAIT FOR READ WRITE AS myProcess > > PUBLIC SUB Process_Read() > > ????????reads the line into a variable > > ????????if the variable is "user prompt:" then > ????????????????WRITE getUserInput() > ????????end if > > END > > however it doesnt seem to work... > > Have I done something wrong? > > Please tell which version of gambas you use. In older stable releases, the compiler didn't tell that WAIT and FOR READ WRITE are not compatible. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 19 10:51:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 10:51:14 +0200 Subject: [Gambas-user] Logical operators and short circuit In-Reply-To: <428A27CB.1010904@...1...> References: <428A27CB.1010904@...1...> Message-ID: <200505191051.15030.gambas@...1...> On Tuesday 17 May 2005 19:20, PV wrote: > Hi all, > > I haven't been able to find an answer in the documentation even though, > according to the behavior I see in some lines of my code, I suspect the > answer should be "no": does gambas support short circuiting for logical > operators? > > Thank you, > Piero > Not yet, but this is planned. I think there is an entry for that in the TODO file... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 19 10:54:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 10:54:38 +0200 Subject: [Gambas-user] Re: Gambas2-1.9.6 doesn't show forms, classes, modules, etc. In-Reply-To: <428AE137.1020705@...726...> References: <20050428031051.786DF13388@...773...> <428AE137.1020705@...726...> Message-ID: <200505191054.38440.gambas@...1...> On Wednesday 18 May 2005 08:31, P at ...727...@N wrote: > >> Sorry, forgot to attach the screenshot. > >> Here's the one > >> ------------------------------- > >> I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) > >> Every projects I've opened, the project window only show directories > >> inside the project dirs. > >> I attached the screenshot. > >> Any ideas why this happens? and the solution? > >> The project was made in Gambas-1.0.3 and everything is fine. > >> > >> Thank's in advance, > >> salam > >> -iggy > > I sent this mail last month. Apparently this all because I put the > project in a Fat32 fs. This does not happens in gambas1. > > salam > -iggy > > You are right. In the dev. version, the IDE ignore files whose executable bit is set. And on a fat32 fs, all files are executable bit set! I must find a workaround... But why using a fat32 fs for storing Gambas things ? ;-) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 19 10:57:32 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 10:57:32 +0200 Subject: [Gambas-user] process.id In-Reply-To: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> Message-ID: <200505191057.32925.gambas@...1...> On Thursday 19 May 2005 10:31, Matthias Laur wrote: > Hello, > > I want to store a mpg file from s-video-in for 10 sec with the following > command > > > > Shell "cat /dev/video0 > myfile.mpg" AS myprocess > > Wait (10) > > myprocess.kill > > > > But after then the process was still alive. > > > > Then I try: > > > > Shell "kill " & myprocess.id > > > > With no access. The process was still alive. > > > > Then I saw that the number that myprocess.id returns was 1 lower then the > number that the command "fuser /dev/video0" in the bash returns. > > > > So at last I try: > > > > Shell "kill " & cstr(myprocess.id +1) > > > > And it works. Can you tell me why? > > I'm using Gambas 1.0.6 > > > > Greets from Hamburg > > Matthias Wow! What's that incredible thing? 8-( Can you send me your complete project? I have to be sure that the same thing happens on my box... Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...338... Thu May 19 11:05:46 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 19 May 2005 11:05:46 +0200 Subject: [Gambas-user] process.id In-Reply-To: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> Message-ID: <428C56EA.5040707@...338...> May be you can use: Shell ?kill -9 ? & myprocess.id Regards, D. Campos Matthias Laur escribi?: > Hello, > > I want to store a mpg file from s-video-in for 10 sec with the > following command > > Shell ?cat /dev/video0 > myfile.mpg? AS myprocess > > Wait (10) > > myprocess.kill > > But after then the process was still alive. > > Then I try: > > Shell ?kill ? & myprocess.id > > With no access. The process was still alive. > > Then I saw that the number that myprocess.id returns was 1 lower then > the number that the command ?fuser /dev/video0? in the bash returns. > > So at last I try: > > Shell ?kill ? & cstr(myprocess.id +1) > > And it works. Can you tell me why? > > I?m using Gambas 1.0.6 > > Greets from Hamburg > > Matthias > From mrzanderson at ...626... Thu May 19 11:06:30 2005 From: mrzanderson at ...626... (Tom) Date: Thu, 19 May 2005 19:06:30 +1000 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <200505191050.42143.gambas@...1...> References: <4288A2FB.8000203@...338...> <200505172143.04697.mrzanderson@...626...> <200505191050.42143.gambas@...1...> Message-ID: <200505191906.30131.mrzanderson@...626...> On Thu May 19 2005 6:50 pm, Benoit Minisini wrote: > On Tuesday 17 May 2005 13:43, Tom wrote: > > Hey, > > > > I am trying to read the output of a command using Process_Read(), however > > it's output is a prompt for the user to type something in... > > > > What I did was: > > > > SHELL command WAIT FOR READ WRITE AS myProcess > > > > PUBLIC SUB Process_Read() > > > > ????????reads the line into a variable > > > > ????????if the variable is "user prompt:" then > > ????????????????WRITE getUserInput() > > ????????end if > > > > END > > > > however it doesnt seem to work... > > > > Have I done something wrong? > > Please tell which version of gambas you use. In older stable releases, the > compiler didn't tell that WAIT and FOR READ WRITE are not compatible. > > Regards, I am using 1.0.3, I tried to compile 1.0.6 but then it complains that it can't find the gb.qt.something components. And I havnt found a debian package for it :s I removed the WAIT and now it just outputs errors from standard output (as if nothing was entered and then an error was outputed) To make things easier to understand, I am trying to connect to an svn repository using svn+ssh and so in konsole it will ask for a passphrase. I am just trying to make an interface that will let the user to input the passphrase and then output it to the stdin. Is this possible? From gambas at ...1... Thu May 19 11:51:04 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 May 2005 11:51:04 +0200 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <200505191906.30131.mrzanderson@...626...> References: <4288A2FB.8000203@...338...> <200505191050.42143.gambas@...1...> <200505191906.30131.mrzanderson@...626...> Message-ID: <200505191151.05358.gambas@...1...> On Thursday 19 May 2005 11:06, Tom wrote: > On Thu May 19 2005 6:50 pm, Benoit Minisini wrote: > > On Tuesday 17 May 2005 13:43, Tom wrote: > > > Hey, > > > > > > I am trying to read the output of a command using Process_Read(), > > > however it's output is a prompt for the user to type something in... > > > > > > What I did was: > > > > > > SHELL command WAIT FOR READ WRITE AS myProcess > > > > > > PUBLIC SUB Process_Read() > > > > > > ????????reads the line into a variable > > > > > > ????????if the variable is "user prompt:" then > > > ????????????????WRITE getUserInput() > > > ????????end if > > > > > > END > > > > > > however it doesnt seem to work... > > > > > > Have I done something wrong? > > > > Please tell which version of gambas you use. In older stable releases, > > the compiler didn't tell that WAIT and FOR READ WRITE are not compatible. > > > > Regards, > > I am using 1.0.3, I tried to compile 1.0.6 but then it complains that it > can't find the gb.qt.something components. And I havnt found a debian > package for it :s You need to install the development packages for that... > > I removed the WAIT and now it just outputs errors from standard output (as > if nothing was entered and then an error was outputed) What command do you run exactly ? What errors did you get ? > > To make things easier to understand, I am trying to connect to an svn > repository using svn+ssh and so in konsole it will ask for a passphrase. I > am just trying to make an interface that will let the user to input the > passphrase and then output it to the stdin. > > Is this possible? > You must check before than the program you run needs a terminal, otherwise things may work differently (like 'ls') or not at all (gdb I think needs a terminal for example). In the development version, I added a syntax (SHELL/EXEC ... FOR INPUT OUTPUT) that run the called program in a virtual terminal, and I succeeded in sending commands to gdb. Regards, -- Benoit Minisini mailto:gambas at ...1... From picander78 at ...325... Thu May 19 14:44:28 2005 From: picander78 at ...325... (Marco Gusy) Date: Thu, 19 May 2005 12:44:28 +0000 Subject: [Gambas-user] Static keyword Message-ID: <200505191244.28505.picander78@...325...> Sorry for the very newbie question :#) I can't understand the difference in declaring a variabile static or not. Can you give some practical example? Thanks From matthias-laur at ...978... Thu May 19 14:10:11 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Thu, 19 May 2005 14:10:11 +0200 Subject: AW: [Gambas-user] Static keyword In-Reply-To: <200505191244.28505.picander78@...325...> Message-ID: <0ML29c-1DYjqs1VPm-0004B6@...979...> A static variable belong to the class. Not static variable belong to an object of a class. If you want to have a global variable to change values between the objects of a class, you have to declare the variable as static. Regards Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Marco Gusy Gesendet: Donnerstag, 19. Mai 2005 14:44 An: gambas-user at lists.sourceforge.net Betreff: [Gambas-user] Static keyword Sorry for the very newbie question :#) I can't understand the difference in declaring a variabile static or not. Can you give some practical example? Thanks ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Thu May 19 17:39:43 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 May 2005 11:39:43 -0400 Subject: [Gambas-user] Re: Gambas2-1.9.6 doesn't show forms, classes, modules, etc. In-Reply-To: <200505191054.38440.gambas@...1...> References: <20050428031051.786DF13388@...773...> <428AE137.1020705@...726...> <200505191054.38440.gambas@...1...> Message-ID: <200505191139.43505.sourceforge-raindog2@...94...> On Thursday 19 May 2005 04:54, Benoit Minisini wrote: > I must find a workaround... But why using a fat32 fs for storing > Gambas things ? ;-) I can't speak for Mr. P at ...727...@N, but personally my laptop has 10GB of ext3 and 20GB of fat32 (the reason being that Linux can deal with fat32 a lot better than Windows can deal with ext3.... never mind that I've booted into Windows exactly twice in the two years I've had the laptop.) I create all my projects in my ext3 home directory, but I can easily envision a case where this wouldn't be true. Rob From sourceforge-raindog2 at ...94... Thu May 19 17:43:42 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 May 2005 11:43:42 -0400 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <200505191906.30131.mrzanderson@...626...> References: <4288A2FB.8000203@...338...> <200505191050.42143.gambas@...1...> <200505191906.30131.mrzanderson@...626...> Message-ID: <200505191143.42125.sourceforge-raindog2@...94...> On Thursday 19 May 2005 05:06, Tom wrote: > To make things easier to understand, I am trying to connect to an > svn repository using svn+ssh and so in konsole it will ask for a > passphrase. I am just trying to make an interface that will let the > user to input the passphrase and then output it to the stdin. Without addressing whether or not it's possible in Gambas.... if you're using ssh for things other than interactive shells, you REALLY need to set up a key pair using ssh_keygen (id_rsa and id_rsa.pub, both in .ssh, the latter of which you copy into .ssh/authorized_keys[2] on the target host.) When I started rsyncing over ssh regularly, it quickly became apparent that trying to programmatically deal with the ssh passphrase wasn't something the ssh authors want you to be able to do. Rob From sourceforge-raindog2 at ...94... Thu May 19 17:47:12 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 May 2005 11:47:12 -0400 Subject: [Gambas-user] SHELL WRITE command In-Reply-To: <200505191151.05358.gambas@...1...> References: <4288A2FB.8000203@...338...> <200505191906.30131.mrzanderson@...626...> <200505191151.05358.gambas@...1...> Message-ID: <200505191147.12744.sourceforge-raindog2@...94...> On Thursday 19 May 2005 05:51, Benoit Minisini wrote: > You must check before than the program you run needs a terminal, > otherwise things may work differently (like 'ls') or not at all > (gdb I think needs a terminal for example). Sorry, I forgot to mention this in my previous reply to Tom. Yes, ssh does require a terminal. My solution to this in the past was to write a perl wrapper that opened a virtual terminal (invisible to the user) and ran ssh on it, passing input and output from and to my Gambas program. I imagine with the advances in the development version, you'd be able to do it all in Gambas, but this is something that's running in production so the stable version is required. Rob From nando_f at ...951... Fri May 20 01:05:06 2005 From: nando_f at ...951... (nando) Date: Thu, 19 May 2005 19:05:06 -0400 Subject: [Gambas-user] Drawing Graphics Questions In-Reply-To: <0ML29c-1DYjqs1VPm-0004B6@...979...> References: <200505191244.28505.picander78@...325...> <0ML29c-1DYjqs1VPm-0004B6@...979...> Message-ID: <20050519225111.M57236@...951...> Drawing Graphic Questions... To draw graphics of any sort, I need to DRAW.BEGIN on any one of the following objects a Picture a Window a Printer (for the printer, not the screen) a Drawing a DrawingArea When I am done, I need to DRAW.END Then, and most importantly, I must ME.MASK = {the object I drew on above} and then the graphics will be on the screen. (1) is the above process correct? (2) If the object is a WINDOW object, then the graphics are direct in the window and the ME.MASK is not required because the DRAW.END signals showing on the window. (3) What is the difference between DRAWING object and DRAWINGAREA object? Thank you, -Fernando From nando_f at ...951... Fri May 20 02:15:53 2005 From: nando_f at ...951... (nando) Date: Thu, 19 May 2005 20:15:53 -0400 Subject: [Gambas-user] BackColor Question In-Reply-To: <20050519225111.M57236@...951...> References: <200505191244.28505.picander78@...325...> <0ML29c-1DYjqs1VPm-0004B6@...979...> <20050519225111.M57236@...951...> Message-ID: <20050520001350.M6646@...951...> What is the backcolor setting for a Label, TextArea, (etc) so the background is transparent?? -Fernando From daniel.campos at ...338... Fri May 20 02:38:58 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Fri, 20 May 2005 02:38:58 +0200 Subject: [Gambas-user] BackColor Question In-Reply-To: <20050520001350.M6646@...951...> References: <200505191244.28505.picander78@...325...> <0ML29c-1DYjqs1VPm-0004B6@...979...> <20050519225111.M57236@...951...> <20050520001350.M6646@...951...> Message-ID: <428D31A2.9020209@...338...> Currently widgets do not support transparency Regards, D. Campos nando escribi?: >What is the backcolor setting for a Label, TextArea, (etc) so the >background is transparent?? > >-Fernando > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From nando_f at ...951... Fri May 20 03:43:09 2005 From: nando_f at ...951... (nando) Date: Thu, 19 May 2005 21:43:09 -0400 Subject: [Gambas-user] Suggestion In-Reply-To: <20050519225111.M57236@...951...> References: <200505191244.28505.picander78@...325...> <0ML29c-1DYjqs1VPm-0004B6@...979...> <20050519225111.M57236@...951...> Message-ID: <20050520013935.M58598@...951...> You may want to place this on the ToDo list. A form I have been working on is totally populated with controls of various types. There is no way to view the Property of the Form because I cannot select the form. When you right click in the IDE (working on a form) the top item is SELECT ->. Perhaps the first item on the list of controls could be the 'form'. -Fernando From panpan at ...726... Fri May 20 03:54:30 2005 From: panpan at ...726... (P@...727...@N) Date: Fri, 20 May 2005 08:54:30 +0700 Subject: [Gambas-user] Re: Gambas2-1.9.6 doesn't show forms, classes, modules, etc. In-Reply-To: <20050519154521.E3065AA709@...763...> References: <20050519154521.E3065AA709@...763...> Message-ID: <428D4356.8050905@...726...> >You are right. In the dev. version, the IDE ignore files whose executable bit >is set. And on a fat32 fs, all files are executable bit set! > >I must find a workaround... But why using a fat32 fs for storing Gambas >things ? ;-) > >Regards, >Benoit Minisini I save my data in a flashdisk (usb). Since this disk contains data/docs that should be readable by many OS including windows, so it has to be in fat32. salam -iggy From edamron at ...776... Fri May 20 09:07:19 2005 From: edamron at ...776... (Eric Damron) Date: Fri, 20 May 2005 00:07:19 -0700 Subject: [Gambas-user] Wierd question Message-ID: <428D8CA7.8070105@...776...> I need to sense when the IP address on my cable modem changes. To complicate the matter I have a Linksys router setting between my internal network (using NAT) and my cable modem. I'm thinking that the only way to do this is to send a http request for the status page and then scrape the current IP address off of the html returned. But since I want this to run unattended on my home server that runs at run level 3 I don't want a gui. Can I run the browser as a nonvisual object? Thanks. From sourceforge-raindog2 at ...94... Fri May 20 15:16:03 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 20 May 2005 09:16:03 -0400 Subject: [Gambas-user] Wierd question In-Reply-To: <428D8CA7.8070105@...776...> References: <428D8CA7.8070105@...776...> Message-ID: <200505200916.03606.sourceforge-raindog2@...94...> On Friday 20 May 2005 03:07, Eric Damron wrote: > Can I run the browser as a nonvisual object? Thanks. No need to use the browser at all.... look at the gb.net.curl component, which is expressly intended for the sort of thing you've got in mind. Rob From sourceforge-raindog2 at ...94... Fri May 20 15:14:26 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 20 May 2005 09:14:26 -0400 Subject: [Gambas-user] Drawing Graphics Questions In-Reply-To: <20050519225111.M57236@...951...> References: <200505191244.28505.picander78@...325...> <0ML29c-1DYjqs1VPm-0004B6@...979...> <20050519225111.M57236@...951...> Message-ID: <200505200914.26187.sourceforge-raindog2@...94...> On Thursday 19 May 2005 19:05, nando wrote: > Then, and most importantly, I must > ME.MASK = {the object I drew on above} > and then the graphics will be on the screen. ME.Mask is only useful if you want to make the window partially transparent. If you just want to draw graphics, it's not necessary at all. Rob From pvera at ...729... Fri May 20 15:48:46 2005 From: pvera at ...729... (Pablo Vera) Date: Fri, 20 May 2005 08:48:46 -0500 Subject: [Gambas-user] Wierd question In-Reply-To: <428D8CA7.8070105@...776...> References: <428D8CA7.8070105@...776...> Message-ID: <428DEABE.9070002@...729...> You don't need a browser, simply use a socket object to connect to the router. Something like this: ----------------------------------------------------------------------- PRIVATE sckComm AS Socket PRIVATE Buffer AS String ' Startup, create the socket PUBLIC SUB Main() sckComm = NEW Socket AS "sckComm" END ' The Start SUB should be called by a timer or click event, ' this will fire a series of events, beginning by the connection ' to the router: PUBLIC SUB Start() sckComm.Connect("192.168.1.1",80) END ' When the connection is established, send your request: PUBLIC SUB sckComm_Ready() DIM S AS String Buffer = "" IF sckComm.Status = Net.Connected THEN S = "GET http://192.168.1.1/Status.htm HTTP/1.1" & vbCRLF S = S & "Host: 192.168.1.1" & vbCrLf S = S & "Authorization: Basic " & ToBase64(":xxxxx") & vbCrLf S = S & vbCrLf WRITE #sckComm, S, Len(S) END IF END ' *** You should replace the xxxxx above, with your router password, ' the : before the password is required. ' Read the response and save it in a buffer: PUBLIC SUB sckComm_Read() DIM S AS String IF sckComm.Status = Net.Connected THEN READ #sckComm, S, Lof(sckComm) Buffer = Buffer & S END IF END ' When the connection closes, it means that the response is complete, ' now you need to parse it and extract the IP address: PUBLIC SUB sckComm_Closed() DIM S AS String IF Buffer<>"" THEN S = UCase$(Buffer) ' *** In here you would parse the html response and get the IP address. END IF END ' This function is used to convert the "username:password" string to ' Base64, which is required by the authentication: PUBLIC FUNCTION ToBase64(S AS String) AS String DIM L AS Integer DIM I AS Integer DIM P AS Integer DIM B AS Integer DIM SS AS String DIM SSS AS String DIM TB64 AS String DIM Table AS String DIM Buf AS Byte DIM Lim AS Integer TB64 = "" Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" & "abcdefghijklmnopqrstuvwxyz" & "0123456789+/" ' "=": Pad P = 1 DO SS = Mid$(S, P, 3) L = Len(SS) SELECT CASE L CASE 0 SSS = "" Lim = 0 B = 0 CASE 1 SSS = "==" Lim = 2 B = Shl(Asc(Mid$(SS, 1, 1)), 4) CASE 2 SSS = "=" Lim = 3 B = Shl(Asc(Mid$(SS, 1, 1)), 12) + Shl(Asc(Mid$(SS, 2, 1)), 2) CASE 3 SSS = "" Lim = 4 B = Shl(Asc(Mid$(SS, 1, 1)), 16) + Shl(Asc(Mid$(SS, 2, 1)), 8) + Asc(Mid$(SS, 3, 1)) END SELECT FOR I = 1 TO Lim Buf = B AND 63 ' 111111 SSS = Mid$(Table, Buf+1, 1) & SSS B = B \ 64 NEXT TB64 = TB64 & SSS P = P + 3 LOOP UNTIL L < 3 RETURN TB64 END FUNCTION ---------------------------------------------------------------------- I used the Networking / ClientSocket example as a startup point to write this. I hope it helps a little. Saludos, Pablo Vera ______________________________________________________________________ Eric Damron wrote: > I need to sense when the IP address on my cable modem changes. To > complicate the matter I have a Linksys router setting between my > internal network (using NAT) and my cable modem. > > I'm thinking that the only way to do this is to send a http request for > the status page and then scrape the current IP address off of the html > returned. But since I want this to run unattended on my home server > that runs at run level 3 I don't want a gui. > > Can I run the browser as a nonvisual object? Thanks. From nando_f at ...951... Sun May 22 03:08:56 2005 From: nando_f at ...951... (nando) Date: Sat, 21 May 2005 21:08:56 -0400 Subject: [Gambas-user] IDE problems In-Reply-To: <428DEABE.9070002@...729...> References: <428D8CA7.8070105@...776...> <428DEABE.9070002@...729...> Message-ID: <20050522005546.M26657@...951...> I have encountered problems in the IDE. 1) in the LOCAL tab of the Project Window I have a few variables of which one local Integer variable is: The NAME column shows 'counter' The Value column shows '=21' ----------- Question... The equal sign comes from where? ----------- 2) I have a global string 's' It is supposed to have all kinds of characters in it including ASC values less than 32 In the CONSOLE... if I ?len(s) I get zero (even though I know it is assigned) if I ?Mid$(s,1,1) I get the first letter correctly returned, and then immediately the LOCAL tab of the Project Windows changes the value of another Local variable: NAME = msg_num (an integer variable) VALUE = ERROR:21 ------------------- Question.. What is ERROR 21? ------------------- Then when I press F8 to single step, The CONSOLE windows shows the FORM.Subroutine.Line number and not the Project window. I can compile and make an executable. I'm really confused with the IDE bugs. Any ideas how these happen ? -Fernando From nando_f at ...951... Sun May 22 03:18:12 2005 From: nando_f at ...951... (nando) Date: Sat, 21 May 2005 21:18:12 -0400 Subject: [Gambas-user] IDE problems In-Reply-To: <20050522005546.M26657@...951...> References: <428D8CA7.8070105@...776...> <428DEABE.9070002@...729...> <20050522005546.M26657@...951...> Message-ID: <20050522011619.M69988@...951...> Trying many things...it appears that the order of DIMing local variables makes a difference DIMing strings after the Integers appears to help. This is true when the strings contain wield ASC values. -Fernando ---------- Original Message ----------- From: "nando" To: gambas-user at lists.sourceforge.net Sent: Sat, 21 May 2005 21:08:56 -0400 Subject: [Gambas-user] IDE problems > I have encountered problems in the IDE. > > 1) in the LOCAL tab of the Project Window > I have a few variables of which one > local Integer variable is: > > The NAME column shows 'counter' > The Value column shows '=21' > > ----------- > Question... > The equal sign comes from where? > ----------- > > 2) I have a global string 's' > It is supposed to have all kinds of characters in it > including ASC values less than 32 > > In the CONSOLE... > > if I ?len(s) I get zero (even though I know it is assigned) > if I ?Mid$(s,1,1) I get the first letter correctly returned, > and then immediately the LOCAL tab of the Project Windows changes > the value of another Local variable: > > NAME = msg_num (an integer variable) > > VALUE = ERROR:21 > > ------------------- > Question.. > What is ERROR 21? > ------------------- > > Then when I press F8 to single step, > > The CONSOLE windows shows the FORM.Subroutine.Line number > and not the Project window. > > I can compile and make an executable. > > I'm really confused with the IDE bugs. > > Any ideas how these happen ? > > -Fernando > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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 oreip at ...1... Sun May 22 09:04:30 2005 From: oreip at ...1... (PV) Date: Sun, 22 May 2005 09:04:30 +0200 Subject: [Gambas-user] IDE problems In-Reply-To: <20050522011619.M69988@...951...> References: <428D8CA7.8070105@...776...> <428DEABE.9070002@...729...> <20050522005546.M26657@...951...> <20050522011619.M69988@...951...> Message-ID: <42902EFE.5000506@...1...> I experienced a similar strange problem. I had to use an array of objects and two arrays of integers, but if I created them in three consecutive lines, at runtime I got a "Bad number of dimensions" error and the program stopped. Just moving the creation of the two arrays of integers a few lines down, in the same sub, without touching or modifying anything else, solved the problem. Piero --- On 22/05/2005 03:18, nando wrote: > Trying many things...it appears that the > order of DIMing local variables makes a difference > > DIMing strings after the Integers appears to help. > This is true when the strings contain wield ASC values. > > -Fernando From nando_f at ...951... Sun May 22 20:45:01 2005 From: nando_f at ...951... (nando) Date: Sun, 22 May 2005 14:45:01 -0400 Subject: [Gambas-user] BYTE data type In-Reply-To: <42902EFE.5000506@...1...> References: <428D8CA7.8070105@...776...> <428DEABE.9070002@...729...> <20050522005546.M26657@...951...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> Message-ID: <20050522181813.M35705@...951...> If you use BYTE, remember that the math is unsigned. ... DIM b AS BYTE b = 0 DEC b 'b is 255 and not -1 .... b = 127 INC b 'b is 128 and not -128 ... b = 255 INC b 'b is 0 .... -Fernando From gambas at ...1... Mon May 23 14:21:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 May 2005 14:21:15 +0200 Subject: [Gambas-user] IDE problems In-Reply-To: <42902EFE.5000506@...1...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> Message-ID: <200505231421.15688.gambas@...1...> On Sunday 22 May 2005 09:04, PV wrote: > I experienced a similar strange problem. > > I had to use an array of objects and two arrays of integers, but if I > created them in three consecutive lines, at runtime I got a "Bad number of > dimensions" error and the program stopped. > > Just moving the creation of the two arrays of integers a few lines down, in > the same sub, without touching or modifying anything else, solved the > problem. > > Piero > > --- > > On 22/05/2005 03:18, nando wrote: > > Trying many things...it appears that the > > order of DIMing local variables makes a difference > > > > DIMing strings after the Integers appears to help. > > This is true when the strings contain wield ASC values. > > > > -Fernando > Thanks for the bug reports, but pleeeeaaase.... Can you post some code, or better a complete project ? Because: 1) English is often not our language, and so we can misunderstand ourself. 2) You may have found a bug that depends on the project context. So, by sending a project (complete, or just stripped to the buggy code), it will be far easier for me fixing the problem! Thanks in advance, Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon May 23 14:23:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 May 2005 14:23:38 +0200 Subject: [Gambas-user] Suggestion In-Reply-To: <20050520013935.M58598@...951...> References: <200505191244.28505.picander78@...325...> <20050519225111.M57236@...951...> <20050520013935.M58598@...951...> Message-ID: <200505231423.38877.gambas@...1...> On Friday 20 May 2005 03:43, nando wrote: > You may want to place this on the ToDo list. > > A form I have been working on is totally populated > with controls of various types. > > There is no way to view the Property of the Form > because I cannot select the form. > > When you right click in the IDE (working on a form) > the top item is SELECT ->. > > Perhaps the first item on the list of controls > could be the 'form'. > > -Fernando > Good idea. I put that in the TODO list. Anyway, can you start a new thread when your question is not related to a post ? Thanks in advance, -- Benoit Minisini mailto:gambas at ...1... From oreip at ...1... Mon May 23 15:30:05 2005 From: oreip at ...1... (PV) Date: Mon, 23 May 2005 15:30:05 +0200 Subject: [Gambas-user] IDE problems In-Reply-To: <200505231421.15688.gambas@...1...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> <200505231421.15688.gambas@...1...> Message-ID: <4291DADD.4040301@...1...> On 23/05/2005 14:21, Benoit Minisini wrote: > Thanks for the bug reports, but pleeeeaaase.... Can you post some code, or > better a complete project ? Because: > > 1) English is often not our language, and so we can misunderstand ourself. > > 2) You may have found a bug that depends on the project context. > > So, by sending a project (complete, or just stripped to the buggy code), it > will be far easier for me fixing the problem! Actually it's as simple as follows. This does not work: STATIC PUBLIC o AS Object[] STATIC PUBLIC a AS Integer[] STATIC PUBLIC b AS Integer[] PUBLIC SUB Button2_Click() DIM grid AS Integer grid = 20 b = NEW Integer[grid, grid] a = NEW Integer[grid, grid] o = NEW Object[](grid) o[0] = NEW Button(ME) END When I press Button2 I get the "Bad number of dimensions" error. This works instead: STATIC PUBLIC o AS Object[] STATIC PUBLIC a AS Integer[] STATIC PUBLIC b AS Integer[] PUBLIC SUB Button2_Click() DIM grid AS Integer grid = 20 o = NEW Object[](grid) b = NEW Integer[grid, grid] a = NEW Integer[grid, grid] o[0] = NEW Button(ME) END As you can see, I just moved two lines down, nothing else. > Thanks in advance, Thank you. Regards, Piero From nando_f at ...951... Tue May 24 01:38:56 2005 From: nando_f at ...951... (nando) Date: Mon, 23 May 2005 19:38:56 -0400 Subject: [Gambas-user] Stack Size Question In-Reply-To: <4291DADD.4040301@...1...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> <200505231421.15688.gambas@...1...> <4291DADD.4040301@...1...> Message-ID: <20050523233600.M16782@...951...> Benoit, Thank you for your replies. I will do my best for examples/source for problems. How deep is the Stack? Can it be changed? At runtime, can I find out how much is used? -Fernando From listas at ...949... Tue May 24 01:43:41 2005 From: listas at ...949... (Eduardo Ruiz) Date: Tue, 24 May 2005 01:43:41 +0200 Subject: [Gambas-user] IDE Suggestion or bug Message-ID: <42926AAD.9000402@...949...> I don't know if this can be a bug or not, but, if you have a button for instance with a event code and after you change the name of the button, this button lose the event. For instance: PUBLIC SUB Button1_Click() ConfClientes.Close END After I finish I realised that this button had a generic name, I changed the name and after this the code didn't work because there wasn't any button with this name. It is possible to change the name in the code when you change the name of a button, checkbox, ... Thanks From nando_f at ...951... Tue May 24 06:51:31 2005 From: nando_f at ...951... (nando) Date: Tue, 24 May 2005 00:51:31 -0400 Subject: [Gambas-user] DATE data type In-Reply-To: <20050523233600.M16782@...951...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> <200505231421.15688.gambas@...1...> <4291DADD.4040301@...1...> <20050523233600.M16782@...951...> Message-ID: <20050524044753.M5214@...951...> Benoit, Since I am converting from VB, I have many files that use the 8B DATE/TIME data format. For current software to run simultaneously to Gambas software, I need to convert the VB format to Gambas. Can you describe the Integer+Integer format of the DATE datatype in Gambas so I can proceed? Thanks in advance -Fernando From matthias-laur at ...978... Tue May 24 08:06:17 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Tue, 24 May 2005 08:06:17 +0200 Subject: AW: [Gambas-user] IDE Suggestion or bug In-Reply-To: <42926AAD.9000402@...949...> Message-ID: <0MKwtQ-1DaSYQ1gdg-0001FV@...979...> Hi, I don't think that this is a bug. You must change the name of the sub to NewName_Click() and it works. Regards, Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Eduardo Ruiz Gesendet: Dienstag, 24. Mai 2005 01:44 An: gambas-user at lists.sourceforge.net Betreff: [Gambas-user] IDE Suggestion or bug I don't know if this can be a bug or not, but, if you have a button for instance with a event code and after you change the name of the button, this button lose the event. For instance: PUBLIC SUB Button1_Click() ConfClientes.Close END After I finish I realised that this button had a generic name, I changed the name and after this the code didn't work because there wasn't any button with this name. It is possible to change the name in the code when you change the name of a button, checkbox, ... Thanks ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From matthias-laur at ...978... Tue May 24 08:27:56 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Tue, 24 May 2005 08:27:56 +0200 Subject: [Gambas-user] Form_keyPress Message-ID: <0MKwh2-1DaStN1p1n-0004cd@...979...> Hi, I want to make some hotkeys for a projekt. So I try to code it with Public sub Form_KeyPress () If key.code = ... then Something happens But it works only if the form has no buttons and other controls. If the form has other controls, one of the controls has the focus and it don't works. Is there another way to make some hotkeys for a project? Regards, Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From oreip at ...1... Tue May 24 10:21:32 2005 From: oreip at ...1... (PV) Date: Tue, 24 May 2005 10:21:32 +0200 Subject: [Gambas-user] Stack Size Question In-Reply-To: <20050523233600.M16782@...951...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> <200505231421.15688.gambas@...1...> <4291DADD.4040301@...1...> <20050523233600.M16782@...951...> Message-ID: <4292E40C.6050309@...1...> On 24/05/2005 01:38, nando wrote: > Benoit, > > Thank you for your replies. > I will do my best for examples/source for problems. > > How deep is the Stack? > Can it be changed? > At runtime, can I find out how much is used? Well, Benoit will of course give you more detailed and appropriate explanations, but in the meanwhile I can tell you what I discovered about the stack. Since I had a deeply recursive function, I used up all the stack space so I went around to see how this could be changed. I found out something interesting in main/gbx/gbx_stack.c, namely the STACK_size variable which is by default 16K. I increased it and recompiled gambas, and didn't run out of stack space anymore. Hope it helps. Ciao, Piero From gambas at ...1... Tue May 24 15:54:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 15:54:03 +0200 Subject: [Gambas-user] Another IDE and CONST oddity In-Reply-To: <20050512004641.M31127@...951...> References: <42821B65.60505@...221...> <42823122.3090803@...221...> <20050512004641.M31127@...951...> Message-ID: <200505241554.04226.gambas@...1...> On Thursday 12 May 2005 02:51, nando wrote: > Benoit, > > I have a module 'mod1' with > > PUBLIC CONST my_const AS INTEGER = 300 > > > When I code in a class, for example... > > > x = y * mod1.my_const > > When I type the 'period' after mod1, > the list of objects displays in a small list, > the constant does not show in the list. > > -Fernando > OK. It will be fixed in the next version. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 16:42:58 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 16:42:58 +0200 Subject: [Gambas-user] IDE problems In-Reply-To: <4291DADD.4040301@...1...> References: <428D8CA7.8070105@...776...> <200505231421.15688.gambas@...1...> <4291DADD.4040301@...1...> Message-ID: <200505241642.58850.gambas@...1...> On Monday 23 May 2005 15:30, PV wrote: > On 23/05/2005 14:21, Benoit Minisini wrote: > > Thanks for the bug reports, but pleeeeaaase.... Can you post some code, > > or better a complete project ? Because: > > > > 1) English is often not our language, and so we can misunderstand > > ourself. > > > > 2) You may have found a bug that depends on the project context. > > > > So, by sending a project (complete, or just stripped to the buggy code), > > it will be far easier for me fixing the problem! > > Actually it's as simple as follows. > > This does not work: > > STATIC PUBLIC o AS Object[] > STATIC PUBLIC a AS Integer[] > STATIC PUBLIC b AS Integer[] > > PUBLIC SUB Button2_Click() > > DIM grid AS Integer > > grid = 20 > > b = NEW Integer[grid, grid] > a = NEW Integer[grid, grid] > > o = NEW Object[](grid) > > o[0] = NEW Button(ME) > > END > > When I press Button2 I get the "Bad number of dimensions" error. > > This works instead: > > STATIC PUBLIC o AS Object[] > STATIC PUBLIC a AS Integer[] > STATIC PUBLIC b AS Integer[] > > PUBLIC SUB Button2_Click() > > DIM grid AS Integer > > grid = 20 > > o = NEW Object[](grid) > > b = NEW Integer[grid, grid] > a = NEW Integer[grid, grid] > > o[0] = NEW Button(ME) > > END > > As you can see, I just moved two lines down, nothing else. > > > Thanks in advance, > > Thank you. > > Regards, > Piero > > Oops... It was a mistake in the syntax declaration of the '_new' method of the Object[] class. It will be fixed in the next version! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 16:50:32 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 16:50:32 +0200 Subject: [Gambas-user] DATE data type In-Reply-To: <20050524044753.M5214@...951...> References: <428D8CA7.8070105@...776...> <20050523233600.M16782@...951...> <20050524044753.M5214@...951...> Message-ID: <200505241650.33044.gambas@...1...> On Tuesday 24 May 2005 06:51, nando wrote: > Benoit, > > Since I am converting from VB, > I have many files that use the 8B DATE/TIME data format. > > For current software to run simultaneously to Gambas software, > I need to convert the VB format to Gambas. > > Can you describe the Integer+Integer format > of the DATE datatype in Gambas so I can proceed? > > Thanks in advance > -Fernando > Fernando, please start a new thread each time you are asking a new question. Do not answer to an already existing thread! Now the date/time format. I don't know what format use VB internally. But if you want to convert date/time from VB (or any other source) to gambas, the better is having the year, month, day, hour, minute and second, and using the Gambas Date() function to make the date/time value. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 16:55:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 16:55:05 +0200 Subject: [Gambas-user] Stack Size Question In-Reply-To: <4292E40C.6050309@...1...> References: <428D8CA7.8070105@...776...> <20050523233600.M16782@...951...> <4292E40C.6050309@...1...> Message-ID: <200505241655.06123.gambas@...1...> On Tuesday 24 May 2005 10:21, PV wrote: > On 24/05/2005 01:38, nando wrote: > > Benoit, > > > > Thank you for your replies. > > I will do my best for examples/source for problems. > > > > How deep is the Stack? > > Can it be changed? > > At runtime, can I find out how much is used? > > Well, Benoit will of course give you more detailed and appropriate > explanations, but in the meanwhile I can tell you what I discovered about > the stack. > > Since I had a deeply recursive function, I used up all the stack space so I > went around to see how this could be changed. > > I found out something interesting in main/gbx/gbx_stack.c, namely the > STACK_size variable which is by default 16K. > > I increased it and recompiled gambas, and didn't run out of stack space > anymore. > > Hope it helps. > > Ciao, > Piero > In the past, you was able to configure this value from the IDE. I removed that, with the aim of having a stack that can grow dynamically. But I never had the time to implement this feature, so the stack still has a fixed size :-( I note that in the TODO list... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 17:18:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 17:18:39 +0200 Subject: [Gambas-user] Form_keyPress In-Reply-To: <0MKwh2-1DaStN1p1n-0004cd@...979...> References: <0MKwh2-1DaStN1p1n-0004cd@...979...> Message-ID: <200505241718.43194.gambas@...1...> On Tuesday 24 May 2005 08:27, Matthias Laur wrote: > Hi, > > I want to make some hotkeys for a projekt. So I try to code it with > > > > Public sub Form_KeyPress () > > If key.code = ... then > > Something happens > > > > But it works only if the form has no buttons and other controls. If the > form has other controls, one of the controls has the focus and it don't > works. Is there another way to make some hotkeys for a project? > > > > Regards, > > Matthias There is no interface in the QT component to globally intercept key events yet, but there is a trick: If you have a menu in your form, its keyboard shortcuts are globally managed. So you can add an hidden menu to your form to solve your problem. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 17:54:11 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 17:54:11 +0200 Subject: [Gambas-user] process.id In-Reply-To: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> Message-ID: <200505241754.11748.gambas@...1...> On Thursday 19 May 2005 10:31, Matthias Laur wrote: > Hello, > > I want to store a mpg file from s-video-in for 10 sec with the following > command > > > > Shell "cat /dev/video0 > myfile.mpg" AS myprocess > > Wait (10) > > myprocess.kill > > > > But after then the process was still alive. > > > > Then I try: > > > > Shell "kill " & myprocess.id > > > > With no access. The process was still alive. > > > > Then I saw that the number that myprocess.id returns was 1 lower then the > number that the command "fuser /dev/video0" in the bash returns. > > > > So at last I try: > > > > Shell "kill " & cstr(myprocess.id +1) > > > > And it works. Can you tell me why? > > I'm using Gambas 1.0.6 > > > > Greets from Hamburg > > Matthias I got it. I am stupid... If you use the SHELL instruction, then the command is executed inside a shell, so Process.Id returns the pid of the shell, not the pid of the executed command! But I don't understand why killing the shell won't kill the command. Maybe the shell ignores the signal. I will investigate... :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 24 18:02:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 May 2005 18:02:24 +0200 Subject: [Gambas-user] process.id In-Reply-To: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> Message-ID: <200505241802.24823.gambas@...1...> On Thursday 19 May 2005 10:31, Matthias Laur wrote: > Hello, > > I want to store a mpg file from s-video-in for 10 sec with the following > command > > > > Shell "cat /dev/video0 > myfile.mpg" AS myprocess > > Wait (10) > > myprocess.kill > > > > But after then the process was still alive. > > > > Then I try: > > > > Shell "kill " & myprocess.id > > > > With no access. The process was still alive. > > > > Then I saw that the number that myprocess.id returns was 1 lower then the > number that the command "fuser /dev/video0" in the bash returns. > > > > So at last I try: > > > > Shell "kill " & cstr(myprocess.id +1) > > > > And it works. Can you tell me why? > > I'm using Gambas 1.0.6 > > > > Greets from Hamburg > > Matthias I did that, and it works: (development version) PUBLIC SUB Main() DIM hProcess AS Process 'hProcess = EXEC ["ls", "-laR", "/"] hProcess = SHELL "ls -laR /" FOR READ WAIT 2 PRINT "*************** KILL" hProcess.Kill WAIT 5 END PUBLIC SUB Process_Read() DIM sStr AS String READ #LAST, sStr, Lof(LAST) PRINT sStr; END The shell and the 'ls' command run during 2 seconds, and then they are stopped by the Kill method. Tell me if it works with your 'cat /dev/video...' Regards, -- Benoit Minisini mailto:gambas at ...1... From nando_f at ...951... Tue May 24 19:38:04 2005 From: nando_f at ...951... (nando) Date: Tue, 24 May 2005 13:38:04 -0400 Subject: [Gambas-user] New Thread Help In-Reply-To: <20050524044753.M5214@...951...> References: <428D8CA7.8070105@...776...> <20050522011619.M69988@...951...> <42902EFE.5000506@...1...> <200505231421.15688.gambas@...1...> <4291DADD.4040301@...1...> <20050523233600.M16782@...951...> <20050524044753.M5214@...951...> Message-ID: <20050524173403.M57807@...951...> Benoit, I was thinking the Subject defined the thread. Please tell me what makes a new thread and I will reassess how I respond. -Fernando From lordheavy at ...512... Tue May 24 20:04:07 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Tue, 24 May 2005 20:04:07 +0200 Subject: [Gambas-user] New Thread Help In-Reply-To: <20050524173403.M57807@...951...> References: <428D8CA7.8070105@...776...> <20050524044753.M5214@...951...> <20050524173403.M57807@...951...> Message-ID: <200505242004.07725.lordheavy@...512...> Le Mardi 24 Mai 2005 19:38, nando a ?crit?: > Benoit, > > I was thinking the Subject defined the thread. > Please tell me what makes a new thread and > I will reassess how I respond. > > -Fernando > Perhaps you're using "reply" instead of "new message" ? Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From christian at ...980... Tue May 24 23:01:06 2005 From: christian at ...980... (Christian E. =?iso-8859-1?q?L=F3pez?= Finnberg) Date: Tue, 24 May 2005 22:01:06 +0100 Subject: [Gambas-user] New Thread Help In-Reply-To: <20050524173403.M57807@...951...> References: <428D8CA7.8070105@...776...> <20050524044753.M5214@...951...> <20050524173403.M57807@...951...> Message-ID: <200505242201.10799.christian@...980...> When you reply a mail, it creates a field in the header part of the mail like this: In-Reply-To: <20050524173403.M57807 at ...951...> This is what (I think) all mail clients use to threads mails. For that reason, simply changing the subject mail does not work. ;-) El Martes, 24 de Mayo de 2005 18:38, nando escribi?: > Benoit, > > I was thinking the Subject defined the thread. > Please tell me what makes a new thread and > I will reassess how I respond. > > -Fernando > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Saludos, Christian E. L?pez Finnberg christian at ...980... Las Palmas de Gran Canaria. From eilert-sprachen at ...221... Wed May 25 14:01:39 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 25 May 2005 14:01:39 +0200 Subject: [Gambas-user] Bad string conversion for Euro sign Message-ID: <42946923.5060003@...221...> Hi, A strange error: When I read in a Euro sign into a TextArea and then try t$ = Conv$(TextArea.Text, Desktop.Charset, "ISO-8859-1") I get the error "Bad string conversion". I found out that any character typed in with AltGr results in this error. Any ideas? Rolf From gambas at ...1... Wed May 25 14:51:33 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 May 2005 14:51:33 +0200 Subject: [Gambas-user] Bad string conversion for Euro sign In-Reply-To: <42946923.5060003@...221...> References: <42946923.5060003@...221...> Message-ID: <200505251451.34420.gambas@...1...> On Wednesday 25 May 2005 14:01, Eilert wrote: > Hi, > > A strange error: When I read in a Euro sign into a TextArea and then try > > t$ = Conv$(TextArea.Text, Desktop.Charset, "ISO-8859-1") > > I get the error > > "Bad string conversion". > > I found out that any character typed in with AltGr results in this error. > > Any ideas? > > Rolf > The euro sign does not exist in ISO-8859-1, but in ISO-8859-15. Regards, -- Benoit Minisini mailto:gambas at ...1... From appsdev at ...966... Wed May 25 18:38:14 2005 From: appsdev at ...966... (A Person) Date: Wed, 25 May 2005 14:08:14 -0230 Subject: [Gambas-user] Buttons and Ampersands (&) Message-ID: <4294A9F6.2070906@...966...> Wednesday, 25 May 2005 Good Day . . . I have got a problem with ampersands. I can't get rid of them. I created a half dozen buttons with text and ampersands. Note: I assume that ampersands are still hot key enablers. I wanted to reorganise so I removed all the ampersands from the button text properties. I ran the program and the ampersands were back. All of them! The text properties show no ampersands. I deleted a button and substituted another with the same name and text. The ampersand was back! I renamed the text property on a button and no ampersand. The button was retexted to the old text and back came the ampersand. Using find files and folders/sub folders, I searched for the "&" character in all files and folders. The usual suspects were found but no button text examples. I deleted the executable. I deleted the associated file in .gambas but no success. The ampersands keep returning. How do I get rid of them? Thank You From nando_f at ...951... Wed May 25 21:38:40 2005 From: nando_f at ...951... (nando) Date: Wed, 25 May 2005 15:38:40 -0400 Subject: [Gambas-user] List Box Limit Question Message-ID: <20050525193722.M13560@...951...> In VB5, the total number of lines in a ListBox is 20,000 lines. What is the limit in Gambas? -Fernando From fidojones at ...805... Wed May 25 22:20:27 2005 From: fidojones at ...805... (Lorenzo Tejera) Date: Wed, 25 May 2005 22:20:27 +0200 (CEST) Subject: [Gambas-user] Buttons and Ampersands (&) In-Reply-To: <4294A9F6.2070906@...966...> References: <4294A9F6.2070906@...966...> Message-ID: <56606.85.155.33.88.1117052427.squirrel@...962...> I have the same problem, I think is a problem in kde 3.4 it assing automatically..... > Wednesday, 25 May 2005 > > > Good Day . . . > > > I have got a problem with ampersands. I can't get rid of them. I created > a half dozen buttons with text and ampersands. > > Note: I assume that ampersands are still hot key enablers. > > > I wanted to reorganise so I removed all the ampersands from the button > text properties. I ran the program and the ampersands were back. All of From matthias-laur at ...978... Wed May 25 22:25:40 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Wed, 25 May 2005 22:25:40 +0200 Subject: [Gambas-user] Form_keyPress In-Reply-To: <200505241718.43194.gambas@...1...> References: <0MKwh2-1DaStN1p1n-0004cd@...979...> <200505241718.43194.gambas@...1...> Message-ID: <200505252225.40558.matthias-laur@...978...> Am Dienstag, 24. Mai 2005 17:18 schrieb Benoit Minisini: hi Benoit, many thanks. That works very nice :-) Matthias > There is no interface in the QT component to globally intercept key events > yet, but there is a trick: > > If you have a menu in your form, its keyboard shortcuts are globally > managed. So you can add an hidden menu to your form to solve your problem. > > Regards, From matthias-laur at ...978... Wed May 25 22:32:59 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Wed, 25 May 2005 22:32:59 +0200 Subject: [Gambas-user] process.id In-Reply-To: <200505241802.24823.gambas@...1...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> <200505241802.24823.gambas@...1...> Message-ID: <200505252232.59973.matthias-laur@...978...> Hi, now I try it with the EXEC commands I want to make cat /dev/video0 > /home/.../.../my.mpg and type this code: EXEC ["cat","/dev/video0",">","/home/.../.../my.mpg"] for read as myprocess but it don't work. Please tell me the right exec code for this shell commands thanks and regards, Matthias > > I did that, and it works: (development version) > > PUBLIC SUB Main() > > DIM hProcess AS Process > > 'hProcess = EXEC ["ls", "-laR", "/"] > hProcess = SHELL "ls -laR /" FOR READ > > WAIT 2 > > PRINT "*************** KILL" > hProcess.Kill > > WAIT 5 > > END > > PUBLIC SUB Process_Read() > > DIM sStr AS String > > READ #LAST, sStr, Lof(LAST) > PRINT sStr; > > END > > The shell and the 'ls' command run during 2 seconds, and then they are > stopped by the Kill method. > > Tell me if it works with your 'cat /dev/video...' > > Regards, From nando_f at ...951... Thu May 26 08:02:48 2005 From: nando_f at ...951... (nando) Date: Thu, 26 May 2005 02:02:48 -0400 Subject: [Gambas-user] TRY Syntax Error Message-ID: <20050526060100.M39353@...951...> Benoit, If my_boolean_var = TRUE THEN TRY CLOSE #hfile produces a Syntax Error -Fernando From rolf.frogs at ...221... Thu May 26 10:02:49 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Thu, 26 May 2005 10:02:49 +0200 Subject: [Gambas-user] process.id In-Reply-To: <200505252232.59973.matthias-laur@...978...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> <200505241802.24823.gambas@...1...> <200505252232.59973.matthias-laur@...978...> Message-ID: <200505261002.53726.rolf.frogs@...221...> Hi Matthias Laur: > cat /dev/video0 > /home/.../.../my.mpg I think, you tested the command in your shell and it works?! > and type this code: > > EXEC ["cat","/dev/video0",">","/home/.../.../my.mpg"] for read as myprocess You are shure, that the three points in your path works? This is usually an alias (mostly in SuSE), which might not be set in a shell which is forked from gambas. Greetings Rolf Schmidt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From matthias-laur at ...978... Thu May 26 10:13:40 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Thu, 26 May 2005 10:13:40 +0200 Subject: AW: [Gambas-user] process.id In-Reply-To: <200505261002.53726.rolf.frogs@...221...> Message-ID: <0ML2Dk-1DbDUs2e3X-0004EQ@...979...> Hi Rolf, the three point are for the name of the directory. I want to make it a little bit shorter for the mailing list. The first three points = tcs Second three points = aufnahmen :-) Regards, Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Rolf Schmidt Gesendet: Donnerstag, 26. Mai 2005 10:03 An: gambas-user at lists.sourceforge.net Betreff: Re: [Gambas-user] process.id Hi Matthias Laur: > cat /dev/video0 > /home/.../.../my.mpg I think, you tested the command in your shell and it works?! > and type this code: > > EXEC ["cat","/dev/video0",">","/home/.../.../my.mpg"] for read as myprocess You are shure, that the three points in your path works? This is usually an alias (mostly in SuSE), which might not be set in a shell which is forked from gambas. Greetings Rolf Schmidt From gambas at ...1... Thu May 26 13:00:42 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 May 2005 13:00:42 +0200 Subject: [Gambas-user] process.id In-Reply-To: <200505252232.59973.matthias-laur@...978...> References: <0ML2Dk-1DYgQv1WYP-0000nd@...979...> <200505241802.24823.gambas@...1...> <200505252232.59973.matthias-laur@...978...> Message-ID: <200505261300.42385.gambas@...1...> On Wednesday 25 May 2005 22:32, Matthias Laur wrote: > Hi, > > now I try it with the EXEC commands > > I want to make > > cat /dev/video0 > /home/.../.../my.mpg > > and type this code: > > EXEC ["cat","/dev/video0",">","/home/.../.../my.mpg"] for read as myprocess > > but it don't work. Please tell me the right exec code for this shell > commands > Arrg! The 'cat /dev/video > ...' is a command that is *interpreted* by the shell. When you use EXEC, you don't have any shell, you just call the command, and give it parameters. You have to get the output of EXEC [ "cat", "/dev/video0" ] and put it in the destination file with Gambas. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 26 13:01:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 May 2005 13:01:23 +0200 Subject: [Gambas-user] List Box Limit Question In-Reply-To: <20050525193722.M13560@...951...> References: <20050525193722.M13560@...951...> Message-ID: <200505261301.23265.gambas@...1...> On Wednesday 25 May 2005 21:38, nando wrote: > In VB5, the total number of lines in a ListBox is 20,000 lines. > > What is the limit in Gambas? > > -Fernando > It depends on QT. I don't think there is a limit... Just try and tell me :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 26 13:14:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 May 2005 13:14:59 +0200 Subject: [Gambas-user] TRY Syntax Error In-Reply-To: <20050526060100.M39353@...951...> References: <20050526060100.M39353@...951...> Message-ID: <200505261314.59871.gambas@...1...> On Thursday 26 May 2005 08:02, nando wrote: > Benoit, > > If my_boolean_var = TRUE THEN TRY CLOSE #hfile > > produces a Syntax Error > > -Fernando > Yes! I never noticed... I will fix it in the next development version. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 26 13:19:11 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 May 2005 13:19:11 +0200 Subject: [Gambas-user] Re: Gambas2-1.9.6 doesn't show forms, classes, modules, etc. In-Reply-To: <428AE137.1020705@...726...> References: <20050428031051.786DF13388@...773...> <428AE137.1020705@...726...> Message-ID: <200505261319.11181.gambas@...1...> On Wednesday 18 May 2005 08:31, P at ...727...@N wrote: > >> Sorry, forgot to attach the screenshot. > >> Here's the one > >> ------------------------------- > >> I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) > >> Every projects I've opened, the project window only show directories > >> inside the project dirs. > >> I attached the screenshot. > >> Any ideas why this happens? and the solution? > >> The project was made in Gambas-1.0.3 and everything is fine. > >> > >> Thank's in advance, > >> salam > >> -iggy > > I sent this mail last month. Apparently this all because I put the > project in a Fat32 fs. This does not happens in gambas1. > > salam > -iggy > I fixed the problem. Now the IDE displays executable files, unless its extension is '.gambas'. Regards, -- Benoit Minisini mailto:gambas at ...1... From matthias-laur at ...978... Thu May 26 13:26:35 2005 From: matthias-laur at ...978... (Matthias Laur) Date: Thu, 26 May 2005 13:26:35 +0200 Subject: AW: [Gambas-user] process.id In-Reply-To: <200505261300.42385.gambas@...1...> Message-ID: <0ML25U-1DbGVZ2Jiy-0004sB@...979...> You have to get the output of EXEC [ "cat", "/dev/video0" ] and put it in the destination file with Gambas. Hi Benoit, how can I put it in the destination file with Gambas? Regards, Matthias From lordheavy at ...512... Thu May 26 14:07:11 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 26 May 2005 14:07:11 +0200 Subject: [Gambas-user] ptit prob dans main.cpp/main.h composant qt Message-ID: <200505261407.12532.lordheavy@...512...> dans main.cpp tu fait : #define __MAIN_CPP alors que dans main.h : #ifndef __MAIN_C etrange non ? :) Amicalement, -- Laurent Carlier jabber : LordHeavy at ...943... From eilert-sprachen at ...221... Thu May 26 15:44:18 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 26 May 2005 15:44:18 +0200 Subject: [Gambas-user] Bad string conversion for Euro sign In-Reply-To: <200505251451.34420.gambas@...1...> References: <42946923.5060003@...221...> <200505251451.34420.gambas@...1...> Message-ID: <4295D2B2.7090502@...221...> Benoit Minisini schrieb: > On Wednesday 25 May 2005 14:01, Eilert wrote: > >>Hi, >> >>A strange error: When I read in a Euro sign into a TextArea and then try >> >>t$ = Conv$(TextArea.Text, Desktop.Charset, "ISO-8859-1") >> >>I get the error >> >>"Bad string conversion". >> >>I found out that any character typed in with AltGr results in this error. >> >>Any ideas? >> >>Rolf >> > > > The euro sign does not exist in ISO-8859-1, but in ISO-8859-15. > > Regards, > Arrgh - forgot that extension, thanks. Now it runs without problems :-) Rolf From gambas at ...1... Thu May 26 18:44:02 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 May 2005 18:44:02 +0200 Subject: [Gambas-user] Screenshot of the next Gambas documentation system Message-ID: <200505261844.05980.gambas@...1...> Here is a screenshot of the next Gambas documentation system. This system is written in Gambas, and will allow easy "real-time" translation. Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: capture.png Type: image/png Size: 101659 bytes Desc: not available URL: From picander78 at ...325... Thu May 26 20:58:18 2005 From: picander78 at ...325... (Marco Gusy) Date: Thu, 26 May 2005 18:58:18 +0000 Subject: [Gambas-user] Screenshot of the next Gambas documentation system In-Reply-To: <200505261844.05980.gambas@...1...> References: <200505261844.05980.gambas@...1...> Message-ID: <200505261858.18245.picander78@...325...> Alle 16:44, gioved? 26 maggio 2005, Benoit Minisini ha scritto: > Here is a screenshot of the next Gambas documentation system. > > This system is written in Gambas, and will allow easy "real-time" > translation. > > Regards, 8-O 8-O 8-O 8-O Great! Really great! I think the weakest parts of gambas was the documentation. This will make it much more readable and understandable. A+++++++ From lordheavy at ...512... Thu May 26 19:02:58 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 26 May 2005 19:02:58 +0200 Subject: [Gambas-user] Screenshot of the next Gambas documentation system In-Reply-To: <200505261844.05980.gambas@...1...> References: <200505261844.05980.gambas@...1...> Message-ID: <200505261902.58791.lordheavy@...512...> Le Jeudi 26 Mai 2005 18:44, Benoit Minisini a ?crit?: > Here is a screenshot of the next Gambas documentation system. > > This system is written in Gambas, and will allow easy "real-time" > translation. > > Regards, Great ! and translations will come soon ! I know people who waits french translations ! Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From w at ...731... Thu May 26 19:37:31 2005 From: w at ...731... (Vincenzo Ing. Virgilio) Date: Thu, 26 May 2005 19:37:31 +0200 Subject: [Gambas-user] Screenshot of the next Gambas documentation system In-Reply-To: <20050526164705.AA08B12FC8@...773...> References: <20050526164705.AA08B12FC8@...773...> Message-ID: <4296095B.8050000@...731...> Your work is always great! What about a test bed before starting the public one? Did you see the video about you of the conference in Palermo? Vincenzo Virgilio From sourceforge-raindog2 at ...94... Thu May 26 20:19:32 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 26 May 2005 14:19:32 -0400 Subject: [Gambas-user] Screenshot of the next Gambas documentation system In-Reply-To: <4296095B.8050000@...731...> References: <20050526164705.AA08B12FC8@...773...> <4296095B.8050000@...731...> Message-ID: <200505261419.32153.sourceforge-raindog2@...94...> On Thursday 26 May 2005 13:37, Vincenzo Ing. Virgilio wrote: > Your work is always great! > What about a test bed before starting the public one? I'm working on getting that set up. Unfortunately, I'm under a deadline of tomorrow on a big project and won't get to it until tomorrow night at least. It looks great, Benoit. I can't believe you implemented a wiki in Gambas... Rob From gambasfr at ...11... Thu May 26 23:08:56 2005 From: gambasfr at ...11... (fabien) Date: Thu, 26 May 2005 23:08:56 +0200 Subject: [Gambas-user] Screenshot of the next Gambas documentation system In-Reply-To: <200505261844.05980.gambas@...1...> References: <200505261844.05980.gambas@...1...> Message-ID: <200505262308.56256.gambasfr@...11...> Le Jeudi 26 Mai 2005 18:44, Benoit Minisini a ?crit?: > Here is a screenshot of the next Gambas documentation system. > > This system is written in Gambas, and will allow easy "real-time" > translation. > > Regards, HI Benoit, It's really great ... and more easy to read. Do you put the source of this cgi somewhere ? Fabien From daniel.campos at ...338... Sun May 29 13:34:14 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Sun, 29 May 2005 13:34:14 +0200 Subject: [Gambas-user] Gambas programs recognized as executables Message-ID: <4299A8B6.7000506@...338...> Hi: A Gambas program can be recognized by the Linux kernel as an executable, if the binfmt_misc module is enabled (this is the normal thing in all common modern Linux distributions). To test it, do at root in a console: echo ':Gambas:M::# Gambas Project File::/usr/bin/gbx:' > /proc/sys/fs/binfmt_misc/register for gambas, or: echo ':Gambas:M::# Gambas Project File::/usr/bin/gbx2:' > /proc/sys/fs/binfmt_misc/register for gambas2. Then, compile a gambas program, edit it (vi is a good option), and remove all from the beggining of the file to the phrase: "# Gambas Project File", so the first line in the gambas executable is just "# Gambas Project File". Then, try to execute the program. I've tested it with little programs and they run OK, however big programs like the Gambas ide, seems to fail, as it seems to lose some information about paths... Regards, D. Campos From sbungay at ...981... Mon May 30 00:22:49 2005 From: sbungay at ...981... (sbungay) Date: Sun, 29 May 2005 18:22:49 -0400 Subject: [Gambas-user] Adding Classes to Collections... we can't do this? Message-ID: <429A40B9.403@...981...> OK, I'm coming from the VB 6.0 world and I know I know this is not VB... I have a question anyway about adding classes to collections. Um.. why can't we do this? So far al I can do is add each item in the class to the collection... but that is a royal pain in the butt. What I want to do is something like this. '*********** BEGIN SAMPLE CODE *************************************** '*** This does not work... Dim MyCollection as New Collection ' The Class has two integer values in it.. X and Y (just for example) Dim MyClass as XYClass MyClass = new XYClass With MyClass .X = 10 .Y = 10 End With MyCollection.Add(MyClass) MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" '*** This DOES work but is kludgy Dim MyCollection as New Collection ' The Class has two integer values in it.. X and Y (just for example) Dim MyClass as XYClass MyClass = new XYClass With MyClass .X = 10 .Y = 10 End With MyCollection.Add(MyClass.X, MyClass.Y) MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" '*********** END SAMPLE CODE *************************************** Now froma programming standpoint I like the first way better because I simply add the created class to the collection. Wonderful, less typing for me. Does the problem stem from collection only being able to hold Variant types? From gambas at ...1... Mon May 30 15:23:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 30 May 2005 15:23:41 +0200 Subject: [Gambas-user] Adding Classes to Collections... we can't do this? In-Reply-To: <429A40B9.403@...981...> References: <429A40B9.403@...981...> Message-ID: <200505301523.41260.gambas@...1...> On Monday 30 May 2005 00:22, sbungay wrote: > OK, I'm coming from the VB 6.0 world and I know I know this is not > VB... I have a question anyway about adding classes to collections. Um.. > why can't we do this? So far al I can do is add each item in the class > to the collection... but that is a royal pain in the butt. What I want > to do is something like this. > > '*********** BEGIN SAMPLE CODE *************************************** > '*** This does not work... > Dim MyCollection as New Collection > > ' The Class has two integer values in it.. X and Y (just for example) > Dim MyClass as XYClass > > MyClass = new XYClass > > With MyClass > .X = 10 > .Y = 10 > End With > > MyCollection.Add(MyClass) > > MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" > > > '*** This DOES work but is kludgy > Dim MyCollection as New Collection > > ' The Class has two integer values in it.. X and Y (just for example) > Dim MyClass as XYClass > > MyClass = new XYClass > > With MyClass > .X = 10 > .Y = 10 > End With > > MyCollection.Add(MyClass.X, MyClass.Y) > > MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" > > > '*********** END SAMPLE CODE *************************************** > > Now froma programming standpoint I like the first way better because > I simply add the created class to the collection. Wonderful, less > typing for me. > Does the problem stem from collection only being able to hold Variant > types? > Gambas Collections are not exactly like in VB. The first argument of Add() is the key, the second is the value. They are both mandatory, contrary to VB. If you don't need a key, then use an array instead of a Collection: --> Dim MyCollection as New Object[] Regards, -- Benoit Minisini mailto:gambas at ...1... From meadmaker1977 at ...43... Mon May 30 20:42:17 2005 From: meadmaker1977 at ...43... (Michael Beale) Date: Mon, 30 May 2005 11:42:17 -0700 (PDT) Subject: [Gambas-user] Checkbox on Change Event Message-ID: <20050530184217.15061.qmail@...982...> Is there a way to get an event to fire on a checkbox when the value is changed? Thanks Mike B __________________________________ Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html From lordheavy at ...512... Mon May 30 20:56:57 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 30 May 2005 20:56:57 +0200 Subject: [Gambas-user] Checkbox on Change Event In-Reply-To: <20050530184217.15061.qmail@...982...> References: <20050530184217.15061.qmail@...982...> Message-ID: <200505302056.58529.lordheavy@...512...> Le Lundi 30 Mai 2005 20:42, Michael Beale a ?crit?: > Is there a way to get an event to fire on a checkbox > when the value is changed? Thanks > > Mike B From sbungay at ...981... Mon May 30 21:56:05 2005 From: sbungay at ...981... (sbungay) Date: Mon, 30 May 2005 15:56:05 -0400 Subject: [Gambas-user] Adding Classes to Collections... we can't do this? In-Reply-To: <200505301523.41260.gambas@...1...> References: <429A40B9.403@...981...> <200505301523.41260.gambas@...1...> Message-ID: <429B6FD5.2060202@...981...> Ahhh OK. Will try that and see. I prefer collections over arraya... especially because of the unique key feature.... very handy. Benoit Minisini wrote: > On Monday 30 May 2005 00:22, sbungay wrote: > >> OK, I'm coming from the VB 6.0 world and I know I know this is not >>VB... I have a question anyway about adding classes to collections. Um.. >>why can't we do this? So far al I can do is add each item in the class >>to the collection... but that is a royal pain in the butt. What I want >>to do is something like this. >> >>'*********** BEGIN SAMPLE CODE *************************************** >>'*** This does not work... >>Dim MyCollection as New Collection >> >>' The Class has two integer values in it.. X and Y (just for example) >>Dim MyClass as XYClass >> >>MyClass = new XYClass >> >>With MyClass >> .X = 10 >> .Y = 10 >>End With >> >>MyCollection.Add(MyClass) >> >>MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" >> >> >>'*** This DOES work but is kludgy >>Dim MyCollection as New Collection >> >>' The Class has two integer values in it.. X and Y (just for example) >>Dim MyClass as XYClass >> >>MyClass = new XYClass >> >>With MyClass >> .X = 10 >> .Y = 10 >>End With >> >>MyCollection.Add(MyClass.X, MyClass.Y) >> >>MyClass = NULL ' Is this equiv. to the VB "Set MyClass = Nothing" >> >> >>'*********** END SAMPLE CODE *************************************** >> >> Now froma programming standpoint I like the first way better because >>I simply add the created class to the collection. Wonderful, less >>typing for me. >> Does the problem stem from collection only being able to hold Variant >>types? >> > > > Gambas Collections are not exactly like in VB. The first argument of Add() is > the key, the second is the value. They are both mandatory, contrary to VB. > > If you don't need a key, then use an array instead of a Collection: > --> Dim MyCollection as New Object[] > > Regards, > From meadmaker1977 at ...43... Mon May 30 23:39:41 2005 From: meadmaker1977 at ...43... (Michael Beale) Date: Mon, 30 May 2005 14:39:41 -0700 (PDT) Subject: [Gambas-user] Re: Re: Checkbox on Change Event Message-ID: <20050530213941.58056.qmail@...983...> The click event is called everytime you click on the checkbox not just because it has been changed. If I click on the text next to the checkbox, it fires that event as well. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From budi.a.gusandi at ...626... Tue May 31 03:53:54 2005 From: budi.a.gusandi at ...626... (BUDI ARIEF GUSANDI) Date: Tue, 31 May 2005 08:53:54 +0700 Subject: [Gambas-user] Table View In-Reply-To: <20050530213941.58056.qmail@...983...> References: <20050530213941.58056.qmail@...983...> Message-ID: <315977788.20050531085354@...626...> Hi... How can i make table view component editable ? i learn from gambas database manager code, but hard to understand. Any help please Budi From akubukanspy at ...43... Tue May 31 07:49:09 2005 From: akubukanspy at ...43... (Yudi Astira) Date: Mon, 30 May 2005 22:49:09 -0700 (PDT) Subject: [Gambas-user] Table View In-Reply-To: 6667 Message-ID: <20050531054909.31177.qmail@...984...> Try to read manual :) BUDI ARIEF GUSANDI wrote:Hi... How can i make table view component editable ? i learn from gambas database manager code, but hard to understand. Any help please Budi ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Yudi Astira, http://www.hdteam.net __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Tue May 31 08:15:48 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 31 May 2005 08:15:48 +0200 Subject: [Gambas-user] Table View In-Reply-To: <315977788.20050531085354@...626...> References: <20050530213941.58056.qmail@...983...> <315977788.20050531085354@...626...> Message-ID: <429C0114.5020506@...221...> Hi, BUDI ARIEF GUSANDI schrieb: > Hi... > > How can i make table view component editable ? i learn from gambas database manager code, but hard to understand. Is that possible anyway? As far as I understand from all docs, the tableview is graphics-only, i. e. you cannot make it editable itself. Instead, you will have to use a TextBox to be shown above the tableview and on the cell you want to edit. This is how I did it in my current project. Rolf From budi.a.gusandi at ...626... Tue May 31 10:09:28 2005 From: budi.a.gusandi at ...626... (BUDI ARIEF GUSANDI) Date: Tue, 31 May 2005 15:09:28 +0700 Subject: [Gambas-user] Table View In-Reply-To: <429C0114.5020506@...221...> References: <20050530213941.58056.qmail@...983...> <315977788.20050531085354@...626...> <429C0114.5020506@...221...> Message-ID: <1482351925.20050531150928@...626...> An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Tue May 31 11:59:33 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 31 May 2005 11:59:33 +0200 Subject: [Gambas-user] SELECT CASE... without TO? Message-ID: <429C3585.1010202@...221...> Is it possible that the CASE instruction does not know a TO range? I had SELECT CASE Val(t$) CASE 1 TO 19 ... END SELECT and it says "End of line expected" for the line with the CASE. If TO is not implemented, what would you use here instead? Thanks for your help. Rolf From eilert-sprachen at ...221... Tue May 31 12:28:56 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 31 May 2005 12:28:56 +0200 Subject: [Gambas-user] Table View In-Reply-To: <1482351925.20050531150928@...626...> References: <20050530213941.58056.qmail@...983...> <315977788.20050531085354@...626...> <429C0114.5020506@...221...> <1482351925.20050531150928@...626...> Message-ID: <429C3C68.7060709@...221...> Well it's so simple: On the Form (wherever your TableView lives) draw a TextBox and make it INVISIBLE by default. Choose the Double-Click event of the TableView and let it make the TextBox appear: TextBox.Visible = True At the same time, the X, Y, Width and Height of the TextBox should be adapted to the values of the cell the user has clicked on. This cell is TableView.Current.Blabla In my example, "Eingabe" is the TextBox, tbd is the TableView. The more complicated thing is that you have to guard the input of the user and send the TextBox all over the TableView. To achieve that, I catch the KeyPressed of the TextBox and decide what to do (this one isn't complete yet). I include it for your information. PUBLIC SUB tbd_DblClick() IF tbd.Rows.Count = 0 THEN RETURN IF NOT TabelleAnzeigen THEN tbd.Column = 1 baum.Enabled = FALSE tbd.Current.EnsureVisible Eingabe.X = tbd.X + tbd.Current.X Eingabe.Y = tbd.Y + tbd.Current.Y Eingabe.Height = tbd.Current.Height Eingabe.Width = tbd.Current.Width Eingabe.Visible = TRUE Eingabe.SetFocus IF TabelleAnzeigen THEN Eingabe.Text = TabellenZelle(tblDaten[tbd.Row + 2], tbd.Column + 1) ELSE Eingabe.Text = rechts[tbd.Row] END IF END PUBLIC SUB Eingabe_KeyPress() DIM verschoben AS Boolean SELECT CASE Key.Code CASE key.Esc IF message.Question("Es wurden Daten ver??ndert.", "Speichern", "Verwerfen") = 1 THEN message.Info("Noch nicht implementiert") END IF Eingabe.Visible = FALSE tbd.Refresh baum.Enabled = TRUE CASE key.Tab STOP EVENT RETURN CASE key.Enter, key.Return IF TabelleAnzeigen THEN IF tbd.Column < tbd.Columns.Count - 1 THEN 'Wert ??bergeben an das Array tbd.Refresh INC tbd.Column verschoben = TRUE ELSE IF tbd.Row < tbd.Rows.Count THEN 'Wert ??bergeben an das Array tbd.Refresh INC tbd.Row tbd.Column = 0 verschoben = TRUE END IF END IF ELSE IF tbd.Row < tbd.Rows.Count THEN rechts[tbd.Row] = Eingabe.Text tbd.Refresh INC tbd.Row verschoben = TRUE END IF END IF CASE key.Down IF tbd.Row < tbd.Rows.Count THEN IF TabelleAnzeigen THEN 'Wert ??bergeben an das Array ELSE rechts[tbd.Row] = Eingabe.Text END IF tbd.Refresh INC tbd.Row verschoben = TRUE END IF CASE key.Up IF tbd.Row > 0 THEN IF TabelleAnzeigen THEN 'Wert ??bergeben an das Array ELSE rechts[tbd.Row] = Eingabe.Text END IF tbd.Refresh DEC tbd.Row verschoben = TRUE END IF END SELECT IF verschoben THEN IF NOT TabelleAnzeigen THEN tbd.Column = 1 tbd.Current.EnsureVisible Eingabe.X = tbd.X + tbd.Current.X Eingabe.Y = tbd.Y + tbd.Current.Y Eingabe.Height = tbd.Current.Height Eingabe.Width = tbd.Current.Width Eingabe.SetFocus IF TabelleAnzeigen THEN Eingabe.Text = TabellenZelle(tblDaten[tbd.Row + 2], tbd.Column + 1) ELSE Eingabe.Text = rechts[tbd.Row] END IF END IF END BUDI ARIEF GUSANDI schrieb: > > > Hello Eilert, > > > Tuesday, May 31, 2005, 1:15:48 PM, anda menulis : > > >> Hi, > > >> BUDI ARIEF GUSANDI schrieb: > >> > Hi... > >> > > >> > How can i make table view component editable ? i learn from > >> > gambas database manager code, but hard to understand. > > >> Is that possible anyway? As far as I understand from all docs, the > >> tableview is graphics-only, i. e. you cannot make it editable itself. > >> Instead, you will have to use a TextBox to be shown above the tableview > >> and on the cell you want to edit. > > >> This is how I did it in my current project. > > >> Rolf > > > Rolf, would you mind to send me some piece of your code (simple one) on > how to do that please ? > > > -- > > Best regards, > > BUDI mailto:budi at ...415... > > ------------------------------------------------------- This SF.Net > email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network > - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! > directly into your own Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue May 31 15:36:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 31 May 2005 15:36:38 +0200 Subject: [Gambas-user] Re: Re: Checkbox on Change Event In-Reply-To: <20050530213941.58056.qmail@...983...> References: <20050530213941.58056.qmail@...983...> Message-ID: <200505311536.38544.gambas@...1...> On Monday 30 May 2005 23:39, Michael Beale wrote: > The click event is called everytime you click on the > checkbox not just because it has been changed. If I > click on the text next to the checkbox, it fires that > event as well. > If you click on the text, the checkbox must change as if you click on the box. This is the case in the QT component. Doesn't it behave like that ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue May 31 15:40:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 31 May 2005 15:40:28 +0200 Subject: AW: [Gambas-user] process.id In-Reply-To: <0ML25U-1DbGVZ2Jiy-0004sB@...979...> References: <0ML25U-1DbGVZ2Jiy-0004sB@...979...> Message-ID: <200505311540.28588.gambas@...1...> On Thursday 26 May 2005 13:26, Matthias Laur wrote: > You have to get the output of EXEC [ "cat", "/dev/video0" ] and put it in > the > destination file with Gambas. > > Hi Benoit, > > how can I put it in the destination file with Gambas? > > Regards, > Matthias > > Open the destination file before running the process, and in the Process_Read event, get the output of the process and write it to the file: SUB Process_Read() DIM sBuffer AS String DIM iLen AS Integer iLen = Lof(LAST) READ #LAST, sBuffer, iLen WRITE #hFile, sBuffer, iLen END When the process is terminated, close the destination file. SUB Process_Kill() CLOSE #hFile END Regards, -- Benoit Minisini mailto:gambas at ...1... From bernieman at ...977... Tue May 31 17:13:39 2005 From: bernieman at ...977... (BernieMan) Date: Tue, 31 May 2005 17:13:39 +0200 Subject: [Gambas-user] Problem connecting to MySQL-DB at localhost Message-ID: <429C7F23.6000408@...977...> Hello All, I have a problem with Gambas and the connection to MySQL. In detail: I have a webserver with a MySQL-DB at localhost which is up and running. When I try to connect with Gambas to localhost (with the correct User and PW) I get the following error-message: -------------------------------------------------- Cannot open database Can'T connect to local MySQL Server through socket '/var/run/mysqld/mysqld.sock' (2) -------------------------------------------------- I would appreciate any suggestions thanx in advance bm From white_fox_ir at ...43... Tue May 31 18:17:10 2005 From: white_fox_ir at ...43... (White Fox) Date: Tue, 31 May 2005 09:17:10 -0700 (PDT) Subject: [Gambas-user] help for fakebas Message-ID: <20050531161710.33586.qmail@...985...> hi... when i try to run fakebas i recived an error message Not enough arguments to Lock() at 855 in Project.module how can i solve my problem? --------------------------------- Do You Yahoo!? Yahoo! Small Business - Try our new Resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Tue May 31 18:29:19 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 31 May 2005 12:29:19 -0400 Subject: [Gambas-user] help for fakebas In-Reply-To: <20050531161710.33586.qmail@...985...> References: <20050531161710.33586.qmail@...985...> Message-ID: <200505311229.19311.sourceforge-raindog2@...94...> On Tuesday 31 May 2005 12:17, White Fox wrote: > when i try to run fakebas i recived an error message > Not enough arguments to Lock() at 855 in Project.module > how can i solve my problem? And I'll repeat my questions to you from when you emailed me about this privately.... What version of Gambas do you have installed? What Linux distribution are you using and which version? Did you install Gambas and Fakebas via packages or from source? Rob From white_fox_ir at ...43... Tue May 31 20:44:04 2005 From: white_fox_ir at ...43... (White Fox) Date: Tue, 31 May 2005 11:44:04 -0700 (PDT) Subject: [Gambas-user] help for fakebas In-Reply-To: 6667 Message-ID: <20050531184404.75530.qmail@...986...> --- Rob wrote: > On Tuesday 31 May 2005 12:17, White Fox wrote: > > when i try to run fakebas i recived an error > message > > Not enough arguments to Lock() at 855 in > Project.module > > how can i solve my problem? > > And I'll repeat my questions to you from when you > emailed me about > this privately.... > > What version of Gambas do you have installed? > > What Linux distribution are you using and which > version? > > Did you install Gambas and Fakebas via packages or > from source? > > Rob > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > +++++++++++++++++++++++++ thanks for your attention... i use debian sarge 3.1 and i download lastest stablish gambas and last ver of fakebas.... i install gambas frome source and i use fakebas from source __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/