From gambas at ...1... Wed Jun 1 01:45:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 1 Jun 2011 01:45:37 +0200 Subject: [Gambas-user] QPainter in GAMBAS3 ...error #11 In-Reply-To: <4DE4DDD2.1020208@...626...> References: <4DE4DDD2.1020208@...626...> Message-ID: <201106010145.37257.gambas@...1...> > Just moving Draw.Begin into Public Sub Form_Open() > > ------------------------------------ > Public Sub Form_Open() > Draw.Begin(DrawingArea1) > Me.Text = "DBLog Scale" > ----------------------------------- > > > I get Error #11 please inform Benoit ;-) > > Pino > I need a little project to reproduce the crash. Thanks in advance. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Wed Jun 1 08:06:55 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 01 Jun 2011 02:06:55 -0400 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <201105302131.15384.gambas@...1...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> Message-ID: <4DE5D6FF.3070202@...1887...> On 05/30/2011 03:31 PM, Beno?t Minisini wrote: >> Any reason a compiled app would behave differently than an app run in >> the IDE? My app stalls half-way through receiving network packets from >> the server when compiled, but when both are running in the IDE it works >> fine. Didn't have this problem earlier tonight. This is new to me. I'm >> using build 3866. > > Mmm. Very hard to guess as soon as you do network programming. > > When your program is stalled, do that in a terminal: > > $ gdb /usr/bin/gbx3 > ... > (gdb) bt > ... > > And send me the result of the 'bt' command, which should tell where the > program is stalled. > > Note: replace /usr/bin/gbx3 by where the gambas interpreter is actually > installed. When I said "stalled" I meant it continued execution but without processing the expected events (it didn't freeze or raise an error). I'm sorry for not being more specific. I've also discovered it has nothing to do with whether or not the program has been compiled. That was a red herring. This is what is happening: The client sends its username and password to the server. The server tells the client that it has authenticated, then begins to send it multiple transactions (packets) with the information that it needs to start the game. All the transactions use the same procedures (client and server share transaction processing code), so the theory is that if one works they should all work. It has worked in the past, so I think a change in programming logic (multiple medium-sized packets in sequence) may have exposed a bug. The weird thing that started happening is that a series of similar transactions being sent by the server began to be received irregularly by the client. Frequently the number of successful transactions changes between sequential program runs. Usually I expect something to fail consistently, not work sometimes then fail other times, so it's very confusing. Also it seems like the smaller the packet size the less frequently it fails. For example, if the server sends a series of nine packets to the client, each around 25K, the client will receive less than nine 100% of the time. If the server sends nine 15K packets the client may fail to receive them all 75% of the time. If the packets are under 10K then it may fail 25% of the time. Also sometimes the client receives packets with packets missing in the middle. For example, the client may receive packets 0 - 8, miss packets 9 - 11, and finally receive packet 12. The server is actually sending all the UDP data properly. I've step-traced the client and the UDP_Read event is simply not triggered for the missing packets. It's like they're lost in the wire...like they disappeared. I thought it might be a hardware problem, so I tried it with different combinations of bare metal and VMs. I even upgraded my kernel and used more recent NIC firmware. No effect at all, so I don't think it's hardware or my code. Anyone have any insight? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From arosa at ...2168... Wed Jun 1 12:49:58 2011 From: arosa at ...2168... (Toni Rosa) Date: Wed, 1 Jun 2011 12:49:58 +0200 (Hora de verano romance) Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE5D6FF.3070202@...1887...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> Message-ID: <.88.6.81.211.1306925398.squirrel@...2402...> > Anyone have any insight? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 Note that UDP doesn't guarantee reliability, ordering, or data integrity. TCP does. If your application logic needs this, then you should use TCP or handle these possible errors in your code. The bigger the packet the easier something goes wrong with it, so in a way its normal that smaller UDP packets are less prone to be faulty.. in any case a 100% loss of 25K UDP packets is quite a lot, it may indicate some sort of buggy network equipament. Regards, Toni From jussi.lahtinen at ...626... Wed Jun 1 16:42:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 1 Jun 2011 17:42:34 +0300 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <.88.6.81.211.1306925398.squirrel@...2402...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> <.88.6.81.211.1306925398.squirrel@...2402...> Message-ID: Firewall problem? Jussi On Wed, Jun 1, 2011 at 13:49, Toni Rosa wrote: > > Anyone have any insight? > > > > -- > > Kevin Fishburne > > Eight Virtues > > www: http://sales.eightvirtues.com > > e-mail: sales at ...1887... > > phone: (770) 853-6271 > > Note that UDP doesn't guarantee reliability, ordering, or data integrity. > TCP does. If your application logic needs this, then you should use TCP or > handle these possible errors in your code. > The bigger the packet the easier something goes wrong with it, so in a way > its normal that smaller UDP packets are less prone to be faulty.. in any > case a 100% loss of 25K UDP packets is quite a lot, it may indicate some > sort of buggy network equipament. > Regards, > Toni > > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jun 2 23:01:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 02 Jun 2011 21:01:36 +0000 Subject: [Gambas-user] Issue 63 in gambas: HttpClient doesn't honor https connections In-Reply-To: <1-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> <0-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 63 by benoit.m... at ...626...: HttpClient doesn't honor https connections http://code.google.com/p/gambas/issues/detail?id=63 Done in revision #3868. You can assign an url starting with "https://" to the HttpClient URL property, and it is taken into account. From imageek247 at ...626... Thu Jun 2 23:57:34 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Thu, 2 Jun 2011 16:57:34 -0500 Subject: [Gambas-user] Key input - Globally Message-ID: *How would i catch a keypress glbally? like when someone presses "F9" when the gambas window is NOT selected, and a event is still raised? * -- *Live Chat room!* *http://dglivechat.tk My Website: dageek247.tk* *Calvin: *BU-URP! *Mom:* Good heavens, Calvin! What do we say after that? *Calvin:* "Must be a barge coming through!" *Mom:* WHAT Do you say?! *Calvin: *That sure tasted better going down than coming up! *Mom: *Three strikes and you're history kiddo. *Calvin: *excuse me. From rterry at ...1946... Fri Jun 3 00:32:24 2011 From: rterry at ...1946... (richard terry) Date: Fri, 3 Jun 2011 08:32:24 +1000 Subject: [Gambas-user] Gambas Calculator Message-ID: <201106030832.24193.rterry@...1946...> I wondered if anyone on the list would have the code/form for a simple calculator in gambas they would be willing to share. REgards richard From jussi.lahtinen at ...626... Fri Jun 3 00:56:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 3 Jun 2011 01:56:18 +0300 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106030832.24193.rterry@...1946...> References: <201106030832.24193.rterry@...1946...> Message-ID: Not exactly, but this might help; http://gambasdoc.org/help/lang/eval You can use it to do calculations, example: Print Eval("1 + 2") Or you can use variables like in documentation example. Jussi On Fri, Jun 3, 2011 at 01:32, richard terry wrote: > I wondered if anyone on the list would have the code/form for a simple > calculator in gambas they would be willing to share. > > REgards > > richard > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Fri Jun 3 08:36:26 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 03 Jun 2011 02:36:26 -0400 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE5D6FF.3070202@...1887...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> Message-ID: <4DE880EA.8050202@...1887...> On 06/01/2011 02:06 AM, Kevin Fishburne wrote: > On 05/30/2011 03:31 PM, Beno?t Minisini wrote: >>> Any reason a compiled app would behave differently than an app run in >>> the IDE? My app stalls half-way through receiving network packets from >>> the server when compiled, but when both are running in the IDE it works >>> fine. Didn't have this problem earlier tonight. This is new to me. I'm >>> using build 3866. >> >> Mmm. Very hard to guess as soon as you do network programming. >> >> When your program is stalled, do that in a terminal: >> >> $ gdb /usr/bin/gbx3 >> ... >> (gdb) bt >> ... >> >> And send me the result of the 'bt' command, which should tell where the >> program is stalled. >> >> Note: replace /usr/bin/gbx3 by where the gambas interpreter is actually >> installed. > > When I said "stalled" I meant it continued execution but without > processing the expected events (it didn't freeze or raise an error). I'm > sorry for not being more specific. I've also discovered it has nothing > to do with whether or not the program has been compiled. That was a red > herring. This is what is happening: > > The client sends its username and password to the server. The server > tells the client that it has authenticated, then begins to send it > multiple transactions (packets) with the information that it needs to > start the game. All the transactions use the same procedures (client and > server share transaction processing code), so the theory is that if one > works they should all work. It has worked in the past, so I think a > change in programming logic (multiple medium-sized packets in sequence) > may have exposed a bug. > > The weird thing that started happening is that a series of similar > transactions being sent by the server began to be received irregularly > by the client. Frequently the number of successful transactions changes > between sequential program runs. Usually I expect something to fail > consistently, not work sometimes then fail other times, so it's very > confusing. Also it seems like the smaller the packet size the less > frequently it fails. > > For example, if the server sends a series of nine packets to the client, > each around 25K, the client will receive less than nine 100% of the > time. If the server sends nine 15K packets the client may fail to > receive them all 75% of the time. If the packets are under 10K then it > may fail 25% of the time. > > Also sometimes the client receives packets with packets missing in the > middle. For example, the client may receive packets 0 - 8, miss packets > 9 - 11, and finally receive packet 12. > > The server is actually sending all the UDP data properly. I've > step-traced the client and the UDP_Read event is simply not triggered > for the missing packets. It's like they're lost in the wire...like they > disappeared. > > I thought it might be a hardware problem, so I tried it with different > combinations of bare metal and VMs. I even upgraded my kernel and used > more recent NIC firmware. No effect at all, so I don't think it's > hardware or my code. > > Anyone have any insight? After doing an insane amount of network testing and debugging I discovered that sending multiple consecutive UDP packets over a loopback interface or reliable and fast LAN cause the recipient to overflow its buffer and lose packets. I could be wrong, but this seems to be the case. I found no problems in my network. I inserted a 100 ms delay between packet transmission and this corrected the issue. Any insight still appreciated, as I may have to differentiate between LAN clients and WAN clients so the delay is only inserted when necessary. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rolf.frogs at ...221... Fri Jun 3 08:46:16 2011 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Fri, 03 Jun 2011 08:46:16 +0200 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106030832.24193.rterry@...1946...> References: <201106030832.24193.rterry@...1946...> Message-ID: <4DE88338.3060009@...2594...> Hi Richard > I wondered if anyone on the list would have the code/form for a simple > calculator in gambas they would be willing to share. If you can live with german variable names and comments, here is a runnable version (but it is in Gambas 2.x) Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: calculator.tgz Type: application/x-gtar Size: 10972 bytes Desc: not available URL: From rolf.frogs at ...221... Fri Jun 3 08:59:21 2011 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Fri, 03 Jun 2011 08:59:21 +0200 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106030832.24193.rterry@...1946...> References: <201106030832.24193.rterry@...1946...> Message-ID: <4DE88649.40704@...2594...> Hi Richard the Class-File was broken, so I attache a new file with the class and form file intact but still with german variable names and comments Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: calc2.tgz Type: application/x-gtar Size: 1269 bytes Desc: not available URL: From rterry at ...1946... Fri Jun 3 09:07:44 2011 From: rterry at ...1946... (richard terry) Date: Fri, 3 Jun 2011 17:07:44 +1000 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <4DE88649.40704@...2594...> References: <201106030832.24193.rterry@...1946...> <4DE88649.40704@...2594...> Message-ID: <201106031707.44495.rterry@...1946...> On Friday 03 June 2011 16:59:21 Rolf Schmidt wrote: > Hi Richard > > the Class-File was broken, so I attache a new file with the class and > form file intact but still with german variable names and comments > > Fine regards > Rolf > thanks, my daughter speaks German, or I've a mate who can translate Will let you know how I get on with it. REgards richard From gambas.fr at ...626... Fri Jun 3 10:35:28 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 3 Jun 2011 10:35:28 +0200 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106031707.44495.rterry@...1946...> References: <201106030832.24193.rterry@...1946...> <4DE88649.40704@...2594...> <201106031707.44495.rterry@...1946...> Message-ID: 2011/6/3 richard terry : > On Friday 03 June 2011 16:59:21 Rolf Schmidt wrote: >> Hi Richard >> >> the Class-File was broken, so I attache a new file with the class and >> form file intact but still with german variable names and comments >> >> Fine regards >> Rolf >> > thanks, my daughter speaks German, or I've a mate who can translate or google translation > > Will let you know how I get on with it. > > REgards > > richard > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1946... Fri Jun 3 11:11:31 2011 From: rterry at ...1946... (richard terry) Date: Fri, 3 Jun 2011 19:11:31 +1000 Subject: [Gambas-user] Gambas Calculator In-Reply-To: References: <201106030832.24193.rterry@...1946...> <201106031707.44495.rterry@...1946...> Message-ID: <201106031911.31558.rterry@...1946...> On Friday 03 June 2011 18:35:28 Fabien Bodard wrote: > 2011/6/3 richard terry : > > On Friday 03 June 2011 16:59:21 Rolf Schmidt wrote: > >> Hi Richard > >> > >> the Class-File was broken, so I attache a new file with the class and > >> form file intact but still with german variable names and comments > >> > >> Fine regards > >> Rolf > > > > thanks, my daughter speaks German, or I've a mate who can translate > > or google translation Tried that but produced quite a few ambiguities and stuff got swapped around. I'll keep working on it! > > > Will let you know how I get on with it. > > > > REgards > > > > richard > > > > ------------------------------------------------------------------------- > >----- Simplify data backup and recovery for your virtual environment with > > vRanger. Installation's a snap, and flexible recovery options mean your > > data is safe, secure and there when you need it. Discover what all the > > cheering's about. Get your free trial download today. > > http://p.sf.net/sfu/quest-dev2dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 3 13:02:43 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 3 Jun 2011 14:02:43 +0300 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106031911.31558.rterry@...1946...> References: <201106030832.24193.rterry@...1946...> <201106031707.44495.rterry@...1946...> <201106031911.31558.rterry@...1946...> Message-ID: Also Gambas has "Evaluator" example, but it doesn't seem to work..? Jussi On Fri, Jun 3, 2011 at 12:11, richard terry wrote: > On Friday 03 June 2011 18:35:28 Fabien Bodard wrote: > > 2011/6/3 richard terry : > > > On Friday 03 June 2011 16:59:21 Rolf Schmidt wrote: > > >> Hi Richard > > >> > > >> the Class-File was broken, so I attache a new file with the class and > > >> form file intact but still with german variable names and comments > > >> > > >> Fine regards > > >> Rolf > > > > > > thanks, my daughter speaks German, or I've a mate who can translate > > > > or google translation > Tried that but produced quite a few ambiguities and stuff got swapped > around. > I'll keep working on it! > > > > > Will let you know how I get on with it. > > > > > > REgards > > > > > > richard > > > > > > > ------------------------------------------------------------------------- > > >----- Simplify data backup and recovery for your virtual environment > with > > > vRanger. Installation's a snap, and flexible recovery options mean your > > > data is safe, secure and there when you need it. Discover what all the > > > cheering's about. Get your free trial download today. > > > http://p.sf.net/sfu/quest-dev2dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 3 13:07:10 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 3 Jun 2011 14:07:10 +0300 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE880EA.8050202@...1887...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> <4DE880EA.8050202@...1887...> Message-ID: Maybe you can use ping, and use delay with low latency clients. However, 100 ms sounds pretty long time... Jussi On Fri, Jun 3, 2011 at 09:36, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 06/01/2011 02:06 AM, Kevin Fishburne wrote: > > On 05/30/2011 03:31 PM, Beno?t Minisini wrote: > >>> Any reason a compiled app would behave differently than an app run in > >>> the IDE? My app stalls half-way through receiving network packets from > >>> the server when compiled, but when both are running in the IDE it works > >>> fine. Didn't have this problem earlier tonight. This is new to me. I'm > >>> using build 3866. > >> > >> Mmm. Very hard to guess as soon as you do network programming. > >> > >> When your program is stalled, do that in a terminal: > >> > >> $ gdb /usr/bin/gbx3 > >> ... > >> (gdb) bt > >> ... > >> > >> And send me the result of the 'bt' command, which should tell where the > >> program is stalled. > >> > >> Note: replace /usr/bin/gbx3 by where the gambas interpreter is actually > >> installed. > > > > When I said "stalled" I meant it continued execution but without > > processing the expected events (it didn't freeze or raise an error). I'm > > sorry for not being more specific. I've also discovered it has nothing > > to do with whether or not the program has been compiled. That was a red > > herring. This is what is happening: > > > > The client sends its username and password to the server. The server > > tells the client that it has authenticated, then begins to send it > > multiple transactions (packets) with the information that it needs to > > start the game. All the transactions use the same procedures (client and > > server share transaction processing code), so the theory is that if one > > works they should all work. It has worked in the past, so I think a > > change in programming logic (multiple medium-sized packets in sequence) > > may have exposed a bug. > > > > The weird thing that started happening is that a series of similar > > transactions being sent by the server began to be received irregularly > > by the client. Frequently the number of successful transactions changes > > between sequential program runs. Usually I expect something to fail > > consistently, not work sometimes then fail other times, so it's very > > confusing. Also it seems like the smaller the packet size the less > > frequently it fails. > > > > For example, if the server sends a series of nine packets to the client, > > each around 25K, the client will receive less than nine 100% of the > > time. If the server sends nine 15K packets the client may fail to > > receive them all 75% of the time. If the packets are under 10K then it > > may fail 25% of the time. > > > > Also sometimes the client receives packets with packets missing in the > > middle. For example, the client may receive packets 0 - 8, miss packets > > 9 - 11, and finally receive packet 12. > > > > The server is actually sending all the UDP data properly. I've > > step-traced the client and the UDP_Read event is simply not triggered > > for the missing packets. It's like they're lost in the wire...like they > > disappeared. > > > > I thought it might be a hardware problem, so I tried it with different > > combinations of bare metal and VMs. I even upgraded my kernel and used > > more recent NIC firmware. No effect at all, so I don't think it's > > hardware or my code. > > > > Anyone have any insight? > > After doing an insane amount of network testing and debugging I > discovered that sending multiple consecutive UDP packets over a loopback > interface or reliable and fast LAN cause the recipient to overflow its > buffer and lose packets. I could be wrong, but this seems to be the > case. I found no problems in my network. > > I inserted a 100 ms delay between packet transmission and this corrected > the issue. Any insight still appreciated, as I may have to differentiate > between LAN clients and WAN clients so the delay is only inserted when > necessary. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From arosa at ...2168... Fri Jun 3 13:56:20 2011 From: arosa at ...2168... (Toni Rosa) Date: Fri, 3 Jun 2011 13:56:20 +0200 (Hora de verano romance) Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE880EA.8050202@...1887...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> <4DE880EA.8050202@...1887...> Message-ID: <.88.6.81.211.1307102180.squirrel@...2402...> >> Anyone have any insight? > > After doing an insane amount of network testing and debugging I > discovered that sending multiple consecutive UDP packets over a loopback > interface or reliable and fast LAN cause the recipient to overflow its > buffer and lose packets. I could be wrong, but this seems to be the > case. I found no problems in my network. > > I inserted a 100 ms delay between packet transmission and this corrected > the issue. Any insight still appreciated, as I may have to differentiate > between LAN clients and WAN clients so the delay is only inserted when > necessary. You could increase the receiver buffer changing the Kernel variables "net.core.rmem_max" and "net.core.rmem_default" (In Debian-like systems you can set it inside /etc/sysctl.conf) Have a look at: http://stackoverflow.com/questions/2090850/specifying-udp-receive-buffer-size-at-runtime-in-linux Regards, Toni From ihaywood at ...1979... Fri Jun 3 14:03:19 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 3 Jun 2011 22:03:19 +1000 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE880EA.8050202@...1887...> References: <4DE30596.4080408@...1887...> <201105302131.15384.gambas@...1...> <4DE5D6FF.3070202@...1887...> <4DE880EA.8050202@...1887...> Message-ID: On Fri, Jun 3, 2011 at 4:36 PM, Kevin Fishburne wrote: > I inserted a 100 ms delay between packet transmission and this corrected > the issue. Any insight still appreciated, as I may have to differentiate > between LAN clients and WAN clients so the delay is only inserted when > necessary. the first thing you should do is ask yourself again why you can't use TCP, as it includes fairly fancy flow-control algorithms that have been honed over the last 30 years by some very smart engineers. If you want to stick with UDP, one option is instead of a simple 100msec wait, use a timer (I assume these packets are sending updates about game state to the client), for each update, if the last one has been sent less then, say, 50msec ago, then don't send the packet, but if more, then send (without a pause) This means the system updates without any delay, but there is a maximum rate of packets being sent to avoid overloading the recipients buffer. I wouldn't try to have the code figure out WAN versus LAN, there are so many different network configurations out there it is often not meaningful, plus it depends on CPU speed as well as network speed (you're problem is the network is too fast for the CPU) . But maybe let users adjust this timeout value, if they have fast computers and a fast network they may be able to lower it. Ian From gambas at ...1... Fri Jun 3 14:28:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 3 Jun 2011 14:28:36 +0200 Subject: [Gambas-user] Gambas Calculator In-Reply-To: References: <201106030832.24193.rterry@...1946...> <201106031911.31558.rterry@...1946...> Message-ID: <201106031428.36672.gambas@...1...> > Also Gambas has "Evaluator" example, but it doesn't seem to work..? > > Jussi > It works there. What's the problem? -- Beno?t Minisini From gambas at ...1... Sat Jun 4 03:55:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Jun 2011 03:55:13 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: Message-ID: <201106040355.13597.gambas@...1...> > Some small issues: > > This BackColor isn't converted to Gambas3: > > If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background > Done in revision #3871. > > Maybe these are missing icons: ? > > warning: unable to load 16/cancel > warning: unable to load 16/view-hidden > > Or it this an Mint thing? > Can you check if you have these messages if you use another icon theme? Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 4 03:59:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 4 Jun 2011 03:59:08 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: Message-ID: <201106040359.08939.gambas@...1...> > Running a compiled cli project in Gambas3 also seem to behave > differently that running it from IDE. > > Sending e-mail seem to fail reguarly, while when run from IDE I didn't > had that yet. > > 2011/05/31 13:22:55 The error was 'Connection to mailserver failed > while connecting to SMTP server (SMTP error code #0)' [-1] at > SmtpClient.Send.66'. > > Maybe same cause as what Kevin (i believe) was reporting about udp > problems... > I don't think so, as SMTP is based on TCP, not UDP. I need to see your code, or better a little project that reproduces the bug so that I can debug on my own computer. Regards, -- Beno?t Minisini From rterry at ...1946... Sat Jun 4 09:03:41 2011 From: rterry at ...1946... (richard terry) Date: Sat, 4 Jun 2011 17:03:41 +1000 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106031428.36672.gambas@...1...> References: <201106030832.24193.rterry@...1946...> <201106031428.36672.gambas@...1...> Message-ID: <201106041703.41035.rterry@...1946...> On Friday 03 June 2011 22:28:36 Beno?t Minisini wrote: > > Also Gambas has "Evaluator" example, but it doesn't seem to work..? > > > > Jussi > > It works there. What's the problem? > Ok, This is now translated and put into gambas3 with appropriate acknowledgements to the source code author/s. I've re-done the gui 'prettified' It dosn't handle negative numbers, square roots etc. Benoit - do you think this is worth putting into the samples?, others may want to enhance it with other functions as well. Also, as I made it a borderless form with a tiny close button, I didn't know how to put in the code to let a user drag it with the mouse. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_calculator-en-0.0.1.tar.gz Type: application/x-compressed-tar Size: 7445 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambs3_calc_en.png Type: image/png Size: 7778 bytes Desc: not available URL: From wally at ...2037... Sat Jun 4 17:45:50 2011 From: wally at ...2037... (wally) Date: Sat, 4 Jun 2011 17:45:50 +0200 Subject: [Gambas-user] porting VB to GB3 "ListIndex" ? Message-ID: <201106041745.51286.wally@...2037...> which Gambas3 code may substitute this VB line ?: combobox1.ListIndex + 2 Is a porting experience collection somewhere available ? thx wally From tobiasboe1 at ...20... Sat Jun 4 18:02:45 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 04 Jun 2011 18:02:45 +0200 Subject: [Gambas-user] porting VB to GB3 "ListIndex" ? In-Reply-To: <201106041745.51286.wally@...2037...> References: <201106041745.51286.wally@...2037...> Message-ID: <4DEA5725.7080503@...20...> hi, i haven't got gambas3 already but in gb2 it's like this: ComboBox1.Index + 2 (if i looked up correctly what combobox.ListIndex in vb means) if you want to set the current item in this box, you can assign a number to combobox1.Index, setting combobox1.Current doesn't work...? i hope this works for gb3, too. the docs doesn't say a word that Index is also read-only. regards, tobi From sebikul at ...626... Sat Jun 4 20:55:39 2011 From: sebikul at ...626... (Sebi Kul) Date: Sat, 04 Jun 2011 15:55:39 -0300 Subject: [Gambas-user] Facebook Component Message-ID: <4DEA7FAB.6090400@...626...> Hi all! I have been working the last few days on a Facebook component to make GAMBAS more social and web friendly. It doesn't have many bugs, it misses some features, and it may crash at any time (no error managment implemented). BUT, it works. The only things I have implemented so far are: A. *Authentication:* Done using an HTTPClient instance and gb.qt4.webkit to request the user to login.*[1]* Also, I had to code a basic OAuth2 Module, this can be moved into another component to allow interoperability between Facebook and other services using OAuth2, like Google services, etc. [1] I really had to decide between this two options. The first one was to pass the "offline_access" scope to store an access token *without expiration*. The storage of this token is done using the gb.desktop component (GNOME Keyring, KWallet, etc). The second option was to show a window every time the user started the program requesting him to login and update the token (not good at all) I choose the first option after all, it's easier to use, implement, code, etc. It looks better for the end-user and needs a lot less code. B. *Basic Graph API access:* when you execute the component a window will pop up with a few options to let you interact and test the API. To use it, you must first authenticate, ergo, you need an AppID and an API Secret key (you can create a sample application or use your personal access token). * The data returned by the component is a Json object. The component is ready for use, although it's still BETA, it can be used while developing a parallel application, please *do no use it on stable releases*. That being said, I hope you like it and find it easy/helpful. I will be releasing updates to this component via the mailing list just as I am doing now. Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: 0xC5D113F0.asc Type: application/pgp-keys Size: 1711 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Facebook_for_Gambas-0.0.1.tar.gz Type: application/x-gzip Size: 8048 bytes Desc: not available URL: From gambas at ...1... Sun Jun 5 00:22:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Jun 2011 00:22:56 +0200 Subject: [Gambas-user] Facebook Component In-Reply-To: <4DEA7FAB.6090400@...626...> References: <4DEA7FAB.6090400@...626...> Message-ID: <201106050022.56927.gambas@...1...> > Hi all! > > I have been working the last few days on a Facebook component to make > GAMBAS more social and web friendly. It doesn't have many bugs, it > misses some features, and it may crash at any time (no error managment > implemented). BUT, it works. You don't have to use ByRef for object references. Objects are already references! To detect that in your code, just check that, for example, the FB object reference passed by reference is never modified by the function. Only the object is modified! Regards, -- Beno?t Minisini From sebikul at ...626... Sun Jun 5 04:27:15 2011 From: sebikul at ...626... (Sebi Kul) Date: Sat, 04 Jun 2011 23:27:15 -0300 Subject: [Gambas-user] Facebook Component In-Reply-To: <201106050022.56927.gambas@...1...> References: <4DEA7FAB.6090400@...626...> <201106050022.56927.gambas@...1...> Message-ID: <4DEAE983.4030001@...626...> On s?b 04 jun 2011 19:22:56 ART, Beno?t Minisini wrote: >> Hi all! >> >> I have been working the last few days on a Facebook component to make >> GAMBAS more social and web friendly. It doesn't have many bugs, it >> misses some features, and it may crash at any time (no error managment >> implemented). BUT, it works. > > You don't have to use ByRef for object references. Objects are already > references! > > To detect that in your code, just check that, for example, the FB object > reference passed by reference is never modified by the function. Only the > object is modified! > > Regards, Hi! I just updated the component! To provide updates, SVN, downloads, and future components, I created a project on Google Code. You can access it here: http://code.google.com/p/gambas-online/ To download new releases, you can head to :http://code.google.com/p/gambas-online/downloads/list If you are using Ubuntu, you can use the .deb file to automatically list the component From gambas at ...2524... Sun Jun 5 04:34:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 05 Jun 2011 02:34:37 +0000 Subject: [Gambas-user] Issue 67 in gambas: Creating an ubuntu .deb installer for a component uses wrong directory Message-ID: <0-6813199134517018827-9521377799252433313-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 67 by sebi... at ...626...: Creating an ubuntu .deb installer for a component uses wrong directory http://code.google.com/p/gambas/issues/detail?id=67 When installing a component using a created .deb (ubuntu) file, the executable is placed into: /usr/lib/gambas3 In stead of: /usr/local/lib/gambas3 And the info files are placed into: /usr/share/gambas3 In stead of: /usr/local/share/gambas3 Other component installable packages may have the same bug From 07.rain at ...626... Sun Jun 5 07:52:03 2011 From: 07.rain at ...626... (Titan Rain) Date: Sun, 5 Jun 2011 01:52:03 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters Message-ID: <20110605015203.f9a00783.07.rain@...626...> I'm trying to split a response from a server that has been stored as a string. This response contains the ascii characters ?? as data field padding. I should mention the response can get quite long too. Over 500 characters easily. For example a response may look something like ??3??somestring??65??somestring??90??1????89??0??0??101. I get strange results such as empty positions in the returned array, or the entire string returned in the first and only position of the array when I try to split the string with ?? as part of the seperator. I would also like to mention the debugger cannot display these characters at all. Note screenshot 1 below. I have seen the tip-of-the-day that states "If you want to manipulate UTF-8 string, you must use the methods of the String static class, which have the same name as their standard counterparts." however the static string class does not have a split function. I have tried using: Chr(&C0) & Chr(&80) <-- the chr codes for ?? DConv <-- raises an error (unable to convert) Conv <-- raises an error (unable to convert) Asc ^$ <--- a suggested delimiter instead of the ?? I tried to write a function to convert the entire string to ascii PUBLIC FUNCTION C2A(StringToConvert AS String) AS String DIM converted AS String DIM i AS Integer FOR i = 0 TO Len(StringToConvert) converted = converted & "-" & Asc(StringToConvert, i) NEXT RETURN converted END Then splitting the string with ascii values of the seperators. It fails miserably. (Screenshot2) Am I missing something, or am I asking for too much? Below are some screenshots to help convey my problem. Screenshot1: http://img651.imageshack.us/img651/5374/debuggerb.png Screenshot2: http://img6.imageshack.us/img6/8966/ascarray.png Screenshot3: http://img541.imageshack.us/img541/1899/65ae.png In the latter 2 screenshots you can see the array is quite long, over 1000 in one case, when in fact the 65?? (or 192-128-54-53-192-128) only occurs 2 times in the entire string. Ubuntu 10.10 32 bit Gambas 2.21 (from the ubuntu repository) Any help is GREATLY appreciated. From kevinfishburne at ...1887... Sun Jun 5 08:26:38 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 05 Jun 2011 02:26:38 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <20110605015203.f9a00783.07.rain@...626...> References: <20110605015203.f9a00783.07.rain@...626...> Message-ID: <4DEB219E.8060408@...1887...> On 06/05/2011 01:52 AM, Titan Rain wrote: > I'm trying to split a response from a server that has been stored as a string. This response contains the ascii characters ?? as data field padding. I should mention the response can get quite long too. Over 500 characters easily. For example a response may look something like ??3??somestring??65??somestring??90??1????89??0??0??101. I get strange results such as empty positions in the returned array, or the entire string returned in the first and only position of the array when I try to split the string with ?? as part of the seperator. I would also like to mention the debugger cannot display these characters at all. Note screenshot 1 below. Sounds like my kind of problem. I send and receive UDP packets and similarly have to hack them up, in and out. Is there a known or calculable sequence to the variables passed from the server as a string? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From charles at ...1784... Sun Jun 5 09:56:02 2011 From: charles at ...1784... (charlesg) Date: Sun, 5 Jun 2011 00:56:02 -0700 (PDT) Subject: [Gambas-user] Barcode example for Gambas3 Message-ID: <31776060.post@...1379...> I posted this on gambas-devel but don't know if it got through. I was not registered on that list. It is an update on the barcode example for Gambas3. http://old.nabble.com/file/p31776060/BarcodeG3-0.0.4.tar.gz BarcodeG3-0.0.4.tar.gz -- View this message in context: http://old.nabble.com/Barcode-example-for-Gambas3-tp31776060p31776060.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Sun Jun 5 10:04:00 2011 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 5 Jun 2011 10:04:00 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <31776060.post@...1379...> References: <31776060.post@...1379...> Message-ID: I can't open the file.... 2011/6/5 charlesg > > I posted this on gambas-devel but don't know if it got through. I was not > registered on that list. > > It is an update on the barcode example for Gambas3. > http://old.nabble.com/file/p31776060/BarcodeG3-0.0.4.tar.gz > BarcodeG3-0.0.4.tar.gz > > -- > View this message in context: > http://old.nabble.com/Barcode-example-for-Gambas3-tp31776060p31776060.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Sun Jun 5 10:29:13 2011 From: charles at ...1784... (charlesg) Date: Sun, 5 Jun 2011 01:29:13 -0700 (PDT) Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: References: <31776060.post@...1379...> Message-ID: <31776127.post@...1379...> shordi wrote: > > I can't open the file.... > Shordi Hmm.. I don't have a problem (ub10.10 32bit) but have had this in the past. Bit odd as I am just using the 'project,make,source archive' from within G3. Could you try 'gunzip BarcodeG3-0.0.4.tar.gz' from a terminal and work from the tar file? -- View this message in context: http://old.nabble.com/Barcode-example-for-Gambas3-tp31776060p31776127.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Jun 5 11:22:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 5 Jun 2011 11:22:03 +0200 Subject: [Gambas-user] Facebook Component In-Reply-To: <4DEAE983.4030001@...626...> References: <4DEA7FAB.6090400@...626...> <201106050022.56927.gambas@...1...> <4DEAE983.4030001@...626...> Message-ID: it don't work for me :/ seem to have problem with the password Le 5 juin 2011 04:27, Sebi Kul a ?crit : > > > On s?b 04 jun 2011 19:22:56 ART, Beno?t Minisini wrote: >>> Hi all! >>> >>> I have been working the last few days on a Facebook component to make >>> GAMBAS more social and web friendly. It doesn't have many bugs, it >>> misses some features, and it may crash at any time (no error managment >>> implemented). BUT, it works. >> >> You don't have to use ByRef for object references. Objects are already >> references! >> >> To detect that in your code, just check that, for example, the FB object >> reference passed by reference is never modified by the function. Only the >> object is modified! >> >> Regards, > > > Hi! > > I just updated the component! To provide updates, SVN, downloads, and > future components, I created a project on Google Code. You can access > it here: http://code.google.com/p/gambas-online/ > > To download new releases, you can head to > :http://code.google.com/p/gambas-online/downloads/list > > If you are using Ubuntu, you can use the .deb file to automatically > list the component > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shordi at ...626... Sun Jun 5 12:13:06 2011 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 5 Jun 2011 12:13:06 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <31776127.post@...1379...> References: <31776060.post@...1379...> <31776127.post@...1379...> Message-ID: Doing from terminal works fine. I don't know why ubuntu's 10.04 64 file-roller still says that isn't a gzip file. Thanks. 2011/6/5 charlesg > > > shordi wrote: > > > > I can't open the file.... > > > > Shordi > > Hmm.. I don't have a problem (ub10.10 32bit) but have had this in the past. > Bit odd as I am just using the 'project,make,source archive' from within > G3. > > Could you try 'gunzip BarcodeG3-0.0.4.tar.gz' from a terminal and work from > the tar file? > -- > View this message in context: > http://old.nabble.com/Barcode-example-for-Gambas3-tp31776060p31776127.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sun Jun 5 18:03:45 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 05 Jun 2011 18:03:45 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <31776127.post@...1379...> References: <31776060.post@...1379...> <31776127.post@...1379...> Message-ID: <4DEBA8E1.8060203@...2382...> El 05/06/11 10:29, charlesg escribi?: > > > shordi wrote: >> >> I can't open the file.... Me too... It is a common issue when attachments come from Nabble thing :-o >> > > Shordi > > Hmm.. I don't have a problem (ub10.10 32bit) but have had this in the past. > Bit odd as I am just using the 'project,make,source archive' from within G3. > > Could you try 'gunzip BarcodeG3-0.0.4.tar.gz' from a terminal and work from > the tar file? Accessing this list through Nabble is painful. I've never got correctly an attachment and it is more than slow. I'd recommend to use an actual mail client like Thunderbird or Evolution, etc to deal with the sourceforge server directly. -- Jesus From sebikul at ...626... Sun Jun 5 18:15:28 2011 From: sebikul at ...626... (Sebi Kul) Date: Sun, 05 Jun 2011 13:15:28 -0300 Subject: [Gambas-user] Facebook Component In-Reply-To: References: <4DEA7FAB.6090400@...626...> <201106050022.56927.gambas@...1...> <4DEAE983.4030001@...626...> Message-ID: <4DEBABA0.50301@...626...> On dom 05 jun 2011 06:22:03 ART, Fabien Bodard wrote: > it don't work for me :/ > > seem to have problem with the password > > Le 5 juin 2011 04:27, Sebi Kul a ?crit : >> >> >> On s?b 04 jun 2011 19:22:56 ART, Beno?t Minisini wrote: >>>> Hi all! >>>> >>>> I have been working the last few days on a Facebook component to make >>>> GAMBAS more social and web friendly. It doesn't have many bugs, it >>>> misses some features, and it may crash at any time (no error managment >>>> implemented). BUT, it works. >>> >>> You don't have to use ByRef for object references. Objects are already >>> references! >>> >>> To detect that in your code, just check that, for example, the FB object >>> reference passed by reference is never modified by the function. Only the >>> object is modified! >>> >>> Regards, >> >> >> Hi! >> >> I just updated the component! To provide updates, SVN, downloads, and >> future components, I created a project on Google Code. You can access >> it here: http://code.google.com/p/gambas-online/ >> >> To download new releases, you can head to >> :http://code.google.com/p/gambas-online/downloads/list >> >> If you are using Ubuntu, you can use the .deb file to automatically >> list the component >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with vRanger. >> Installation's a snap, and flexible recovery options mean your data is safe, >> secure and there when you need it. Discover what all the cheering's about. >> Get your free trial download today. >> http://p.sf.net/sfu/quest-dev2dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> Remember you need to have an AppID and an API Secret to test the component. You cant just execute it and run it, as it will fail to authenticate. If this is not your problem, could you be more specific please? This way i would be able to solve the bug. Thanks! From pinozollo at ...626... Sun Jun 5 18:35:50 2011 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 05 Jun 2011 12:35:50 -0400 Subject: [Gambas-user] Barcode example for Gambas3 Message-ID: <4DEBB066.8090708@...626...> > > > > I posted this on gambas-devel but don't know if it got through. I was not > > registered on that list. > > > > It is an update on the barcode example for Gambas3. > > http://old.nabble.com/file/p31776060/BarcodeG3-0.0.4.tar.gz > > BarcodeG3-0.0.4.tar.gz > > > On Ubuntu 10.04 ... 32 bit FMain.DrawingArea1_Draw.39: FMain.DrawingArea1_Draw.37 Type mismatch: wanted Float, got Null instead and FMain.printer_Draw.49: FMain.printer_Draw.47 Type mismatch: wanted Float, got Null instead Saluti Pino From jscops at ...11... Sun Jun 5 19:09:56 2011 From: jscops at ...11... (Jack) Date: Sun, 05 Jun 2011 19:09:56 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <4DEBB066.8090708@...626...> References: <4DEBB066.8090708@...626...> Message-ID: <4DEBB864.4080801@...11...> Le 05/06/2011 18:35, Pino Zollo a ?crit : >>> >>> I posted this on gambas-devel but don't know if it got through. I was not >>> registered on that list. >>> >>> It is an update on the barcode example for Gambas3. >>> http://old.nabble.com/file/p31776060/BarcodeG3-0.0.4.tar.gz >>> BarcodeG3-0.0.4.tar.gz >>> >> > > On Ubuntu 10.04 ... 32 bit > > > FMain.DrawingArea1_Draw.39: FMain.DrawingArea1_Draw.37 Type mismatch: > wanted Float, got Null instead > > and > > FMain.printer_Draw.49: FMain.printer_Draw.47 Type mismatch: wanted > Float, got Null instead replace txtWidth.Text = "1.5" by txtWidth.Text = "1,5" From 07.rain at ...626... Sun Jun 5 21:00:06 2011 From: 07.rain at ...626... (Titan Rain) Date: Sun, 5 Jun 2011 15:00:06 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: References: Message-ID: <20110605150006.ce33591e.07.rain@...626...> This is getting ridiculous. I have now written a function to strip out all the headers and replace all Chr(&C0) and all Chr(&80) (the ascii AE's) with a plain text AE. The string is now "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319AE303AE319AE301AE318AE300AE318AE65AEFriendsAE302AE319AE300AE319AE7AEleet.spikeAE301AE319AE303AE319AE301AE318AE303AE318AEAE300AE312AE313AE2AE314AE0AE301AE312AE300 AE312AE313AE6AE314AE-1AE301AE312AE300AE312AE313AE4AE314AE0AE301AE312AE300AE312AE313AE8AE314AE1AE301AE312AE300AE312AE313AE9AE314AE900AE301AE312AE303AE312AE" Could someone please explain why then when I Split(thestring, "65AE") I get a 161 position array, many of which are empty? Yet again, 65AE only occurs 2 times in my string. And if I blindly barge through the routine with TRY, I must at a later point split the array at "7AE", yet when I encounter the name classybabe27_742, I get back classybabe2, _, 42. And honestly all this stripping and replacing characters is not a preferred solution. It's an ugly hack to a simple problem, that I'm sure is going to create problems later in this project. A project I've already invested 2 weeks in, and am about to have to scrap if this isn't possible. Please tell me I'm doing something wrong here, because if this language cannot even split a simple string.... From gambas at ...1... Sun Jun 5 21:53:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 5 Jun 2011 21:53:28 +0200 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <20110605150006.ce33591e.07.rain@...626...> References: <20110605150006.ce33591e.07.rain@...626...> Message-ID: <201106052153.28083.gambas@...1...> > This is getting ridiculous. > > I have now written a function to strip out all the headers and replace > all Chr(&C0) and all Chr(&80) (the ascii AE's) with a plain text AE. > The string is now > "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319 > AE303AE319AE301AE318AE300AE318AE65AEFriendsAE302AE319AE300AE319AE7AEleet.sp > ikeAE301AE319AE303AE319AE301AE318AE303AE318AEAE300AE312AE313AE2AE314AE0AE30 > 1AE312AE300 > AE312AE313AE6AE314AE-1AE301AE312AE300AE312AE313AE4AE314AE0AE301AE312AE300A > E312AE313AE8AE314AE1AE301AE312AE300AE312AE313AE9AE314AE900AE301AE312AE303AE > 312AE" > > Could someone please explain why then when I Split(thestring, "65AE") I > get a 161 position array, many of which are empty? Yet again, 65AE only > occurs 2 times in my string. > > And if I blindly barge through the routine with TRY, I must at a later > point split the array at "7AE", yet when I encounter the name > classybabe27_742, I get back classybabe2, _, 42. > > And honestly all this stripping and replacing characters is not a > preferred solution. It's an ugly hack to a simple problem, that I'm > sure is going to create problems later in this project. A project I've > already invested 2 weeks in, and am about to have to scrap if this > isn't possible. > > Please tell me I'm doing something wrong here, because if this language > cannot even split a simple string.... > As explained in the Split() documentation, the "Separators" argument is a list of single ASCII characters, each one being a separator. You cannot split with an arbitrary string. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jun 5 22:36:29 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 5 Jun 2011 23:36:29 +0300 Subject: [Gambas-user] Gambas Calculator In-Reply-To: <201106031428.36672.gambas@...1...> References: <201106030832.24193.rterry@...1946...> <201106031911.31558.rterry@...1946...> <201106031428.36672.gambas@...1...> Message-ID: Result is always "Unknown symbol". Gambas 3 rev 3871 @ Ubuntu 11.04 64bit Jussi 2011/6/3 Beno?t Minisini > > Also Gambas has "Evaluator" example, but it doesn't seem to work..? > > > > Jussi > > > > It works there. What's the problem? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 07.rain at ...626... Mon Jun 6 01:15:59 2011 From: 07.rain at ...626... (Titan Rain) Date: Sun, 5 Jun 2011 19:15:59 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: References: Message-ID: <20110605191559.98859652.07.rain@...626...> So in 12 years of development no one has ever thought it might be necessary to split a string by more than one character? From Gambas at ...1950... Mon Jun 6 01:55:08 2011 From: Gambas at ...1950... (Caveat) Date: Mon, 06 Jun 2011 01:55:08 +0200 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <20110605191559.98859652.07.rain@...626...> References: <20110605191559.98859652.07.rain@...626...> Message-ID: <1307318108.3524.17.camel@...2150...> You're asking the wrong question. What you meant to ask was whether anyone thought it necessary to include that functionality in the language itself. Splitting your string on "AE" is easily done, for example: DIM aString AS String DIM strings AS String[] aString = "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319AE303AE319AE301AE318AE300AE318AE65AEFriendsAE302AE319AE300AE319AE7AEleet.spikeAE301AE319AE303AE319AE301AE318AE303AE318AEAE300AE312AE313AE2AE314AE0AE301AE312AE300AE312AE313AE6AE314AE - 1 AE301AE312AE300AE312AE313AE4AE314AE0AE301AE312AE300AE312AE313AE8AE314AE1AE301AE312AE300AE312AE313AE9AE314AE900AE301AE312AE303AE312AE" aString = Replace(aString, "AE", "{") strings = Split(aString, "{") FOR EACH aString IN strings PRINT aString NEXT We are a friendly bunch here on the Gambas user list, please try and keep it that way, even if sometimes a particular problem frustrates you. Also please don't forget that the Gambas language is a labour of love and that it's FREE, before you ask for your money back ;-) Kind regards, Caveat On Sun, 2011-06-05 at 19:15 -0400, Titan Rain wrote: > So in 12 years of development no one has ever thought it might be necessary to split a string by more than one character? > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From 07.rain at ...626... Mon Jun 6 02:29:23 2011 From: 07.rain at ...626... (Titan Rain) Date: Sun, 5 Jun 2011 20:29:23 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: References: Message-ID: <20110605202923.4f622c4b.07.rain@...626...> I'm sorry for the hostility, I am frustrated as you perceived. I've been trying to accomplish this for 3 days, in just this case, as well as the few days I spent hacking my way around it in an earlier case. I've never thought to replace the whole string by some single character then split by that. I appreciate the pointer, and apologize for my anger. From rterry at ...1946... Mon Jun 6 02:36:24 2011 From: rterry at ...1946... (richard terry) Date: Mon, 6 Jun 2011 10:36:24 +1000 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <20110605202923.4f622c4b.07.rain@...626...> References: <20110605202923.4f622c4b.07.rain@...626...> Message-ID: <201106061036.24804.rterry@...1946...> On Monday 06 June 2011 10:29:23 Titan Rain wrote: > I'm sorry for the hostility, I am frustrated as you perceived. I've been > trying to accomplish this for 3 days, in just this case, as well as the > few days I spent hacking my way around it in an earlier case. I've never > thought to replace the whole string by some single character then split by > that. I appreciate the pointer, and apologize for my anger. > > --------------------------------------------------------------------------- > --- Simplify data backup and recovery for your virtual environment with > vRanger. Installation's a snap, and flexible recovery options mean your > data is safe, secure and there when you need it. Discover what all the > cheering's about. Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > The interesting thing about gambas is that many non obvious things are really simple. I similarly used to spend many hours getting frustrated (usually due to my own stupidity and lack of logic, I might add). If you need help just tar a project from the menu in gambas and people will take a look at the code and post it back. Just ask and anyone will help. Regards Richard From shanep at ...2481... Mon Jun 6 04:53:08 2011 From: shanep at ...2481... (Shane Powell) Date: Mon, 06 Jun 2011 12:53:08 +1000 Subject: [Gambas-user] Tableview Background Message-ID: <4DEC4114.5080904@...2481...> hi Group im trying to set the initial background colour of a tableview rows and columns all to a set colour is there a way to do this with out looping through all the rows and columns individually and setting it there thanks Shane From dosida at ...626... Mon Jun 6 07:47:24 2011 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 5 Jun 2011 23:47:24 -0600 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <201106061036.24804.rterry@...1946...> References: <20110605202923.4f622c4b.07.rain@...626...> <201106061036.24804.rterry@...1946...> Message-ID: Hey Titan, Using the Split function is not the only option if you want to parse data from a string There's also Mid$, Left$, Right$ InStr, RInStr and other functions that you use to extract specific data from a string. Scan is another function that you can use to split strings into pieces but it's not as widely used. Check it out here: http://www.gambasdoc.org/help/lang/scan If you're the one generating the string in the first place the best way to go about extracting data from a string is if you create some kind of an identifiable beginning and end of the important information in your string. if you're not the one generating the string in question you need to see if there is an identifiable pattern so you can use InStr or RinStr to find the pattern in the entire string and then chop it off accordingly. It's easy to get frustrated but as in every programming language out there there's always more than just one way to skin a cat For your convenience here is a list of all the string related functions and their descriptions http://www.gambasdoc.org/help/cat/string?v2 Hope this helps Regards, Dimitris On Sun, Jun 5, 2011 at 6:36 PM, richard terry wrote: > On Monday 06 June 2011 10:29:23 Titan Rain wrote: > > I'm sorry for the hostility, I am frustrated as you perceived. I've been > > trying to accomplish this for 3 days, in just this case, as well as the > > few days I spent hacking my way around it in an earlier case. I've never > > thought to replace the whole string by some single character then split > by > > that. I appreciate the pointer, and apologize for my anger. > > > > > --------------------------------------------------------------------------- > > --- Simplify data backup and recovery for your virtual environment with > > vRanger. Installation's a snap, and flexible recovery options mean your > > data is safe, secure and there when you need it. Discover what all the > > cheering's about. Get your free trial download today. > > http://p.sf.net/sfu/quest-dev2dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > The interesting thing about gambas is that many non obvious things are > really > simple. I similarly used to spend many hours getting frustrated (usually > due > to my own stupidity and lack of logic, I might add). > > If you need help just tar a project from the menu in gambas and people will > take a look at the code and post it back. > > Just ask and anyone will help. > > Regards > > Richard > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Mon Jun 6 09:25:53 2011 From: Gambas at ...1950... (Caveat) Date: Mon, 06 Jun 2011 09:25:53 +0200 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <20110605202923.4f622c4b.07.rain@...626...> References: <20110605202923.4f622c4b.07.rain@...626...> Message-ID: <1307345153.3524.37.camel@...2150...> For myself, apology accepted, but then I'm not the one that spent the last 12 years of his life dedicating hour after hour and day after day to developing such an amazing language as Gambas :-) Hearing your frustration, I'm wondering whether you're taking a corkscrew to crack a nut (or a nut-cracker to open a bottle of wine)! :-D I don't really know what it is you're ultimately trying to achieve but if you need to do extensive string manipulations perhaps even involving regular expressions, perl might be a better choice. If you're trying to parse web-pages, then python with a healthy dose of BeautifulSoup may suit your needs better... Gambas is an amazingly powerful language enabling very rapid development of user interfaces but it's not the language I use for every problem I have to solve in IT. Let us know a little more of what it is you're trying to do (some people do work on 'private' projects, so I appreciate the need to keep some information back in some cases), then perhaps we'd be better able to help you further. Kind regards, Caveat On Sun, 2011-06-05 at 20:29 -0400, Titan Rain wrote: > I'm sorry for the hostility, I am frustrated as you perceived. I've been trying to accomplish this for 3 days, in just this case, as well as the few days I spent hacking my way around it in an earlier case. I've never thought to replace the whole string by some single character then split by that. I appreciate the pointer, and apologize for my anger. > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Mon Jun 6 13:44:26 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 06 Jun 2011 21:14:26 +0930 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <1307318108.3524.17.camel@...2150...> References: <20110605191559.98859652.07.rain@...626...> <1307318108.3524.17.camel@...2150...> Message-ID: <4DECBD9A.4070708@...2308...> On 06/06/11 09:25, Caveat wrote: > You're asking the wrong question. What you meant to ask was whether > anyone thought it necessary to include that functionality in the > language itself. > > Splitting your string on "AE" is easily done, for example: > > DIM aString AS String > DIM strings AS String[] > aString = > "AE300AE318AE65AEBuddiesAE302AE319AE300AE319AE7AEclassybabe27_742AE301AE319AE303AE319AE301AE318AE300AE318AE65AEFriendsAE302AE319AE300AE319AE7AEleet.spikeAE301AE319AE303AE319AE301AE318AE303AE318AEAE300AE312AE313AE2AE314AE0AE301AE312AE300AE312AE313AE6AE314AE - 1 AE301AE312AE300AE312AE313AE4AE314AE0AE301AE312AE300AE312AE313AE8AE314AE1AE301AE312AE300AE312AE313AE9AE314AE900AE301AE312AE303AE312AE" > aString = Replace(aString, "AE", "{") > strings = Split(aString, "{") > FOR EACH aString IN strings > PRINT aString > NEXT > > We are a friendly bunch here on the Gambas user list, please try and > keep it that way, even if sometimes a particular problem frustrates you. > > Also please don't forget that the Gambas language is a labour of love > and that it's FREE, before you ask for your money back ;-) > > Kind regards, > Caveat > One thing that I have found helpful (as in making the code more robust) is to use one of the older and mainly obsolete lower invisible ASCII characters (e.g "RS" or "FS" i.e. Chr()'s 28-31 ) as the replacement delimiter, they have less chance of showing up in an externally supplied string. From gambas.fr at ...626... Mon Jun 6 17:19:13 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 6 Jun 2011 17:19:13 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <4DEBA8E1.8060203@...2382...> References: <31776060.post@...1379...> <31776127.post@...1379...> <4DEBA8E1.8060203@...2382...> Message-ID: 2011/6/5 EA7DFH : > El 05/06/11 10:29, charlesg escribi?: >> >> >> shordi wrote: >>> >>> I can't open the file.... > > Me too... It is a common issue when attachments come from Nabble thing :-o > > >>> >> >> Shordi >> >> Hmm.. I don't have a problem (ub10.10 32bit) but have had this in the past. >> Bit odd as I am just using the 'project,make,source archive' from within G3. >> >> Could you try 'gunzip BarcodeG3-0.0.4.tar.gz' from a terminal and work from >> the tar file? > > Accessing this list through Nabble is painful. I've never got correctly > an attachment and it is more than slow. > > I'd recommend to use an actual mail client like Thunderbird or > Evolution, etc to deal with the sourceforge server directly. or gmail ? > > -- > Jesus > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ea7dfh at ...2382... Mon Jun 6 20:06:16 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 06 Jun 2011 20:06:16 +0200 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <1307345153.3524.37.camel@...2150...> References: <20110605202923.4f622c4b.07.rain@...626...> <1307345153.3524.37.camel@...2150...> Message-ID: <4DED1718.9000507@...2382...> El 06/06/11 09:25, Caveat escribi?: > > I don't really know what it is you're ultimately trying to achieve but > if you need to do extensive string manipulations perhaps even involving > regular expressions, perl might be a better choice. If you're trying to > parse web-pages, then python with a healthy dose of BeautifulSoup may > suit your needs better... > And don't forget you also can use a custom made or an existing C library for use from within Gambas. Look for EXTERN in the manuals. Regards -- Jesus Guardon From kevinfishburne at ...1887... Tue Jun 7 05:56:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 06 Jun 2011 23:56:12 -0400 Subject: [Gambas-user] gb3: sending variable of date datatype over UDP Message-ID: <4DEDA15C.7070704@...1887...> Any reason this code wouldn't work? ' Server-side: UDP_Write_56(pip[p], pport[p], tsid[p], Date) Public Sub UDP_Write_56(ip As String, port As Integer, id As Byte, serverdate As Date) ' Send "date update" transaction to specified IP address and port over UDP. ' Define target's IP address and port. udp.TargetHost = ip udp.TargetPort = port ' Send the transaction. udp.Begin Write #udp, id As Byte Write #udp, 56 As Byte Write #udp, serverdate As Date udp.Send End ' Client-side: ' tsdata = 8-byte date string from received UDP packet worlddate = Date@(Convert.Reverse(tsdata)) Public Function Reverse(data As String) As String ' Reverse the order of the passed bytes. ' General declarations. Dim counter As Byte ' Generic counter. Dim length As Byte ' Length of the passed string. Dim reversed As String ' The reversed string. ' Reverse the string length = Len(data) For counter = length To 1 Step -1 reversed = reversed & Mid$(data, counter, 1) Next ' Return the reversed value. Return reversed End If I send and receive it as a float it works, but doesn't give me the time (date only). If I send/receive it as a date it gives me a totally wrong value, such as "10883/26232/-22744 285:08:28". Combinations of the two give me different incorrect values. This technique of reversing bytes received as UDP packets into different datatypes has worked for everything but the date datatype. Any ideas why this is? I need the clients to know what time it is on the server so they can render day/night cycles appropriately. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From shanep at ...2481... Tue Jun 7 07:11:08 2011 From: shanep at ...2481... (Shane Powell) Date: Tue, 07 Jun 2011 15:11:08 +1000 Subject: [Gambas-user] Array's Message-ID: <4DEDB2EC.8020001@...2481...> Hi everyone I have this code public ids[7,24] as integer public sub clearit() ids.Clear end and i get embedded array error at the clear call can anyone tell me the reason for this ? thanks From gambas.fr at ...626... Tue Jun 7 08:11:01 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 7 Jun 2011 08:11:01 +0200 Subject: [Gambas-user] Array's In-Reply-To: <4DEDB2EC.8020001@...2481...> References: <4DEDB2EC.8020001@...2481...> Message-ID: Public ids as new integer [7,24] in your declaration you create an embedded aray not a dynamic one 2011/6/7 Shane Powell : > Hi everyone I have this code > > public ids[7,24] as integer > > public sub clearit() > ids.Clear > end > > and i get embedded array error at the clear call > can anyone tell me the reason for this ? > > thanks > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From 07.rain at ...626... Tue Jun 7 14:12:41 2011 From: 07.rain at ...626... (Titan Rain) Date: Tue, 7 Jun 2011 08:12:41 -0400 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: References: Message-ID: <20110607081241.a0e31567.07.rain@...626...> I appreciate all the suggestions and options everyone has posted, and I'm taking them all into consideration as I move forward in this project. From gambas.fr at ...626... Tue Jun 7 16:49:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 7 Jun 2011 16:49:03 +0200 Subject: [Gambas-user] Unable to split string containing ascii characters In-Reply-To: <1307345153.3524.37.camel@...2150...> References: <20110605202923.4f622c4b.07.rain@...626...> <1307345153.3524.37.camel@...2150...> Message-ID: 2011/6/6 Caveat : > For myself, apology accepted, but then I'm not the one that spent the > last 12 years of his life dedicating hour after hour and day after day > to developing such an amazing language as Gambas :-) > > Hearing your frustration, I'm wondering whether you're taking a > corkscrew to crack a nut (or a nut-cracker to open a bottle of > wine)! :-D > > I don't really know what it is you're ultimately trying to achieve but > if you need to do extensive string manipulations perhaps even involving > regular expressions, perl might be a better choice. ?If you're trying to > parse web-pages, then python with a healthy dose of BeautifulSoup may > suit your needs better... take a look at gambasforge ... (on sf) we use a home made html parser :).. not perfect but. > Gambas is an amazingly powerful language enabling very rapid development > of user interfaces but it's not the language I use for every problem I > have to solve in IT. > > Let us know a little more of what it is you're trying to do (some people > do work on 'private' projects, so I appreciate the need to keep some > information back in some cases), then perhaps we'd be better able to > help you further. > > Kind regards, > Caveat > > On Sun, 2011-06-05 at 20:29 -0400, Titan Rain wrote: >> I'm sorry for the hostility, I am frustrated as you perceived. I've been trying to accomplish this for 3 days, in just this case, as well as the few days I spent hacking my way around it in an earlier case. I've never thought to replace the whole string by some single character then split by that. I appreciate the pointer, and apologize for my anger. >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with vRanger. >> Installation's a snap, and flexible recovery options mean your data is safe, >> secure and there when you need it. Discover what all the cheering's about. >> Get your free trial download today. >> http://p.sf.net/sfu/quest-dev2dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From karl.reinl at ...9... Tue Jun 7 17:31:29 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 07 Jun 2011 17:31:29 +0200 Subject: [Gambas-user] I found the cradle Message-ID: <1307460689.6373.4.camel@...40...> the innkeeper talks french. I found the cradle, did I ?I found the cradle -------------- next part -------------- A non-text attachment was scrubbed... Name: IMGP2596.tif Type: image/tiff Size: 193307 bytes Desc: not available URL: From charles at ...1784... Wed Jun 8 12:02:32 2011 From: charles at ...1784... (charlesg) Date: Wed, 8 Jun 2011 03:02:32 -0700 (PDT) Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <4DEBB066.8090708@...626...> References: <4DEBB066.8090708@...626...> Message-ID: <31799277.post@...1379...> Pino Zollo wrote: > > FMain.printer_Draw.49: FMain.printer_Draw.47 Type mismatch: wanted > Float, got Null instead > I am hoping the following will allow for comma decimals (would be grateful if you could check) : ftp://ftp.drivehq.com/charlesg628/publicfolder/BarcodeG3-0.0.5.tar.gz BarcodeG3-0.0.5.tar.gz -- View this message in context: http://old.nabble.com/Barcode-example-for-Gambas3-tp31778023p31799277.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Wed Jun 8 14:28:12 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 8 Jun 2011 13:28:12 +0100 Subject: [Gambas-user] Calendar control bug Message-ID: Hi, Please, run this gambas3 example. Click on button and then click on the calendar left arrow. It shows a Color class error. Tryed in 3 boxes with ubuntu 10.10 x86_64 and 11.04 x86_64 and now in (Current gambas3 rev is 3858): [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35-28-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" [System] CPUArchitecture=x86_64 TotalRam=3722264 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=Not Installed Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 Regards, Ricardo D?az -------------- next part -------------- A non-text attachment was scrubbed... Name: CalendarPossibleBug-0.0.1.tar.gz Type: application/x-gzip Size: 4889 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Wed Jun 8 14:29:55 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 8 Jun 2011 13:29:55 +0100 Subject: [Gambas-user] Calendar control bug Message-ID: Hi, Please, run this gambas3 example. Click on button and then click on the calendar left arrow. It shows a Color class error. Tryed in 3 boxes with ubuntu 10.10 x86_64 and 11.04 x86_64 and now in (Current gambas3 rev is 3858): [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35-28-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" [System] CPUArchitecture=x86_64 TotalRam=3722264 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=Not Installed Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 Regards, Ricardo D?az -------------- next part -------------- A non-text attachment was scrubbed... Name: CalendarPossibleBug-0.0.1.tar.gz Type: application/x-gzip Size: 4889 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Wed Jun 8 14:30:46 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 8 Jun 2011 13:30:46 +0100 Subject: [Gambas-user] Calendar control bug In-Reply-To: References: Message-ID: Hi, Please, run this gambas3 example. Click on button and then click on the calendar left arrow. It shows a Color class error. Tryed in 3 boxes with ubuntu 10.10 x86_64 and 11.04 x86_64 and now in (Current gambas3 rev is 3858): [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.35-28-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.04" [System] CPUArchitecture=x86_64 TotalRam=3722264 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=Not Installed Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 Regards, Ricardo D?az -------------- next part -------------- A non-text attachment was scrubbed... Name: CalendarPossibleBug-0.0.1.tar.gz Type: application/x-gzip Size: 4889 bytes Desc: not available URL: From gambas at ...1... Wed Jun 8 15:00:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Jun 2011 15:00:41 +0200 Subject: [Gambas-user] gb3: sending variable of date datatype over UDP In-Reply-To: <4DEDA15C.7070704@...1887...> References: <4DEDA15C.7070704@...1887...> Message-ID: <201106081500.41494.gambas@...1...> > Any reason this code wouldn't work? > > ' Server-side: > > UDP_Write_56(pip[p], pport[p], tsid[p], Date) > > Public Sub UDP_Write_56(ip As String, port As Integer, id As Byte, > serverdate As Date) > > ' Send "date update" transaction to specified IP address and port > over UDP. > > ' Define target's IP address and port. > udp.TargetHost = ip > udp.TargetPort = port > > ' Send the transaction. > udp.Begin > Write #udp, id As Byte > Write #udp, 56 As Byte > Write #udp, serverdate As Date > udp.Send > > End > > ' Client-side: > > ' tsdata = 8-byte date string from received UDP packet > worlddate = Date@(Convert.Reverse(tsdata)) > > Public Function Reverse(data As String) As String > > ' Reverse the order of the passed bytes. > > ' General declarations. > Dim counter As Byte ' Generic counter. > Dim length As Byte ' Length of the passed string. > Dim reversed As String ' The reversed string. > > ' Reverse the string > length = Len(data) > For counter = length To 1 Step -1 > reversed = reversed & Mid$(data, counter, 1) > Next > > ' Return the reversed value. > Return reversed > > End > > If I send and receive it as a float it works, but doesn't give me the > time (date only). If I send/receive it as a date it gives me a totally > wrong value, such as "10883/26232/-22744 285:08:28". Combinations of the > two give me different incorrect values. > > This technique of reversing bytes received as UDP packets into different > datatypes has worked for everything but the date datatype. Any ideas why > this is? I need the clients to know what time it is on the server so > they can render day/night cycles appropriately. Date are sent as two 32-bits integers. So you must not reverse the all string, but each four bytes part indepently. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jun 8 15:09:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Jun 2011 15:09:27 +0200 Subject: [Gambas-user] Tableview Background In-Reply-To: <4DEC4114.5080904@...2481...> References: <4DEC4114.5080904@...2481...> Message-ID: <201106081509.27673.gambas@...1...> > hi Group im trying to set the initial background colour of a tableview > rows and columns all to a set colour > is there a way to do this with out looping through all the rows and > columns individually and setting it there > thanks > Shane > > Setting the TableView Background property does not achieve what you want? Which version of Gambas do you use? Which GUI component do you use? -- Beno?t Minisini From gambas at ...1... Wed Jun 8 15:20:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Jun 2011 15:20:05 +0200 Subject: [Gambas-user] Calendar control bug In-Reply-To: References: Message-ID: <201106081520.05584.gambas@...1...> > Hi, > > Please, run this gambas3 example. Click on button and then click on the > calendar left arrow. It shows a Color class error. > > ... Fixed in revision #3873. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jun 8 15:16:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 8 Jun 2011 15:16:57 +0200 Subject: [Gambas-user] Barcode example for Gambas3 In-Reply-To: <31799277.post@...1379...> References: <4DEBB066.8090708@...626...> <31799277.post@...1379...> Message-ID: <201106081516.57357.gambas@...1...> > Pino Zollo wrote: > > FMain.printer_Draw.49: FMain.printer_Draw.47 Type mismatch: wanted > > Float, got Null instead > > I am hoping the following will allow for comma decimals (would be grateful > if you could check) : > > ftp://ftp.drivehq.com/charlesg628/publicfolder/BarcodeG3-0.0.5.tar.gz > BarcodeG3-0.0.5.tar.gz The "Case" tests in ChkInput method are incorrect: Select Key.Code Case (key["n"] Or Key["N"]) And Key.Alt does not mean: If (Key.Code = Key["n"] Or Key.Code = Key["N"]) And Key.Alt but: If Key.Code = ((Key["n"] Or Key["N"]) And Key.Alt) And if you want to check against an alphabetic key, you should use Key.Text, not Key.Code. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Wed Jun 8 16:02:40 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 8 Jun 2011 15:02:40 +0100 Subject: [Gambas-user] Calendar control bug In-Reply-To: <201106081520.05584.gambas@...1...> References: <201106081520.05584.gambas@...1...> Message-ID: Thanks! Works fine. 2011/6/8 Beno?t Minisini > > Hi, > > > > Please, run this gambas3 example. Click on button and then click on the > > calendar left arrow. It shows a Color class error. > > > > ... > > Fixed in revision #3873. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jun 9 00:11:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jun 2011 22:11:20 +0000 Subject: [Gambas-user] Issue 67 in gambas: Creating an ubuntu .deb installer for a component uses wrong directory In-Reply-To: <0-6813199134517018827-9521377799252433313-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9521377799252433313-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9521377799252433313-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-Any Comment #1 on issue 67 by benoit.m... at ...626...: Creating an ubuntu .deb installer for a component uses wrong directory http://code.google.com/p/gambas/issues/detail?id=67 According to Debian documentation, program prefix must be '/usr', as '/usr/local' is reserved to the private use of the system administrator. See http://www.debian.org/doc/manuals/maint-guide/modify.en.html#destdir From shanep at ...2481... Thu Jun 9 00:25:43 2011 From: shanep at ...2481... (Shane Powell) Date: Thu, 09 Jun 2011 08:25:43 +1000 Subject: [Gambas-user] Tableview Background In-Reply-To: <201106081509.27673.gambas@...1...> References: <4DEC4114.5080904@...2481...> <201106081509.27673.gambas@...1...> Message-ID: <4DEFF6E7.5090601@...2481...> On 08/06/11 23:09, Beno?t Minisini wrote: >> hi Group im trying to set the initial background colour of a tableview >> rows and columns all to a set colour >> is there a way to do this with out looping through all the rows and >> columns individually and setting it there >> thanks >> Shane >> >> > Setting the TableView Background property does not achieve what you want? > Which version of Gambas do you use? Which GUI component do you use? > hi Benoit im using gambas 3 3871 and im using qt-4 at design time when i set the background color only the part of the control that dosnt have the grid on it has the changed color From gambas at ...1... Thu Jun 9 00:32:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 9 Jun 2011 00:32:58 +0200 Subject: [Gambas-user] Tableview Background In-Reply-To: <4DEFF6E7.5090601@...2481...> References: <4DEC4114.5080904@...2481...> <201106081509.27673.gambas@...1...> <4DEFF6E7.5090601@...2481...> Message-ID: <201106090032.58963.gambas@...1...> > > hi Benoit > im using gambas 3 3871 and im using qt-4 > at design time when i set the background color only the part of > the control that dosnt have the grid on it has the changed color > Do you have a screenshot? Can you make a little project that reproduces your problem? -- Beno?t Minisini From shanep at ...2481... Thu Jun 9 01:06:39 2011 From: shanep at ...2481... (Shane Powell) Date: Thu, 09 Jun 2011 09:06:39 +1000 Subject: [Gambas-user] Tableview Background In-Reply-To: <201106090032.58963.gambas@...1...> References: <4DEC4114.5080904@...2481...> <201106081509.27673.gambas@...1...> <4DEFF6E7.5090601@...2481...> <201106090032.58963.gambas@...1...> Message-ID: <4DF0007F.4010504@...2481...> On 09/06/11 08:32, Beno?t Minisini wrote: >> hi Benoit >> im using gambas 3 3871 and im using qt-4 >> at design time when i set the background color only the part of >> the control that dosnt have the grid on it has the changed color >> > Do you have a screenshot? Can you make a little project that reproduces your > problem? > here are some screenshots the GTK seems to be ok but QT-4 is not working or is this the way its meant to be ? -------------- next part -------------- A non-text attachment was scrubbed... Name: Gtk_tableview.png Type: image/png Size: 4916 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Qt-4.png Type: image/png Size: 5810 bytes Desc: not available URL: From gambas at ...2524... Thu Jun 9 01:40:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jun 2011 23:40:51 +0000 Subject: [Gambas-user] Issue 64 in gambas: Trying to add a dependency when building an AutoPackage Installer chashes the IDE In-Reply-To: <1-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> <0-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 64 by benoit.m... at ...626...: Trying to add a dependency when building an AutoPackage Installer chashes the IDE http://code.google.com/p/gambas/issues/detail?id=64 That is not supported by the AutoTools packager, so it must not be visible in the wizard. Fixed in revision #3874. From gambas at ...2524... Thu Jun 9 01:44:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 08 Jun 2011 23:44:54 +0000 Subject: [Gambas-user] Issue 65 in gambas: Trying to add an additional file when building an AutoTools package chashes the IDE In-Reply-To: <1-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> <0-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #2 on issue 65 by benoit.m... at ...626...: Trying to add an additional file when building an AutoTools package chashes the IDE http://code.google.com/p/gambas/issues/detail?id=65 That is not supported yet by the AutoTools packager. Something to be done... At the moment, I removed the option from the wizard in revision #3874. From gambas at ...1... Thu Jun 9 02:34:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 9 Jun 2011 02:34:48 +0200 Subject: [Gambas-user] Tableview Background In-Reply-To: <4DF0007F.4010504@...2481...> References: <4DEC4114.5080904@...2481...> <201106090032.58963.gambas@...1...> <4DF0007F.4010504@...2481...> Message-ID: <201106090234.48495.gambas@...1...> > On 09/06/11 08:32, Beno?t Minisini wrote: > >> hi Benoit > >> > >> im using gambas 3 3871 and im using qt-4 > >> > >> at design time when i set the background color only the part of > >> the control that dosnt have the grid on it has the changed color > > > > Do you have a screenshot? Can you make a little project that reproduces > > your problem? > > here are some screenshots the GTK seems to be ok but QT-4 is not working > or is this the way its meant to be ? OK, the bug has been fixed in revision #3875. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Jun 9 03:58:36 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 08 Jun 2011 21:58:36 -0400 Subject: [Gambas-user] gb3: sending variable of date datatype over UDP In-Reply-To: <201106081500.41494.gambas@...1...> References: <4DEDA15C.7070704@...1887...> <201106081500.41494.gambas@...1...> Message-ID: <4DF028CC.909@...1887...> On 06/08/2011 09:00 AM, Beno?t Minisini wrote: >> Any reason this code wouldn't work? >> >> ' Server-side: >> >> UDP_Write_56(pip[p], pport[p], tsid[p], Date) >> >> Public Sub UDP_Write_56(ip As String, port As Integer, id As Byte, >> serverdate As Date) >> >> ' Send "date update" transaction to specified IP address and port >> over UDP. >> >> ' Define target's IP address and port. >> udp.TargetHost = ip >> udp.TargetPort = port >> >> ' Send the transaction. >> udp.Begin >> Write #udp, id As Byte >> Write #udp, 56 As Byte >> Write #udp, serverdate As Date >> udp.Send >> >> End >> >> ' Client-side: >> >> ' tsdata = 8-byte date string from received UDP packet >> worlddate = Date@(Convert.Reverse(tsdata)) >> >> Public Function Reverse(data As String) As String >> >> ' Reverse the order of the passed bytes. >> >> ' General declarations. >> Dim counter As Byte ' Generic counter. >> Dim length As Byte ' Length of the passed string. >> Dim reversed As String ' The reversed string. >> >> ' Reverse the string >> length = Len(data) >> For counter = length To 1 Step -1 >> reversed = reversed& Mid$(data, counter, 1) >> Next >> >> ' Return the reversed value. >> Return reversed >> >> End >> >> If I send and receive it as a float it works, but doesn't give me the >> time (date only). If I send/receive it as a date it gives me a totally >> wrong value, such as "10883/26232/-22744 285:08:28". Combinations of the >> two give me different incorrect values. >> >> This technique of reversing bytes received as UDP packets into different >> datatypes has worked for everything but the date datatype. Any ideas why >> this is? I need the clients to know what time it is on the server so >> they can render day/night cycles appropriately. > > Date are sent as two 32-bits integers. So you must not reverse the all string, > but each four bytes part indepently. Got it. Funny datatype, no? What's interesting however is that this code: worlddate = Date@(Convert.Reverse(Mid$(tsdata, 1, 4)) & Convert.Reverse(Mid$(tsdata, 5, 4))) gives me the correct date but not the correct time. The date appears as "06/08/11" but the time appears as "05:00:00" when I use the code ?Time(worlddate) in the console. Maybe there's a different way to extract the time from a date datatype, or maybe I'm doing something wrong in reverse-engineering the datatype. The good news is that I think I just realized that I don't need the date sent to the client, just the time for day/night cycles. The client can use that time value plus Timer to determine the current server time. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From shanep at ...2481... Thu Jun 9 03:58:39 2011 From: shanep at ...2481... (Shane Powell) Date: Thu, 09 Jun 2011 11:58:39 +1000 Subject: [Gambas-user] Tableview Background In-Reply-To: <201106090234.48495.gambas@...1...> References: <4DEC4114.5080904@...2481...> <201106090032.58963.gambas@...1...> <4DF0007F.4010504@...2481...> <201106090234.48495.gambas@...1...> Message-ID: <4DF028CF.5070506@...2481...> On 09/06/11 10:34, Beno?t Minisini wrote: >> On 09/06/11 08:32, Beno?t Minisini wrote: >>>> hi Benoit >>>> >>>> im using gambas 3 3871 and im using qt-4 >>>> >>>> at design time when i set the background color only the part of >>>> the control that dosnt have the grid on it has the changed color >>> Do you have a screenshot? Can you make a little project that reproduces >>> your problem? >> here are some screenshots the GTK seems to be ok but QT-4 is not working >> or is this the way its meant to be ? > OK, the bug has been fixed in revision #3875. > > Regards, > thanks Benoit From kevinfishburne at ...1887... Thu Jun 9 04:27:58 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 08 Jun 2011 22:27:58 -0400 Subject: [Gambas-user] arithmetic operations on dates and times Message-ID: <4DF02FAE.6090007@...1887...> Alright, I wouldn't bother the list but this is blowing my mind a little bit. The date and time in the game world should start at an arbitrary point and be modified by the system clock on the server and a scale value ((timebase + timeserver) * timescale = gameworldtime). So if the base time starts at the year 1000, the server clock's year is 2011 and the time scale is 4 then the game world time should be in the year 12044 ((1000 + 2011) * 4). The date and time ideally would be treated as a single entity so everything is scaled by four proportionally. How in the world would one do this? It's not really important that the client know the actual date, but it does need to know the time. The client should be able to add "Timer" to the game world time so it can keep an accurate 24-hour time while the player is playing. Basically the client would receive the game world time upon authentication, then look at "gameworldtime + Timer" to determine what time of day it was until the player stopped playing. I noticed that adding and subtracting to a date or time prints a floating point number, but multiplying or dividing complains about expected datatypes. Any insight or outright solutions would bring light and dark to the world. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ihaywood at ...1979... Thu Jun 9 04:54:13 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 9 Jun 2011 12:54:13 +1000 Subject: [Gambas-user] arithmetic operations on dates and times In-Reply-To: <4DF02FAE.6090007@...1887...> References: <4DF02FAE.6090007@...1887...> Message-ID: On Thu, Jun 9, 2011 at 12:27 PM, Kevin Fishburne wrote: > How in the world would one do this? It's not really important that the > client know the actual date, but it does need to know the time. The > client should be able to add "Timer" to the game world time so it can > keep an accurate 24-hour time while the player is playing. Basically the > client would receive the game world time upon authentication, then look > at "gameworldtime + Timer" to determine what time of day it was until > the player stopped playing. > > I noticed that adding and subtracting to a date or time prints a > floating point number, but multiplying or dividing complains about > expected datatypes. Any insight or outright solutions would bring light > and dark to the world. :) Best suggestion is to formally convert the Date to a Float using CFloat(...) function. This number is the number of days since 8000BC, time is the fraction part, so .5 for noon exactly, just before midnight will be .99 and so on. So your equation is ( CFloat(base_time) + CFloat(Now) ) * 4 You can then use CDate to turn this nuber back into a real date. BUT my advice would be to send this number, before conversion, down the wire to the client. The client then calculates its own time using server_time + (Timer () / 86400.0) 86,400 is the number of seconds in a day, this is because Timer comes in seconds and we want fraction-of-day to keep in line with everything else. This number can then be converted back to a date and displayed by the client, using the clients own localisation setting (not the servers) so users see the time in their own localisation, but servers and clients don't stuff up if they are in different countries Ian From Gambas at ...1950... Thu Jun 9 14:17:04 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 09 Jun 2011 14:17:04 +0200 Subject: [Gambas-user] arithmetic operations on dates and times In-Reply-To: References: <4DF02FAE.6090007@...1887...> Message-ID: <1307621824.3259.23.camel@...2150...> Apologies if I'm missing something obvious here, or have maybe misunderstood the concept of 'scaling' the time... but wouldn't you need to account for your scale factor also in the client time calculation? So for your client to know what "now" is in the game world, you'd need server_time + (( Timer()/86400 ) * 4) [if the player has been playing for an hour, the game time has moved on by 4 hours] Or should it be that game time only moves at 4x the speed while the player is absent (a bit like the Lion, the Witch and the Wardrobe)? Also, again working on the assumption that time goes by 4x as quickly in the game world as in the real world... when the server year hits 2012, your game year would then jump to 12048... meaning 4 game years have gone by in 1 real year. But, it would seem more 'natural' for the game year to increment every 3 months, so it doesn't seem as simple as just multiplying up the sum of real server year and base year by your factor (4 in the example). This means you can't presume that the game year is 12044 just because the real year is 2011, you'd have to know what month it is too... Regards, Caveat On Thu, 2011-06-09 at 12:54 +1000, Ian Haywood wrote: > On Thu, Jun 9, 2011 at 12:27 PM, Kevin Fishburne > wrote: > > How in the world would one do this? It's not really important that the > > client know the actual date, but it does need to know the time. The > > client should be able to add "Timer" to the game world time so it can > > keep an accurate 24-hour time while the player is playing. Basically the > > client would receive the game world time upon authentication, then look > > at "gameworldtime + Timer" to determine what time of day it was until > > the player stopped playing. > > > > I noticed that adding and subtracting to a date or time prints a > > floating point number, but multiplying or dividing complains about > > expected datatypes. Any insight or outright solutions would bring light > > and dark to the world. :) > Best suggestion is to formally convert the Date to a Float using > CFloat(...) function. > This number is the number of days since 8000BC, time is the fraction > part, so .5 for noon exactly, just before midnight will be .99 and so > on. > > So your equation is > > ( CFloat(base_time) + CFloat(Now) ) * 4 > > You can then use CDate to turn this nuber back into a real date. BUT > my advice would be to send this number, before conversion, down the > wire to the client. > > The client then calculates its own time using > server_time + (Timer () / 86400.0) > > 86,400 is the number of seconds in a day, this is because Timer comes > in seconds and we want fraction-of-day to keep in line with everything > else. > > This number can then be converted back to a date and displayed by the > client, using the clients own localisation setting (not the servers) > so users see the time in their own localisation, but servers and > clients don't stuff up if they are in different countries > > Ian > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Jun 9 16:26:29 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 9 Jun 2011 17:26:29 +0300 Subject: [Gambas-user] arithmetic operations on dates and times In-Reply-To: <4DF02FAE.6090007@...1887...> References: <4DF02FAE.6090007@...1887...> Message-ID: I'm not sure I understand correctly, but this code adds one year to current date and prints it. Print Date(Year(Now) + 1, Month(Date), Day(Now), Hour(Now), Minute(Now), Second(Now)) But I don't know what is upper limit of accepted year. Maybe you want to use integer or even long variables instead to hold your time values. Jussi On Thu, Jun 9, 2011 at 05:27, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > Alright, I wouldn't bother the list but this is blowing my mind a little > bit. > > The date and time in the game world should start at an arbitrary point > and be modified by the system clock on the server and a scale value > ((timebase + timeserver) * timescale = gameworldtime). So if the base > time starts at the year 1000, the server clock's year is 2011 and the > time scale is 4 then the game world time should be in the year 12044 > ((1000 + 2011) * 4). The date and time ideally would be treated as a > single entity so everything is scaled by four proportionally. > > How in the world would one do this? It's not really important that the > client know the actual date, but it does need to know the time. The > client should be able to add "Timer" to the game world time so it can > keep an accurate 24-hour time while the player is playing. Basically the > client would receive the game world time upon authentication, then look > at "gameworldtime + Timer" to determine what time of day it was until > the player stopped playing. > > I noticed that adding and subtracting to a date or time prints a > floating point number, but multiplying or dividing complains about > expected datatypes. Any insight or outright solutions would bring light > and dark to the world. :) > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jun 9 21:23:40 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 9 Jun 2011 22:23:40 +0300 Subject: [Gambas-user] Extra gb.newline ? Message-ID: Hi! I made small simple command line program to shuffle data (see attachment), but there is strange problem. For some reason extra newline is inserted. If I run this program with command; ./Shuffler.gambas test.txt test2.txt , Then data like this; 1,2,3,4,5,6,7,8,9,10 Turns into something like this; 7,9,10 ,6,8,2,5,3,4,1 Seems like extra newline is always after number 10. Bug? Gambas 3 rev 3871 @ Ubuntu 11.04 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Shuffler-0.0.8.tar.gz Type: application/x-gzip Size: 5026 bytes Desc: not available URL: From tobiasboe1 at ...20... Thu Jun 9 22:32:57 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 09 Jun 2011 22:32:57 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: References: Message-ID: <4DF12DF9.3070802@...20...> hi, without having seen the code - i think it's all ok with your code - i'd say that the problem is in creation of the text file. editors like gedit are likely to add a newline at the end of file so it is shuffled into the second file, too. try to create your file like this in terminal: echo -n "1,2,3,4,5,6,7,8,9,10" > test.txt the -n switch disables the trailing newline... regards, tobi From tommyline at ...2525... Fri Jun 10 14:17:55 2011 From: tommyline at ...2525... (Tomek) Date: Fri, 10 Jun 2011 14:17:55 +0200 Subject: [Gambas-user] OpenGL question. Message-ID: Hi Group. I'm trying to port some examples on OpenGL from NeHe's site, but found myself stuck with the stencil functions, wchich seems no to work properly. In the attached example you can compare object's behaviour in both C and Gambas programs. The ball on the bottom shoudn't appear anywhere else then as the reflection. Even using external stencil functions (even thou they are implemented in Gambas GL library) didn't change anything. It may have something to do with the mode the screen is initiated, as in c program : glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL ). I just wonder if there is a way to change the way the screen is initiated? Or maybe some other solution? ---------------------------------------------------------------- Doladuj telefon przez Internet! Sprawdz >> http://linkint.pl/f29ba -------------- next part -------------- A non-text attachment was scrubbed... Name: lesson26gambas.tar Type: application/x-tar Size: 64412 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lesson26.tar Type: application/x-tar Size: 61342 bytes Desc: not available URL: From tobiasboe1 at ...20... Fri Jun 10 14:20:50 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 10 Jun 2011 14:20:50 +0200 Subject: [Gambas-user] Multiline question Message-ID: <4DF20C22.10506@...20...> hello, i have a question about long lines. i know one can split long IF-statements at logical operations like IF TRUE = TRUE AND FALSE = FALSE THEN but is there a way to do that splitting in normal code? i think of something like i = \ 2 which should end up as i = 2 for the interpreter. is there something like this? regards, tobi From sebikul at ...626... Fri Jun 10 16:03:18 2011 From: sebikul at ...626... (Sebi Kul) Date: Fri, 10 Jun 2011 11:03:18 -0300 Subject: [Gambas-user] Multiline question In-Reply-To: <4DF20C22.10506@...20...> References: <4DF20C22.10506@...20...> Message-ID: <9059204910706343749@...714...> On 10/06/2011, at 09:21, tobias wrote: > hello, > i have a question about long lines. i know one can split long > IF-statements at logical operations like > IF TRUE = TRUE AND > FALSE = FALSE THEN > but is there a way to do that splitting in normal code? i think of > something like > i = \ > 2 > > which should end up as > i = 2 > for the interpreter. is there something like this? > > regards, > tobi > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user You can do like this: Foo=bar& Var1& &foo Which results in: "barVar1foo" From tobiasboe1 at ...20... Fri Jun 10 16:06:56 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 10 Jun 2011 16:06:56 +0200 Subject: [Gambas-user] Multiline question In-Reply-To: <9059204910706343749@...714...> References: <4DF20C22.10506@...20...> <9059204910706343749@...714...> Message-ID: <4DF22500.8070205@...20...> hi, > You can do like this: > > Foo=bar& > Var1& > &foo > > Which results in: "barVar1foo" > it doesn't work for me. is it a gambas3 thing? From eilert-sprachen at ...221... Fri Jun 10 16:57:22 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 10 Jun 2011 16:57:22 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: References: Message-ID: <4DF230D2.2020206@...221...> Am 09.06.2011 21:23, schrieb Jussi Lahtinen: > Hi! > I made small simple command line program to shuffle data (see attachment), > but there is strange problem. > For some reason extra newline is inserted. > > If I run this program with command; > ./Shuffler.gambas test.txt test2.txt , > > Then data like this; > 1,2,3,4,5,6,7,8,9,10 > > Turns into something like this; > 7,9,10 > ,6,8,2,5,3,4,1 > > Seems like extra newline is always after number 10. Bug? > > Gambas 3 rev 3871 @ Ubuntu 11.04 64bit > > Jussi > By the way, seeing through your code, why do you try to open the file for write create first and then use file.save? What would be the disadvantage of using TRY file.save alone? Rolf From eilert-sprachen at ...221... Fri Jun 10 17:17:59 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 10 Jun 2011 17:17:59 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: References: Message-ID: <4DF235A7.50903@...221...> Am 09.06.2011 21:23, schrieb Jussi Lahtinen: > Hi! > I made small simple command line program to shuffle data (see attachment), > but there is strange problem. > For some reason extra newline is inserted. > > If I run this program with command; > ./Shuffler.gambas test.txt test2.txt , > > Then data like this; > 1,2,3,4,5,6,7,8,9,10 > > Turns into something like this; > 7,9,10 > ,6,8,2,5,3,4,1 > > Seems like extra newline is always after number 10. Bug? > > Gambas 3 rev 3871 @ Ubuntu 11.04 64bit > > Jussi > Just to make a guess: In test.txt, after the 10, you typed a CR? Then the line is separated into 1 2 3 ... 10CR and when it's randomized, the "10CR" lands somewhere within the new string and produces this effect when saved into a new file. Rolf From jussi.lahtinen at ...626... Fri Jun 10 19:16:14 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 10 Jun 2011 20:16:14 +0300 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: <4DF12DF9.3070802@...20...> References: <4DF12DF9.3070802@...20...> Message-ID: Yes, you are right, gedit will add newline automatically. That was unexpected. Thanks! Jussi On Thu, Jun 9, 2011 at 23:32, tobias wrote: > hi, > without having seen the code - i think it's all ok with your code - i'd > say that the problem is in creation of the text file. editors like gedit > are likely to add a newline at the end of file so it is shuffled into > the second file, too. try to create your file like this in terminal: > echo -n "1,2,3,4,5,6,7,8,9,10" > test.txt > the -n switch disables the trailing newline... > > regards, > tobi > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 10 19:45:25 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 10 Jun 2011 20:45:25 +0300 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: <4DF230D2.2020206@...221...> References: <4DF230D2.2020206@...221...> Message-ID: On Fri, Jun 10, 2011 at 17:57, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > By the way, seeing through your code, why do you try to open the file > for write create first and then use file.save? What would be the > disadvantage of using TRY file.save alone? > Yeah, I could use 'Try File.Save(sOutput, "")' to test if sOuput is valid path with right privileges. This was very quickly written without thinking much, and "Open" pop into my mind first. But check is good to have, if you have big file to shuffle it would suck to know after a while that something wasn't right. Jussi From jussi.lahtinen at ...626... Fri Jun 10 19:56:13 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 10 Jun 2011 20:56:13 +0300 Subject: [Gambas-user] Multiline question In-Reply-To: <4DF20C22.10506@...20...> References: <4DF20C22.10506@...20...> Message-ID: What do you need exactly? Sometimes you can short lines with "With", and math can be done in multiple steps. ii = 2 + 4 * f(1 + 2) + ... --> x = 1 + 2 ii = 4 * f(x) ii += 2 + ... Or: sString = "123" --> sString = "1" & "2" & "3" Or: iInteger = 1 + 2 + 3 --> iInteger = 1 + 2 + 3 These all should work with Gambas 2.23. Jussi On Fri, Jun 10, 2011 at 15:20, tobias wrote: > hello, > i have a question about long lines. i know one can split long > IF-statements at logical operations like > IF TRUE = TRUE AND > FALSE = FALSE THEN > but is there a way to do that splitting in normal code? i think of > something like > i = \ > 2 > > which should end up as > i = 2 > for the interpreter. is there something like this? > > regards, > tobi > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Fri Jun 10 20:08:19 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 10 Jun 2011 20:08:19 +0200 Subject: [Gambas-user] Multiline question In-Reply-To: References: <4DF20C22.10506@...20...> Message-ID: <4DF25D93.3030705@...20...> > What do you need exactly? i think the person i am asking for means something like the backslash with defines in c: #define MACRO(a, b) a \ + b i have no snippet from him and honestly i never had such a problem. regards, tobi From Gambas at ...1950... Fri Jun 10 19:53:02 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 10 Jun 2011 19:53:02 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: References: <4DF12DF9.3070802@...20...> Message-ID: <1307728382.3259.34.camel@...2150...> vi will also add a newline automatically. In fact, it can be a little tricky to make a file without the newline at the end (but of course it can be done, as seen below)... also on opening, vi will complain with the message "incomplete last line"... If you are creating a text file as your output, ultimately you *should* try to make sure your file ends with a newline, to be compliant with the way 'nix expects text files to be. Regards, Caveat On Fri, 2011-06-10 at 20:16 +0300, Jussi Lahtinen wrote: > Yes, you are right, gedit will add newline automatically. > That was unexpected. Thanks! > > Jussi > > > On Thu, Jun 9, 2011 at 23:32, tobias wrote: > > > hi, > > without having seen the code - i think it's all ok with your code - i'd > > say that the problem is in creation of the text file. editors like gedit > > are likely to add a newline at the end of file so it is shuffled into > > the second file, too. try to create your file like this in terminal: > > echo -n "1,2,3,4,5,6,7,8,9,10" > test.txt > > the -n switch disables the trailing newline... > > > > regards, > > tobi > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jun 10 21:02:57 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 10 Jun 2011 22:02:57 +0300 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: <1307728382.3259.34.camel@...2150...> References: <4DF12DF9.3070802@...20...> <1307728382.3259.34.camel@...2150...> Message-ID: One way to remove newline is use hex editor (GHex etc). Jussi On Fri, Jun 10, 2011 at 20:53, Caveat wrote: > vi will also add a newline automatically. In fact, it can be a little > tricky to make a file without the newline at the end (but of course it > can be done, as seen below)... also on opening, vi will complain with > the message "incomplete last line"... > > If you are creating a text file as your output, ultimately you *should* > try to make sure your file ends with a newline, to be compliant with the > way 'nix expects text files to be. > > Regards, > Caveat > > On Fri, 2011-06-10 at 20:16 +0300, Jussi Lahtinen wrote: > > Yes, you are right, gedit will add newline automatically. > > That was unexpected. Thanks! > > > > Jussi > > > > > > On Thu, Jun 9, 2011 at 23:32, tobias wrote: > > > > > hi, > > > without having seen the code - i think it's all ok with your code - i'd > > > say that the problem is in creation of the text file. editors like > gedit > > > are likely to add a newline at the end of file so it is shuffled into > > > the second file, too. try to create your file like this in terminal: > > > echo -n "1,2,3,4,5,6,7,8,9,10" > test.txt > > > the -n switch disables the trailing newline... > > > > > > regards, > > > tobi > > > > > > > > > > ------------------------------------------------------------------------------ > > > EditLive Enterprise is the world's most technically advanced content > > > authoring tool. Experience the power of Track Changes, Inline Image > > > Editing and ensure content is compliant with Accessibility Checking. > > > http://p.sf.net/sfu/ephox-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Fri Jun 10 21:41:42 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 10 Jun 2011 21:41:42 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: References: <4DF12DF9.3070802@...20...> <1307728382.3259.34.camel@...2150...> Message-ID: <4DF27376.8060909@...20...> hi, according to https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/379367 this issue should be configurable in gedit now... i don't see it in my old version, but consider looking for it in yours. From tobiasboe1 at ...20... Fri Jun 10 21:57:11 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 10 Jun 2011 21:57:11 +0200 Subject: [Gambas-user] Extra gb.newline ? In-Reply-To: <4DF27376.8060909@...20...> References: <4DF12DF9.3070802@...20...> <1307728382.3259.34.camel@...2150...> <4DF27376.8060909@...20...> Message-ID: <4DF27717.7010804@...20...> oh, i'm sorry, it seems not to be possible already, i just looked at "Gedit adding a newline at the end of file should be configurable " at the end and didn't notice that it is a quotation-.- From gambas at ...1... Sat Jun 11 03:03:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 11 Jun 2011 03:03:53 +0200 Subject: [Gambas-user] Cancelling TableView Edit In-Reply-To: <4DDB1591.9070204@...2308...> References: <4DDA520F.8090607@...2308...> <201105231519.23238.gambas@...1...> <4DDB1591.9070204@...2308...> Message-ID: <201106110303.53292.gambas@...1...> > > > > Can you send me a little project example that shows exactly the problem? > > > > Thanks. > > Attached > bruce Hi, The bug has been fixed in revision #3878. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 11 03:53:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 11 Jun 2011 03:53:50 +0200 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: Message-ID: <201106110353.50814.gambas@...1...> > This problem is now "solved". > I'm going to do distribution update, and because of that I temporarily > change my fstab: > /tmp ext4 relatime,nosuid,noexec 0 2 > --> > /tmp ext4 defaults 0 2 > > So, looks like even when gbs3 is not executed in /tmp, it is enough that > compiled byte code is in /tmp... it's marked as executable. > Is it possible to change this behaviour? Isn't byte code just read for > interpreter, and not executed by itself..? > Or maybe there could be alternative path for byte code (example > ~/.gambastmp) that would be automatically cleared when > execution ends? > > Jussi > Now the scripter (gbs3) does not require /tmp to allow executable files anymore. It's in revision #3880. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 11 03:54:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 11 Jun 2011 03:54:55 +0200 Subject: [Gambas-user] gambas 3 In-Reply-To: <4DD6F61D.8010902@...2481...> References: <4DD5B133.603@...2481...> <201105210047.25301.gambas@...1...> <4DD6F61D.8010902@...2481...> Message-ID: <201106110354.55318.gambas@...1...> > On 21/05/11 08:47, Beno?t Minisini wrote: > >> hi > >> > >> I opened a gambas 2 project with gambas 3 and was asked if i > >> wanted > >> > >> to convert it > >> witch i did thinking that i would be able to save somewhere else wrong! > >> so is there a way to convert it back to gambas 2 project and i think > >> that you should be able to save the > >> new gambas 3 project some where else just in case > > > > Yes, the project is converted in placed, and no backup copy is made. > > > > Maybe should I make a backup copy before doing the conversion? > > In hind sight of course that what i should have done but i think it > would be a good idea to > have the ide do this ;-) > Actually a backup is created. If, for exemple, the original project name is "foo", the backup will be "foo~". Regards, -- Beno?t Minisini From gambas at ...2524... Sat Jun 11 16:36:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 11 Jun 2011 14:36:51 +0000 Subject: [Gambas-user] Issue 68 in gambas: ./reconf-all error Message-ID: <0-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 68 by hemi... at ...626...: ./reconf-all error http://code.google.com/p/gambas/issues/detail?id=68 1) Describe the problem. When I typed the ./reconf-all an error appear. Below are the errors a) ./reconf-all: 7: libtoolize: not found b) ./reconf-all: 8: autoreconf: not found 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.23.1 Revision: Operating system: Linux Distribution: Ubuntu 10.10 Maverick Architecture: x86 GUI component: Desktop used: Gnome From gambas at ...2524... Sat Jun 11 23:57:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 11 Jun 2011 21:57:45 +0000 Subject: [Gambas-user] Issue 68 in gambas: ./reconf-all error In-Reply-To: <0-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> Comment #1 on issue 68 by dr.die... at ...626...: ./reconf-all error http://code.google.com/p/gambas/issues/detail?id=68 Follow the help here for your distro: http://gambasdoc.org/help/install/ubuntu?view From tommyline at ...2525... Sun Jun 12 21:50:10 2011 From: tommyline at ...2525... (Tomek) Date: Sun, 12 Jun 2011 21:50:10 +0200 Subject: [Gambas-user] OpenGL quaestion. Message-ID: I found the solution to my problem with stencil clipping by adding a line to sdlwindow.cpp file and recompiling Gambas3. void SDLwindow::Show() { Uint32 myFlags = (SDL_ASYNCBLIT | SDL_DOUBLEBUF | SDL_OPENGL); SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 8 ); <------------- This line fixed the problem ! And my project is properly working now. I've ported around 20 OpenGl tutorials already and you can find them on gambasforum.com. ---------------------------------------------------------------- Dzwonki MP3 na telefon. To sa prawdziwe hity! Pobierz >> http://linkint.pl/f29c2 From gambas at ...1... Sun Jun 12 21:54:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 12 Jun 2011 21:54:03 +0200 Subject: [Gambas-user] OpenGL quaestion. In-Reply-To: References: Message-ID: <201106122154.04022.gambas@...1...> > I found the solution to my problem with stencil clipping by adding a line > to sdlwindow.cpp file and recompiling Gambas3. > > void SDLwindow::Show() > { > Uint32 myFlags = (SDL_ASYNCBLIT | SDL_DOUBLEBUF | SDL_OPENGL); > SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); > SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 8 ); <------------- This line > fixed the problem ! > > And my project is properly working now. > > I've ported around 20 OpenGl tutorials already and you can find them on > gambasforum.com. > Laurent Carlier will tell, but do you know if that line has any impact on other OpenGL programs (performance, etc.) ? -- Beno?t Minisini From lordheavym at ...626... Sun Jun 12 21:55:21 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 12 Jun 2011 21:55:21 +0200 Subject: [Gambas-user] OpenGL quaestion. In-Reply-To: References: Message-ID: <2863277.BnPvMQ9Jss@...2592...> Le Sunday 12 June 2011 21:50:10, Tomek a ?crit : > I found the solution to my problem with stencil clipping by adding a line to > sdlwindow.cpp file and recompiling Gambas3. > > void SDLwindow::Show() > { > Uint32 myFlags = (SDL_ASYNCBLIT | SDL_DOUBLEBUF | SDL_OPENGL); > SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); > SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 8 ); <------------- This line > fixed the problem ! > > And my project is properly working now. > > I've ported around 20 OpenGl tutorials already and you can find them on > gambasforum.com. > Thanks, i will push your fix in the repo Regards, From jussi.lahtinen at ...626... Sun Jun 12 23:05:48 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 13 Jun 2011 00:05:48 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: <201106110353.50814.gambas@...1...> References: <201106110353.50814.gambas@...1...> Message-ID: Works perfectly now! Jussi 2011/6/11 Beno?t Minisini > > This problem is now "solved". > > I'm going to do distribution update, and because of that I temporarily > > change my fstab: > > /tmp ext4 relatime,nosuid,noexec 0 2 > > --> > > /tmp ext4 defaults 0 2 > > > > So, looks like even when gbs3 is not executed in /tmp, it is enough that > > compiled byte code is in /tmp... it's marked as executable. > > Is it possible to change this behaviour? Isn't byte code just read for > > interpreter, and not executed by itself..? > > Or maybe there could be alternative path for byte code (example > > ~/.gambastmp) that would be automatically cleared when > > execution ends? > > > > Jussi > > > > Now the scripter (gbs3) does not require /tmp to allow executable files > anymore. It's in revision #3880. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tommyline at ...2525... Sun Jun 12 23:38:07 2011 From: tommyline at ...2525... (Tomek) Date: Sun, 12 Jun 2011 23:38:07 +0200 Subject: [Gambas-user] OpenGl question Message-ID: The fix works only with Gambas 3, no effect in Gambas 2.23. It would be great to have ability to switch this function on and off, but as the impact on performance is at about 1.5 - 2% it can stay switched on constantly. > I found the solution to my problem with stencil clipping by adding a line to > sdlwindow.cpp file and recompiling Gambas3. > > void SDLwindow::Show() > { > Uint32 myFlags = (SDL_ASYNCBLIT | SDL_DOUBLEBUF | SDL_OPENGL); > SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); > SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 8 ); <------------- This line > fixed the problem ! > > And my project is properly working now. > > I've ported around 20 OpenGl tutorials already and you can find them on > gambasforum.com. > >Thanks, i will push your fix in the repo >Regards, ---------------------------------------------------------------- Doladuj telefon przez Internet! Sprawdz >> http://linkint.pl/f29ba From gambas at ...2524... Mon Jun 13 13:21:58 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 13 Jun 2011 11:21:58 +0000 Subject: [Gambas-user] Issue 69 in gambas: Application.ToolTip.Enable = False fails on gtk+ Message-ID: <0-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 69 by sot... at ...626...: Application.ToolTip.Enable = False fails on gtk+ http://code.google.com/p/gambas/issues/detail?id=69 1) Describe the problem. Application.ToolTip.Enabled = false is ignored on GTK+ 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r3888 Operating system: Linux / FreeBSD Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. hover the mouse over the button. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: Butt.tar.gz 4.6 KB From jussi.lahtinen at ...626... Mon Jun 13 21:11:47 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 13 Jun 2011 22:11:47 +0300 Subject: [Gambas-user] Bug with border property. Message-ID: Hi! Borderless windows doesn't work (borders are showing) when combined to 'Mask = True'. Problem is only with Qt4, with GTK+ everything is OK. Gambas 3 rev 3888 @ Ubuntu 11.04 64bit Jussi From gambas at ...2524... Tue Jun 14 02:07:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 14 Jun 2011 00:07:40 +0000 Subject: [Gambas-user] Issue 70 in gambas: Package build wizard increments project version number of project being built Message-ID: <0-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 70 by nospamhere2001 at ...43...: Package build wizard increments project version number of project being built http://code.google.com/p/gambas/issues/detail?id=70 1) Describe the problem. When using the "make installation package" wizard, the wizard shows the version number being incremented +1 too many compared to the actual version being built. Example: After working on MyExcellentGambas3App-0.0.6 and moving to the "make installation package" wizard, the wizard increments the version number (0.0.7) in the IDE (as expected), but the wizard is also using the new (updated) version number (0.0.7) instead of the actual version (0.0.6) you have just been working on and trying to build. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31.14-0.8-desktop DistributionVendor=SuSE DistributionRelease=openSUSE 11.2 (x86_64) VERSION = 11.2 [System] CPUArchitecture=x86_64 TotalRam=2055736 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/bin/gbx2 Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Use any project, note the version number, and start the "make installation package" wizard. Now notice both IDE and new build are using the newly incremented version number. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From demosthenesk at ...626... Wed Jun 15 12:27:31 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Jun 2011 13:27:31 +0300 Subject: [Gambas-user] ListBox selection Message-ID: <1308133651.8006.12.camel@...2493...> Hi all, i make an example for ListBox control and i have some questions. After a SelectAll or multiple-select, is there a way to get in an array the selected items? -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Wed Jun 15 12:45:29 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 15 Jun 2011 12:45:29 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <1308133651.8006.12.camel@...2493...> References: <1308133651.8006.12.camel@...2493...> Message-ID: <4DF88D49.5040100@...20...> Hi, yes, it's pretty straightforward, just use ListBox[Index].Selected (just to get their texts not the whole object in this example): DIM i AS Integer FOR i = 0 TO ListBox1.Count - 1 IF ListBox1[i].Selected THEN PRINT ListBox1[i].Text ENDIF NEXT regards, tobi From tobiasboe1 at ...20... Wed Jun 15 12:51:42 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 15 Jun 2011 12:51:42 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF88D49.5040100@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88D49.5040100@...20...> Message-ID: <4DF88EBE.8050900@...20...> but to answer your question "is there a way to get in an array the selected items?" no, this isn't possible because .ListBoxItems are virtual objects you can't store them into arrays but they only have .Selected and .Text, you know they're selected so the only thing you may need is .Text (as supposed in a String-Array) or if you want to modify those values, i suggest you returning the indices and referencing the .ListBoxItems with them again... From demosthenesk at ...626... Wed Jun 15 13:08:39 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Jun 2011 14:08:39 +0300 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF88EBE.8050900@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88D49.5040100@...20...> <4DF88EBE.8050900@...20...> Message-ID: <1308136119.8006.13.camel@...2493...> Thanks for the answers. They are really well explained! On Wed, 2011-06-15 at 12:51 +0200, tobias wrote: > but to answer your question > "is there a way to get in an array the selected items?" > > no, this isn't possible because .ListBoxItems are virtual objects you > can't store them into arrays but they only have .Selected and .Text, you > know they're selected so the only thing you may need is .Text (as > supposed in a String-Array) or if you want to modify those values, i > suggest you returning the indices and referencing the .ListBoxItems with > them again... > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Jun 15 14:01:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Jun 2011 15:01:10 +0300 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF88EBE.8050900@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88D49.5040100@...20...> <4DF88EBE.8050900@...20...> Message-ID: <1308139270.8006.29.camel@...2493...> i have in a ListBox the next values index0, 1 index1, 11 index2, 111 index3, 1111 index4, 11 i want to multiple select values and able to delete them. to do this i use lstBox.Find() to get the selected index from lstBox[i].Text But Find returns the first value which is found and if i select the index 4, "ii" is not possible to delete. Instead it is deleted the index 1, according to Find. If the .ListBoxItem could return the Key of item this could be possible something like that lstBox.Remove(lstBox[i].Index) So in above example i could delete values index3=1111, index4=11 and not index3=1111, index1=11 Is it possible the .ListBoxItem return the index? I tell this if it could be add to wish-list. -- Regards, Demosthenes Koptsis. From tobiasboe1 at ...20... Wed Jun 15 14:25:13 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 15 Jun 2011 14:25:13 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <1308139270.8006.29.camel@...2493...> References: <1308133651.8006.12.camel@...2493...> <4DF88D49.5040100@...20...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> Message-ID: <4DF8A4A9.3070605@...20...> hi, it's not clear to me what you want exactly. "i want to multiple select values and able to delete them." you want to select multiple items and delete them all? but why do you need Find() then? can you explain it, please? From hughwallis at ...626... Wed Jun 15 16:54:47 2011 From: hughwallis at ...626... (Hugh Wallis) Date: Wed, 15 Jun 2011 10:54:47 -0400 Subject: [Gambas-user] Installing on Mac OSX 10.6.7 Message-ID: Does anyone have detailed instructions for installing Gambas on Mac OSX (10.6.7)? Is it even possible? I can't find too much about it in the archives Thanks From basic.gambas at ...626... Wed Jun 15 17:00:00 2011 From: basic.gambas at ...626... (=?iso-8859-1?Q?Fran=E7ois_Gallo?=) Date: Wed, 15 Jun 2011 17:00:00 +0200 Subject: [Gambas-user] Installing on Mac OSX 10.6.7 In-Reply-To: References: Message-ID: <06B20D2C-A716-433A-9FD6-3A2C2EF9CE6D@...626...> There is no Gambas packages for the moment to Mac OS X. However i'm working on the portage. I think i'm the alone to do that. Le 15 juin 2011 ? 16:54, Hugh Wallis a ?crit : > Does anyone have detailed instructions for installing Gambas on Mac OSX (10.6.7)? Is it even possible? I can't find too much about it in the archives > > Thanks > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From hughwallis at ...626... Wed Jun 15 17:13:32 2011 From: hughwallis at ...626... (Hugh Wallis) Date: Wed, 15 Jun 2011 11:13:32 -0400 Subject: [Gambas-user] Installing on Mac OSX 10.6.7 In-Reply-To: <06B20D2C-A716-433A-9FD6-3A2C2EF9CE6D@...626...> References: <06B20D2C-A716-433A-9FD6-3A2C2EF9CE6D@...626...> Message-ID: <3A96C39B-BFAB-44FF-9098-6C605364C1D9@...626...> Merci bien Fran?ois I'll look out for any news On 2011-06-15, at 11:00 , Fran?ois Gallo wrote: > > > > > There is no Gambas packages for the moment to Mac OS X. > However i'm working on the portage. > I think i'm the alone to do that. > > > Le 15 juin 2011 ? 16:54, Hugh Wallis a ?crit : > >> Does anyone have detailed instructions for installing Gambas on Mac OSX (10.6.7)? Is it even possible? I can't find too much about it in the archives >> >> Thanks >> ------------------------------------------------------------------------------ >> EditLive Enterprise is the world's most technically advanced content >> authoring tool. Experience the power of Track Changes, Inline Image >> Editing and ensure content is compliant with Accessibility Checking. >> http://p.sf.net/sfu/ephox-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From basic.gambas at ...626... Wed Jun 15 17:23:22 2011 From: basic.gambas at ...626... (=?iso-8859-1?Q?Fran=E7ois_Gallo?=) Date: Wed, 15 Jun 2011 17:23:22 +0200 Subject: [Gambas-user] Installing on Mac OSX 10.6.7 In-Reply-To: <3A96C39B-BFAB-44FF-9098-6C605364C1D9@...626...> References: <06B20D2C-A716-433A-9FD6-3A2C2EF9CE6D@...626...> <3A96C39B-BFAB-44FF-9098-6C605364C1D9@...626...> Message-ID: <08D2BCB5-DE7A-4C05-8206-1FFB39B37E62@...626...> Le 15 juin 2011 ? 17:13, Hugh Wallis a ?crit : > Merci bien Fran?ois > > I'll look out for any news > > Currently the following programs are available for Mac OS X : - the archiver - the compiler - the interpreter the main/ directory and its sub-directories compile fine. Some components compile fine as well. Here, i'm working on the gb.qt4 component. > On 2011-06-15, at 11:00 , Fran?ois Gallo wrote: > >> >> >> >> >> There is no Gambas packages for the moment to Mac OS X. >> However i'm working on the portage. >> I think i'm the alone to do that. >> >> >> Le 15 juin 2011 ? 16:54, Hugh Wallis a ?crit : >> >>> Does anyone have detailed instructions for installing Gambas on Mac OSX (10.6.7)? Is it even possible? I can't find too much about it in the archives >>> >>> Thanks >>> ------------------------------------------------------------------------------ >>> EditLive Enterprise is the world's most technically advanced content >>> authoring tool. Experience the power of Track Changes, Inline Image >>> Editing and ensure content is compliant with Accessibility Checking. >>> http://p.sf.net/sfu/ephox-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> EditLive Enterprise is the world's most technically advanced content >> authoring tool. Experience the power of Track Changes, Inline Image >> Editing and ensure content is compliant with Accessibility Checking. >> http://p.sf.net/sfu/ephox-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Jun 15 19:56:00 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 Jun 2011 19:56:00 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF8A4A9.3070605@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88D49.5040100@...20...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> <4DF8A4A9.3070605@...20...> Message-ID: that is a good question ... as the deleting action change indexes... 2011/6/15 tobias : > hi, > > it's not clear to me what you want exactly. > > "i want to multiple select values and able to delete them." > > you want to select multiple items and delete them all? but why do you > need Find() then? > can you explain it, please? > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Wed Jun 15 20:00:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 15 Jun 2011 20:00:41 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <1308139270.8006.29.camel@...2493...> References: <1308133651.8006.12.camel@...2493...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> Message-ID: <201106152000.41760.gambas@...1...> > i have in a ListBox the next values > > index0, 1 > index1, 11 > index2, 111 > index3, 1111 > index4, 11 > > i want to multiple select values and able to delete them. > > to do this i use lstBox.Find() to get the selected index from > lstBox[i].Text > > But Find returns the first value which is found and if i select the > index 4, "ii" is not possible to delete. Instead it is deleted the index > 1, according to Find. > > If the .ListBoxItem could return the Key of item this could be possible > something like that > > > lstBox.Remove(lstBox[i].Index) > > So in above example i could delete values index3=1111, index4=11 > and not index3=1111, index1=11 > > Is it possible the .ListBoxItem return the index? > I tell this if it could be add to wish-list. In ListBox, Index is not absolute, but relative. If you delete an item, the index changes. If you want an absolute index, use a ListView instead. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Wed Jun 15 20:25:50 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 15 Jun 2011 20:25:50 +0200 Subject: [Gambas-user] ListBox selection In-Reply-To: <201106152000.41760.gambas@...1...> References: <1308133651.8006.12.camel@...2493...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> <201106152000.41760.gambas@...1...> Message-ID: <4DF8F92E.8030404@...20...> hi, oh well, now i think i understood. but this doesn't change my answer: you don't need find to get the index of a special item. you said, you selected one or multiple items and you want to remove them. no problem, use the method i mentioned earlier in this topic: PUBLIC SUB Button1_Click() DIM i AS Integer 'Go through all items and find those that are selected FOR i = 0 TO ListBox1.Count - 1 IF ListBox1[i].Selected THEN ListBox1.Remove(i) ENDIF NEXT END this code won't work properly, i saw while testing. (it raises "Bad Index" - it's "out of bounds") thanks to Benoit's answer i understand why. i iterate through all the indices until the initial ListBox1.Count which has changed during processing. but shouldn't such a FOR-loop be more dynamically? is this FOR-loop end point only evaluated at the beginning? or do i miss something else here? why does the loop get into the iteration where the error is raised even if the condition shouldn't be true? (btw i'm using gambas2.22) anyway you may use this one instead: DIM i AS Integer 'Go through all items and find those that are selected in a while which evaluates ListBox1.Count every iteration i = 0 WHILE i < ListBox1.Count 'is it selected? IF ListBox1[i].Selected THEN 'remove and... ListBox1.Remove(i) 'don't forget to decrement i because the relative offset of the next element has changed to the current offset, so one has to process the current index again DEC i ENDIF INC i WEND or did i still not get what you wanted? From demosthenesk at ...626... Wed Jun 15 21:05:14 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Jun 2011 22:05:14 +0300 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF8F92E.8030404@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> <201106152000.41760.gambas@...1...> <4DF8F92E.8030404@...20...> Message-ID: <1308164714.8006.34.camel@...2493...> Yes all of you have understood correctly what i want to do. Of course Bad Index problem appears and for that i implement this code: --------------------------------- Public Sub btnRemove_Click() Dim i As Integer Dim sSelected As New String[] sSelected.Clear For i = 0 To lstBox.Count - 1 If lstBox[i].Selected Then sSelected.Add(lstBox[i].Text) Endif Next For i = 0 To sSelected.Count - 1 lstBox.Remove(lstBox.Find(sSelected[i])) Next End --------------------------------- This code is based on selected text lstBox.Remove(lstBox.Find(sSelected[i])) thats why i wanted a lstBox[i].Index. But i will try the DEC i code to see the deference. On Wed, 2011-06-15 at 20:25 +0200, tobias wrote: > hi, > > oh well, now i think i understood. but this doesn't change my answer: > you don't need find to get the index of a special item. > you said, you selected one or multiple items and you want to remove > them. no problem, use the method i mentioned earlier in this topic: > PUBLIC SUB Button1_Click() > > DIM i AS Integer > > 'Go through all items and find those that are selected > FOR i = 0 TO ListBox1.Count - 1 > IF ListBox1[i].Selected THEN > ListBox1.Remove(i) > ENDIF > NEXT > > END > > this code won't work properly, i saw while testing. (it raises "Bad > Index" - it's "out of bounds") thanks to Benoit's answer i understand > why. i iterate through all the indices until the initial ListBox1.Count > which has changed during processing. but shouldn't such a FOR-loop be > more dynamically? is this FOR-loop end point only evaluated at the > beginning? or do i miss something else here? > why does the loop get into the iteration where the error is raised even > if the condition shouldn't be true? (btw i'm using gambas2.22) > > anyway you may use this one instead: > > DIM i AS Integer > > 'Go through all items and find those that are selected in a while > which evaluates ListBox1.Count every iteration > i = 0 > WHILE i < ListBox1.Count > 'is it selected? > IF ListBox1[i].Selected THEN > 'remove and... > ListBox1.Remove(i) > 'don't forget to decrement i because the relative offset of the > next element has changed to the current offset, so one has to process > the current index again > DEC i > ENDIF > INC i > WEND > > or did i still not get what you wanted? > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Wed Jun 15 21:16:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Wed, 15 Jun 2011 22:16:48 +0300 Subject: [Gambas-user] ListBox selection In-Reply-To: <4DF8F92E.8030404@...20...> References: <1308133651.8006.12.camel@...2493...> <4DF88EBE.8050900@...20...> <1308139270.8006.29.camel@...2493...> <201106152000.41760.gambas@...1...> <4DF8F92E.8030404@...20...> Message-ID: <1308165408.8006.40.camel@...2493...> On Wed, 2011-06-15 at 20:25 +0200, tobias wrote: > DIM i AS Integer > > i = 0 > WHILE i < ListBox1.Count > 'is it selected? > IF ListBox1[i].Selected THEN > 'remove and... > ListBox1.Remove(i) > DEC i > ENDIF > INC i > WEND > > or did i still not get what you wanted? > yes it works fine, thanks, it is quite good trick! -- Regards, Demosthenes Koptsis. From wig at ...1809... Thu Jun 16 10:37:31 2011 From: wig at ...1809... (wig) Date: Thu, 16 Jun 2011 10:37:31 +0200 (CEST) Subject: [Gambas-user] Installing on Mac OSX 10.6.7 In-Reply-To: References: Message-ID: <36864.62.182.60.69.1308213451.squirrel@...2598...> You can install it in a Virtual Machine. I would like a native Gambas version on mac though, but untill then I make a Gambas application available to a mac user via parallels. I installed Parallels, installed Linux with Gambas in it, autostart Gambas in the desktop. It's an extra cost but it works well. Just take a note of the key combination to return to OS-X if you go full screen. I can avoid Windows, but I can't avoid mac for the work to be done. Wim. > Does anyone have detailed instructions for installing Gambas on Mac OSX > (10.6.7)? Is it even possible? I can't find too much about it in the > archives > > Thanks > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From basic.gambas at ...626... Thu Jun 16 13:39:11 2011 From: basic.gambas at ...626... (=?iso-8859-1?Q?Fran=E7ois_Gallo?=) Date: Thu, 16 Jun 2011 13:39:11 +0200 Subject: [Gambas-user] A step forward in Gambas! Message-ID: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> Hello the english community of Gambas, I ported the Gambas 3 project to Mac OS X 10.6. it works perfectly and all its components. Currently, there is only one component that makes problem, it's gb.sdl. This is a detail that i will fix soon with Laurent Carlier (gb.sdl's author). Of course, you won't get the gb.v4l component which is exclusively reserved for the GNU/Linux operating system and very linked to its kernel. If you use an earlier version (10.5), I can't confirm that the compilation procedure will go fine. However, Mac OS X 10.7 upcoming and i'll ensure the availability of Gambas on this new version. Why is this port ? Just because my goals are to work on the portability of Gambas. Thus making the independent development from operating system, and provide to everyone this wonderful programming language developed by Beno?t Minisini. Gambas is ported only on Mac OS X ? In the future, as the Beno?t's answer, i would like to see it to others operating systems. I don't stop here ! I currently on the FreeBSD port of Gambas 3. I develop in Gambas 2, and i've some projects in this version, Will you port Gambas 2 as well ? my answer is willingly NO. Gambas 3 marks a step forward in its evolution in the core (gambas' kernel) and its elements around. (IDE, components...) I can only encourage you to port yours projects to Gambas 3 :) . I am interested to port Gambas to other OS, do you work alone ? Any help is welcome! Free time is sometimes difficult to obtain, so the development is slow. You can start one on your side. It's a nice training to learn the compilation mechanics and understand how Gambas is made up ! :) . Where can i download Gambas3 for Mac OS X ? Did you done a source tarball ? No links are currently available. Wait the time i make a package for Mac OS X. For source codes, it is currently not recommended. Compiling Gambas on OS X ask to have a good development environment with complex manipulations. Writing a "HOW-TO" file is in my todo list, but you're advised that it's not my priority! Here is a screenshot showing the shrimp. Story you have water in your mouth ;) . http://img4.hostingpics.net/pics/445567GB3OSX.jpg -- Fran?ois Gallo From hughwallis at ...626... Thu Jun 16 14:04:02 2011 From: hughwallis at ...626... (Hugh Wallis) Date: Thu, 16 Jun 2011 08:04:02 -0400 Subject: [Gambas-user] Installing on Mac OSX 10.6.7 In-Reply-To: <08D2BCB5-DE7A-4C05-8206-1FFB39B37E62@...626...> References: <06B20D2C-A716-433A-9FD6-3A2C2EF9CE6D@...626...> <3A96C39B-BFAB-44FF-9098-6C605364C1D9@...626...> <08D2BCB5-DE7A-4C05-8206-1FFB39B37E62@...626...> Message-ID: <5423A15C-4C9B-495B-AA66-BCA0780317C3@...626...> Thanks Wim - I have concluded too that that is the only way to go - downloading Ubuntu now for installation in a Parallels VM :) From oceanosoftlapalma at ...626... Thu Jun 16 16:26:30 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 16 Jun 2011 16:26:30 +0200 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> Message-ID: Congratulations! It's a good new. I'll try when mac's package is available. Regards, Ricardo D?az 2011/6/16 Fran?ois Gallo > > Hello the english community of Gambas, > > > I ported the Gambas 3 project to Mac OS X 10.6. > it works perfectly and all its components. > > Currently, there is only one component that makes problem, it's gb.sdl. > This is a detail that i will fix soon with Laurent Carlier (gb.sdl's > author). > > Of course, you won't get the gb.v4l component which is exclusively reserved > for the GNU/Linux operating system and very linked to its kernel. > > If you use an earlier version (10.5), I can't confirm that the compilation > procedure will go fine. > However, Mac OS X 10.7 upcoming and i'll ensure the availability of Gambas > on this new > version. > > > Why is this port ? > > Just because my goals are to work on the portability of Gambas. > Thus making the independent development from operating system, and provide > to everyone this wonderful programming language developed by Beno?t > Minisini. > > > Gambas is ported only on Mac OS X ? > > In the future, as the Beno?t's answer, i would like to see it to others > operating systems. > I don't stop here ! I currently on the FreeBSD port of Gambas 3. > > > I develop in Gambas 2, and i've some projects in this version, Will you > port Gambas 2 as well ? > > my answer is willingly NO. Gambas 3 marks a step forward in its evolution > in the core (gambas' kernel) > and its elements around. (IDE, components...) > I can only encourage you to port yours projects to Gambas 3 :) . > > > I am interested to port Gambas to other OS, do you work alone ? > > Any help is welcome! Free time is sometimes difficult to obtain, so the > development is slow. > You can start one on your side. It's a nice training to learn the > compilation mechanics and > understand how Gambas is made up ! :) . > > > Where can i download Gambas3 for Mac OS X ? Did you done a source tarball ? > > No links are currently available. > Wait the time i make a package for Mac OS X. > > For source codes, it is currently not recommended. > Compiling Gambas on OS X ask to have a good development environment with > complex > manipulations. Writing a "HOW-TO" file is in my todo list, but you're > advised that it's not > my priority! > > Here is a screenshot showing the shrimp. > Story you have water in your mouth ;) . > > http://img4.hostingpics.net/pics/445567GB3OSX.jpg > > > -- > Fran?ois Gallo > > > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Thu Jun 16 21:14:00 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 16 Jun 2011 15:14:00 -0400 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> Message-ID: <4DFA55F8.2020800@...1887...> On 06/16/2011 07:39 AM, Fran?ois Gallo wrote: > Hello the english community of Gambas, > > > I ported the Gambas 3 project to Mac OS X 10.6. > it works perfectly and all its components. > That is amazing. Great work. All GAMBAS needs now to take over the world is a Windows (gag) version, though I'd prefer an Android version myself. ;) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From 07.rain at ...626... Fri Jun 17 02:02:34 2011 From: 07.rain at ...626... (Titan Rain) Date: Thu, 16 Jun 2011 20:02:34 -0400 Subject: [Gambas-user] Reading the microphone? Playing audio from a socket? VOIP. Message-ID: <20110616200234.3daffe0f.07.rain@...626...> Anyone know of any examples or cases of accessing the soundcard/microphone in gambas? I'm looking to capture output from microphone (and level if possible) and write it to a socket, and read the socket that will have audio data and play it. Push-to-talk style VOIP. For writing to the socket I've already been looking into shelling something like arecord or pacat. I find arecord uses way too much CPU, but it does seem to be returning the mic data with levels in realtime. Still the CPU is at like 80% when it runs. I can't shoot the cpu that high each time the user pushes the talk button. Pacat does not seem to return realtime data from the device. It records from a device into a file only, as far as I can tell. Neither are a preferred solution as end user would need these additional packages and their deps. Any info on any of the different parts 1) reading microphone data/levels 2) writing microphone/audio data to a socket 3) reading a socket with audio data and playing it is great, even if it's maybe just kind of semi related it may help achieve the end goal. Thanks for your time! From support at ...2529... Fri Jun 17 02:47:39 2011 From: support at ...2529... (John Spikowski) Date: Thu, 16 Jun 2011 17:47:39 -0700 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> Message-ID: <1308271659.1960.5.camel@...1833...> On Thu, 2011-06-16 at 13:39 +0200, Fran?ois Gallo wrote: > Hello the english community of Gambas, > > > I ported the Gambas 3 project to Mac OS X 10.6. > it works perfectly and all its components. > > Currently, there is only one component that makes problem, it's gb.sdl. > This is a detail that i will fix soon with Laurent Carlier (gb.sdl's author). > > Of course, you won't get the gb.v4l component which is exclusively reserved > for the GNU/Linux operating system and very linked to its kernel. > > If you use an earlier version (10.5), I can't confirm that the compilation procedure will go fine. > However, Mac OS X 10.7 upcoming and i'll ensure the availability of Gambas on this new > version. > > > Why is this port ? > > Just because my goals are to work on the portability of Gambas. > Thus making the independent development from operating system, and provide > to everyone this wonderful programming language developed by Beno?t Minisini. > > > Gambas is ported only on Mac OS X ? > > In the future, as the Beno?t's answer, i would like to see it to others operating systems. > I don't stop here ! I currently on the FreeBSD port of Gambas 3. > > > I develop in Gambas 2, and i've some projects in this version, Will you port Gambas 2 as well ? > > my answer is willingly NO. Gambas 3 marks a step forward in its evolution in the core (gambas' kernel) > and its elements around. (IDE, components...) > I can only encourage you to port yours projects to Gambas 3 :) . > > > I am interested to port Gambas to other OS, do you work alone ? > > Any help is welcome! Free time is sometimes difficult to obtain, so the development is slow. > You can start one on your side. It's a nice training to learn the compilation mechanics and > understand how Gambas is made up ! :) . > > > Where can i download Gambas3 for Mac OS X ? Did you done a source tarball ? > > No links are currently available. > Wait the time i make a package for Mac OS X. > > For source codes, it is currently not recommended. > Compiling Gambas on OS X ask to have a good development environment with complex > manipulations. Writing a "HOW-TO" file is in my todo list, but you're advised that it's not > my priority! > > Here is a screenshot showing the shrimp. > Story you have water in your mouth ;) . > > http://img4.hostingpics.net/pics/445567GB3OSX.jpg > > > -- > Fran?ois Gallo > Any chance of a QT Cocoa version of OSX is the future? From rterry at ...1946... Fri Jun 17 03:27:36 2011 From: rterry at ...1946... (richard terry) Date: Fri, 17 Jun 2011 11:27:36 +1000 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <1308271659.1960.5.camel@...1833...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> <1308271659.1960.5.camel@...1833...> Message-ID: <201106171127.36589.rterry@...1946...> On Friday 17 June 2011 10:47:39 John Spikowski wrote: Do the webcam and movie playing/pdf examples work in the Mac? Regards Richard > On Thu, 2011-06-16 at 13:39 +0200, Fran?ois Gallo wrote: > > Hello the english community of Gambas, > > > > > > I ported the Gambas 3 project to Mac OS X 10.6. > > it works perfectly and all its components. > > > > Currently, there is only one component that makes problem, it's gb.sdl. > > This is a detail that i will fix soon with Laurent Carlier (gb.sdl's > > author). > > > > Of course, you won't get the gb.v4l component which is exclusively > > reserved for the GNU/Linux operating system and very linked to its > > kernel. > > > > If you use an earlier version (10.5), I can't confirm that the > > compilation procedure will go fine. However, Mac OS X 10.7 upcoming and > > i'll ensure the availability of Gambas on this new version. > > > > > > Why is this port ? > > > > Just because my goals are to work on the portability of Gambas. > > Thus making the independent development from operating system, and > > provide to everyone this wonderful programming language developed by > > Beno?t Minisini. > > > > > > Gambas is ported only on Mac OS X ? > > > > In the future, as the Beno?t's answer, i would like to see it to others > > operating systems. I don't stop here ! I currently on the FreeBSD port of > > Gambas 3. > > > > > > I develop in Gambas 2, and i've some projects in this version, Will you > > port Gambas 2 as well ? > > > > my answer is willingly NO. Gambas 3 marks a step forward in its evolution > > in the core (gambas' kernel) and its elements around. (IDE, > > components...) > > I can only encourage you to port yours projects to Gambas 3 :) . > > > > > > I am interested to port Gambas to other OS, do you work alone ? > > > > Any help is welcome! Free time is sometimes difficult to obtain, so the > > development is slow. You can start one on your side. It's a nice training > > to learn the compilation mechanics and understand how Gambas is made up ! > > :) . > > > > > > Where can i download Gambas3 for Mac OS X ? Did you done a source tarball > > ? > > > > No links are currently available. > > Wait the time i make a package for Mac OS X. > > > > For source codes, it is currently not recommended. > > Compiling Gambas on OS X ask to have a good development environment with > > complex manipulations. Writing a "HOW-TO" file is in my todo list, but > > you're advised that it's not my priority! > > > > Here is a screenshot showing the shrimp. > > Story you have water in your mouth ;) . > > > > http://img4.hostingpics.net/pics/445567GB3OSX.jpg > > > > > > -- > > Fran?ois Gallo > > Any chance of a QT Cocoa version of OSX is the future? > > > > > --------------------------------------------------------------------------- > --- EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Fri Jun 17 03:35:26 2011 From: support at ...2529... (John Spikowski) Date: Thu, 16 Jun 2011 18:35:26 -0700 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <201106171127.36589.rterry@...1946...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> <1308271659.1960.5.camel@...1833...> <201106171127.36589.rterry@...1946...> Message-ID: <1308274526.1960.7.camel@...1833...> On Fri, 2011-06-17 at 11:27 +1000, richard terry wrote: > On Friday 17 June 2011 10:47:39 John Spikowski wrote: > Do the webcam and movie playing/pdf examples work in the Mac? > *** TYPO *** > > Any chance of a QT Cocoa version of OSX is the future? Any chance of a QT Cocoa version of Gambas for OSX in the future? From nkoch22 at ...626... Fri Jun 17 03:57:24 2011 From: nkoch22 at ...626... (Nicolas Koch) Date: Thu, 16 Jun 2011 21:57:24 -0400 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <1308274526.1960.7.camel@...1833...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> <1308271659.1960.5.camel@...1833...> <201106171127.36589.rterry@...1946...> <1308274526.1960.7.camel@...1833...> Message-ID: Too bad I sold my MAC. :( On Thu, Jun 16, 2011 at 9:35 PM, John Spikowski wrote: > On Fri, 2011-06-17 at 11:27 +1000, richard terry wrote: > > On Friday 17 June 2011 10:47:39 John Spikowski wrote: > > Do the webcam and movie playing/pdf examples work in the Mac? > > > *** TYPO *** > > > Any chance of a QT Cocoa version of OSX is the future? > > Any chance of a QT Cocoa version of Gambas for OSX in the future? > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -Nick From support at ...2529... Fri Jun 17 04:03:47 2011 From: support at ...2529... (John Spikowski) Date: Thu, 16 Jun 2011 19:03:47 -0700 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> <1308271659.1960.5.camel@...1833...> <201106171127.36589.rterry@...1946...> <1308274526.1960.7.camel@...1833...> Message-ID: <1308276227.1960.9.camel@...1833...> On Thu, 2011-06-16 at 21:57 -0400, Nicolas Koch wrote: > Too bad I sold my MAC. :( I was fortunate to be able to UPGRADED my Windows PC to Linux. ;-) No regrets! From kevinfishburne at ...1887... Fri Jun 17 12:34:30 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 17 Jun 2011 06:34:30 -0400 Subject: [Gambas-user] Reading the microphone? Playing audio from a socket? VOIP. In-Reply-To: <20110616200234.3daffe0f.07.rain@...626...> References: <20110616200234.3daffe0f.07.rain@...626...> Message-ID: <4DFB2DB6.9030005@...1887...> On 06/16/2011 08:02 PM, Titan Rain wrote: > Anyone know of any examples or cases of accessing the soundcard/microphone in gambas? I'm looking to capture output from microphone (and level if possible) and write it to a socket, and read the socket that will have audio data and play it. Push-to-talk style VOIP. > > For writing to the socket I've already been looking into shelling something like arecord or pacat. I find arecord uses way too much CPU, but it does seem to be returning the mic data with levels in realtime. Still the CPU is at like 80% when it runs. I can't shoot the cpu that high each time the user pushes the talk button. > > Pacat does not seem to return realtime data from the device. It records from a device into a file only, as far as I can tell. > > Neither are a preferred solution as end user would need these additional packages and their deps. > > Any info on any of the different parts > 1) reading microphone data/levels > 2) writing microphone/audio data to a socket > 3) reading a socket with audio data and playing it > is great, even if it's maybe just kind of semi related it may help achieve the end goal. Thanks for your time! > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I will need to do the same thing shortly. For joystick input I've run cat and such. Maybe audio I/O is the same? Be aware UDP packets max out at 64KB if you plan to transmit the audio that way. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From basic.gambas at ...626... Fri Jun 17 15:44:34 2011 From: basic.gambas at ...626... (=?iso-8859-1?Q?Fran=E7ois_Gallo?=) Date: Fri, 17 Jun 2011 15:44:34 +0200 Subject: [Gambas-user] A step forward in Gambas! In-Reply-To: <201106171127.36589.rterry@...1946...> References: <2E8479BD-DE81-40F3-B069-7882A76DC269@...626...> <1308271659.1960.5.camel@...1833...> <201106171127.36589.rterry@...1946...> Message-ID: <450FD689-DD46-4D4E-9444-FBBAA7257F60@...626...> > On Friday 17 June 2011 10:47:39 John Spikowski wrote: > Do the webcam and movie playing/pdf examples work in the Mac? the movie player example is a frontend to MPlayer program. So if you're install MPlayer on Mac OS X, it'll work. The webcam example program uses the gb.v4l component. As i said, this component is only available on GNU/Linux. Here is a screenshot to PDF View example program : http://img11.hostingpics.net/pics/580990PDFViewerGBOSX.jpg >> Any chance of a QT Cocoa version of OSX is the future? I don't know the Quartz server. I'm not a Cocoa developer and Gambas often uses X11 system function calls. To hope oneday getting Gambas using Qt/Cocoa on Mac OS X, we must develop similar code to specific functions of X11. That's not so easy unfortunately. > > >> On Thu, 2011-06-16 at 13:39 +0200, Fran?ois Gallo wrote: >>> Hello the english community of Gambas, >>> >>> >>> I ported the Gambas 3 project to Mac OS X 10.6. >>> it works perfectly and all its components. >>> >>> Currently, there is only one component that makes problem, it's gb.sdl. >>> This is a detail that i will fix soon with Laurent Carlier (gb.sdl's >>> author). >>> >>> Of course, you won't get the gb.v4l component which is exclusively >>> reserved for the GNU/Linux operating system and very linked to its >>> kernel. >>> >>> If you use an earlier version (10.5), I can't confirm that the >>> compilation procedure will go fine. However, Mac OS X 10.7 upcoming and >>> i'll ensure the availability of Gambas on this new version. >>> >>> >>> Why is this port ? >>> >>> Just because my goals are to work on the portability of Gambas. >>> Thus making the independent development from operating system, and >>> provide to everyone this wonderful programming language developed by >>> Beno?t Minisini. >>> >>> >>> Gambas is ported only on Mac OS X ? >>> >>> In the future, as the Beno?t's answer, i would like to see it to others >>> operating systems. I don't stop here ! I currently on the FreeBSD port of >>> Gambas 3. >>> >>> >>> I develop in Gambas 2, and i've some projects in this version, Will you >>> port Gambas 2 as well ? >>> >>> my answer is willingly NO. Gambas 3 marks a step forward in its evolution >>> in the core (gambas' kernel) and its elements around. (IDE, >>> components...) >>> I can only encourage you to port yours projects to Gambas 3 :) . >>> >>> >>> I am interested to port Gambas to other OS, do you work alone ? >>> >>> Any help is welcome! Free time is sometimes difficult to obtain, so the >>> development is slow. You can start one on your side. It's a nice training >>> to learn the compilation mechanics and understand how Gambas is made up ! >>> :) . >>> >>> >>> Where can i download Gambas3 for Mac OS X ? Did you done a source tarball >>> ? >>> >>> No links are currently available. >>> Wait the time i make a package for Mac OS X. >>> >>> For source codes, it is currently not recommended. >>> Compiling Gambas on OS X ask to have a good development environment with >>> complex manipulations. Writing a "HOW-TO" file is in my todo list, but >>> you're advised that it's not my priority! >>> >>> Here is a screenshot showing the shrimp. >>> Story you have water in your mouth ;) . >>> >>> http://img4.hostingpics.net/pics/445567GB3OSX.jpg >>> >>> >>> -- >>> Fran?ois Gallo >> >> Any chance of a QT Cocoa version of OSX is the future? >> >> >> >> >> --------------------------------------------------------------------------- >> --- EditLive Enterprise is the world's most technically advanced content >> authoring tool. Experience the power of Track Changes, Inline Image >> Editing and ensure content is compliant with Accessibility Checking. >> http://p.sf.net/sfu/ephox-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Fran?ois Gallo basic.gambas at ...626... From 07.rain at ...626... Fri Jun 17 23:42:00 2011 From: 07.rain at ...626... (Titan Rain) Date: Fri, 17 Jun 2011 17:42:00 -0400 Subject: [Gambas-user] Reading the microphone? Playing audio from a socket? VOIP. Message-ID: <20110617174200.1ae8b2a5.07.rain@...626...> I've made a little progress with pacat. Reading the docs on it I found out it captures to STDOUT if no filename is provided. So by shelling it I'm able to read it's output. That's about as far as I've gotten but it looks promising. I am interested in being able to manage this with just cat though, as using pacat is expecting the user to be using pulse audio. I'll certainly keep that 64KB limit in mind. From demosthenesk at ...626... Sat Jun 18 16:00:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 18 Jun 2011 17:00:37 +0300 Subject: [Gambas-user] Object beginer, how to create objects on a form Message-ID: <1308405637.9004.3.camel@...2493...> Hi, i try to implement some examples about object creation. i have this example --------------------- Public Sub Button1_Click() Dim hTextBox1 As TextBox hTextBox1 = New TextBox(FMain) hTextBox1.Text = "Set hTextBox1" hTextBox1.X = 80 hTextBox1.Y = 120 FMain.Refresh Wait 1 End --------------------- I expect the textbox to appear on Fmain, but it isn't. -- Regards, Demosthenes Koptsis. From jussi.lahtinen at ...626... Sat Jun 18 16:14:06 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 18 Jun 2011 17:14:06 +0300 Subject: [Gambas-user] Object beginer, how to create objects on a form In-Reply-To: <1308405637.9004.3.camel@...2493...> References: <1308405637.9004.3.camel@...2493...> Message-ID: Add some size for it, example: hTextBox1.Width = 100 hTextBox1.Height = 100 Jussi On Sat, Jun 18, 2011 at 17:00, Demosthenes Koptsis wrote: > Hi, > > i try to implement some examples about object creation. > i have this example > > --------------------- > Public Sub Button1_Click() > > Dim hTextBox1 As TextBox > > hTextBox1 = New TextBox(FMain) > hTextBox1.Text = "Set hTextBox1" > hTextBox1.X = 80 > hTextBox1.Y = 120 > > FMain.Refresh > Wait 1 > > End > --------------------- > > I expect the textbox to appear on Fmain, but it isn't. > > > -- > Regards, > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Sat Jun 18 16:15:35 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 18 Jun 2011 17:15:35 +0300 Subject: [Gambas-user] [Fwd: Object beginer, how to create objects on a form] Message-ID: <1308406535.9004.5.camel@...2493...> ok, i found it i had to set Width, Height. Pardon me... -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Object beginer, how to create objects on a form Date: Sat, 18 Jun 2011 17:00:41 +0300 Size: 824 URL: From karl.reinl at ...9... Sat Jun 18 22:49:12 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 18 Jun 2011 22:49:12 +0200 Subject: [Gambas-user] q: about Printer.Resolution Message-ID: <1308430152.6325.8.camel@...40...> Salut, what is wrong on my box? gambas2 : Printer.Resolution = 600 gambas3 : Printer.Resolution = 1200 the printer behind HP OfficeJet 6210 Any explication! -- Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.33.7-server-2mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.2" [System] CPUArchitecture=i686 TotalRam=251620 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.23.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 both rev r3873 From gambas at ...1... Sun Jun 19 00:53:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 19 Jun 2011 00:53:02 +0200 Subject: [Gambas-user] q: about Printer.Resolution In-Reply-To: <1308430152.6325.8.camel@...40...> References: <1308430152.6325.8.camel@...40...> Message-ID: <201106190053.02829.gambas@...1...> > Salut, > > what is wrong on my box? > gambas2 : Printer.Resolution = 600 > gambas3 : Printer.Resolution = 1200 > > the printer behind HP OfficeJet 6210 > > Any explication! The Qt4 printing system is more clever. Qt3 printing system always returns 600 DPI. Regards, -- Beno?t Minisini From demosthenesk at ...626... Sun Jun 19 06:45:21 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 19 Jun 2011 07:45:21 +0300 Subject: [Gambas-user] Object beginer, how to create objects on a form In-Reply-To: References: <1308405637.9004.3.camel@...2493...> Message-ID: <1308458721.11065.0.camel@...2494...> yes i found it after all. Thanks! On Sat, 2011-06-18 at 17:14 +0300, Jussi Lahtinen wrote: > Add some size for it, example: > > hTextBox1.Width = 100 > hTextBox1.Height = 100 > > > Jussi > > > > On Sat, Jun 18, 2011 at 17:00, Demosthenes Koptsis > wrote: > > > Hi, > > > > i try to implement some examples about object creation. > > i have this example > > > > --------------------- > > Public Sub Button1_Click() > > > > Dim hTextBox1 As TextBox > > > > hTextBox1 = New TextBox(FMain) > > hTextBox1.Text = "Set hTextBox1" > > hTextBox1.X = 80 > > hTextBox1.Y = 120 > > > > FMain.Refresh > > Wait 1 > > > > End > > --------------------- > > > > I expect the textbox to appear on Fmain, but it isn't. > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From kevinfishburne at ...1887... Sun Jun 19 08:07:28 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 19 Jun 2011 02:07:28 -0400 Subject: [Gambas-user] gb3 on Nintendo Wii Message-ID: <4DFD9220.7000808@...1887...> Using something like this: http://wiibrew.org/wiki/Wii_Linux does anyone think it would be possible to run gb3 executables if the gb3 runtime was installed? Apparently Wii Linux is Debian-based and runs X. It of course requires a jailbroken Wii, but I'm wondering if there's a way around that by using an actual dev kit for the Wii. Two different issues, of course, but right now I'm just wondering if anyone knows if this is possible. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Karl.Reinl at ...2345... Sun Jun 19 14:00:25 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 19 Jun 2011 14:00:25 +0200 Subject: [Gambas-user] q: about Printer.Resolution In-Reply-To: <201106190053.02829.gambas@...1...> References: <1308430152.6325.8.camel@...40...> <201106190053.02829.gambas@...1...> Message-ID: <1308484825.6367.7.camel@...40...> Am Sonntag, den 19.06.2011, 00:53 +0200 schrieb Beno?t Minisini: > > Salut, > > > > what is wrong on my box? > > gambas2 : Printer.Resolution = 600 > > gambas3 : Printer.Resolution = 1200 > > > > the printer behind HP OfficeJet 6210 > > > > Any explication! > > The Qt4 printing system is more clever. Qt3 printing system always returns 600 > DPI. > > Regards, > Ok, thanks. So Qt4 returns the real Printer.Resolution, how this Resolution determined. I deleted all physical printer from the box , the printer.name is empty now, but the Resolution still 1200. Anybody can enlighten me? -- Amicalement Charlie From jussi.lahtinen at ...626... Sun Jun 19 16:11:17 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 19 Jun 2011 17:11:17 +0300 Subject: [Gambas-user] Gambas Calculator In-Reply-To: References: <201106030832.24193.rterry@...1946...> <201106031911.31558.rterry@...1946...> <201106031428.36672.gambas@...1...> Message-ID: "Problem solved." Default value for variable a is "0,5" which returns NULL with Val(). ? "*" & val("0,5") & "*" ** While "0.5" gives answer as expected. ? "*" & val("0.5") & "*" *0.5* Gambas 3 rev 3888 @ Ubuntu 11.04 64bit Jussi On Sun, Jun 5, 2011 at 23:36, Jussi Lahtinen wrote: > Result is always "Unknown symbol". > > Gambas 3 rev 3871 @ Ubuntu 11.04 64bit > > Jussi > > > > > 2011/6/3 Beno?t Minisini > >> > Also Gambas has "Evaluator" example, but it doesn't seem to work..? >> > >> > Jussi >> > >> >> It works there. What's the problem? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with >> vRanger. >> Installation's a snap, and flexible recovery options mean your data is >> safe, >> secure and there when you need it. Discover what all the cheering's about. >> Get your free trial download today. >> http://p.sf.net/sfu/quest-dev2dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From demosthenesk at ...626... Mon Jun 20 07:50:10 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 20 Jun 2011 08:50:10 +0300 Subject: [Gambas-user] MyObject.Property vs MyObject.Variable Message-ID: <1308549010.5839.5.camel@...2493...> Hi list, i study the objects these days and i saw that we can declare PUBLIC VARS in a class and also PROPERTIES. So we can have code like PUBLIC X AS Integer cThing.X or PROPERTY X AS Integer cThing.X - I understand that a property is shown at Properties List in IDE and a Vars not. - Properties need READ/WRITE functions, Vars not. Are any other differences about them in programming? -- Regards, Demosthenes Koptsis. From almanova at ...1228... Mon Jun 20 09:37:13 2011 From: almanova at ...1228... (Almanova Sistemi) Date: Mon, 20 Jun 2011 09:37:13 +0200 Subject: [Gambas-user] gambas3 and web services Message-ID: <4DFEF8A9.6040908@...1228...> Hallo to everyone, I am Massimo and I try to write a client software (in gambas 3) that use a web services. In other word the software send data with saop protocol an receive data with the same protocol. The information about the availebe services are described in a WSDL file. Now, hor Can I do this with gambas? Best Regards, Massimo. From demosthenesk at ...626... Mon Jun 20 10:16:12 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 20 Jun 2011 11:16:12 +0300 Subject: [Gambas-user] Class name bug. Message-ID: <1308557772.8470.2.camel@...2493...> i think i found a small bug. i created a class cMachine and when i write code IDE auto-correct the name to CMachine instead cMachine. Private hCompressor As CMachine Public Sub btnCreateObject_Click() hCompressor = New CMachine End -- Regards, Demosthenes Koptsis. From bbruen at ...2308... Mon Jun 20 10:37:17 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 20 Jun 2011 18:07:17 +0930 Subject: [Gambas-user] MyObject.Property vs MyObject.Variable In-Reply-To: <1308549010.5839.5.camel@...2493...> References: <1308549010.5839.5.camel@...2493...> Message-ID: <4DFF06BD.80300@...2308...> On 20/06/11 15:20, Demosthenes Koptsis wrote: > Hi list, > > i study the objects these days and i saw that we can declare PUBLIC VARS > in a class and also PROPERTIES. > > So we can have code like > > PUBLIC X AS Integer > cThing.X > > or > > PROPERTY X AS Integer > cThing.X > > - I understand that a property is shown at Properties List in IDE and a > Vars not. > - Properties need READ/WRITE functions, Vars not. > > Are any other differences about them in programming? > > > Hi, Very quickly off the top of my head. 1) Properties are overrideable. So you can "fake" protected attributes, as in CLASS base PROPERTY VeryDangerous as Float ... CLASS child INHERITS base PROPERTY VeryDangerous as Float PRIVATE FUNCTION VeryDangerous_Read() as Float RETURN 0 END PRIVATE SUB VeryDangerous(Value as Float) Error.Raise("BANG! Don't Ever try to set this property again") END 2) With properties you can add validation PROPERTY Age as Integer PRIVATE FUNCTION Age_Write(Value as Integer) IF 0<=Value<=100 $myAge=Value ELSE Error.Raise("Attempt to set idiotic value for Age") ENDIF END 3) Properties can implement business rules on related attributes PROPERTY Income as Integer PRIVATE FUNCTION Income_Write(Value as Integer) $myIncome=Value SELECT CASE $myIncome CASE <20000 $myCreditRating=0 CASE <50000 $myCreditRating=1 CASE <100000 $myCreditRating=2 CASE ELSE $myCreditRating=3 END SELECT END (try doing that with a public var!) 4) Generic Public Vars Create Bugs! CLASS x PUBLIC Obscure as Variant CLASS y myX.Obscure="Hello Sailor" .... .... MyIncome=200 * MyX.Obscure (contrived, but you'll get my drift.) 5) Properties can be Read Only! (and therefore can represent derived attributes.) PRIVATE FUNCTION WeeklyPay_Read() as Float RETURN $myWage * $myHoursWorked END 6) Someone check this! Public vars are values, properties are references ted From jussi.lahtinen at ...626... Mon Jun 20 21:14:27 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Jun 2011 22:14:27 +0300 Subject: [Gambas-user] To wish list: Select with multiple variables Message-ID: I think I'm having short circuit in my brain, so this might be stupid suggestion... But I would like to see feature illustrated by following example: Select Case bVar1; bVar2; bVar3; iVar Case True; True; True; 1 To 10 'Do something Case False; True; True; 11 To 20 'Do something else ... etc ... Case Else 'All other combinations are handled here End Select This would be great way to simplify complicated "If Then Else" structures, anyone agree..? I could implement this same functionality with two functions (using Param for arguments and return string from functions): Select Case fCondition(bVar1, bVar2, bVar3, iVar) Case fCase(True, True, True, "1 to 10") 'Do something Case fCase(False, True, True, "11 to 20") 'Do something else ... etc ... Case Else 'All other combinations are handled here End Select But I'm afraid it would be too resource hungry. Better ideas? Jussi From gambas.fr at ...626... Mon Jun 20 21:47:13 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 20 Jun 2011 21:47:13 +0200 Subject: [Gambas-user] Class name bug. In-Reply-To: <1308557772.8470.2.camel@...2493...> References: <1308557772.8470.2.camel@...2493...> Message-ID: 2011/6/20 Demosthenes Koptsis : > i think i found a small bug. > > i created a class cMachine and when i write code IDE auto-correct the > name to CMachine instead cMachine. > > Private hCompressor As CMachine > > Public Sub btnCreateObject_Click() > > ?hCompressor = New CMachine > > End > > its not a bug ... if you have declared one time cMachine ... the ide remember the symbol.. look in the autocompletion list you will have the both name > > -- > Regards, > Demosthenes Koptsis. > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Mon Jun 20 21:55:36 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 20 Jun 2011 22:55:36 +0300 Subject: [Gambas-user] Class name bug. In-Reply-To: References: <1308557772.8470.2.camel@...2493...> Message-ID: No, I can confirm this is bug. Autocompletion list do have both, but it forces to use upper case version. If you select lower case version, it will be changed automatically to upper case version. Gambas 3 rev 3888 @ Ubuntu 11.04 Jussi On Mon, Jun 20, 2011 at 22:47, Fabien Bodard wrote: > 2011/6/20 Demosthenes Koptsis : > > i think i found a small bug. > > > > i created a class cMachine and when i write code IDE auto-correct the > > name to CMachine instead cMachine. > > > > Private hCompressor As CMachine > > > > Public Sub btnCreateObject_Click() > > > > hCompressor = New CMachine > > > > End > > > > > > > its not a bug ... if you have declared one time cMachine ... the ide > remember the symbol.. look in the autocompletion list you will have > the both name > > > > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Tue Jun 21 07:40:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 21 Jun 2011 01:40:54 -0400 Subject: [Gambas-user] arithmetic operations on dates and times In-Reply-To: <4DF02FAE.6090007@...1887...> References: <4DF02FAE.6090007@...1887...> Message-ID: <4E002EE6.6070605@...1887...> On 06/08/2011 10:27 PM, Kevin Fishburne wrote: > Alright, I wouldn't bother the list but this is blowing my mind a little > bit. > > The date and time in the game world should start at an arbitrary point > and be modified by the system clock on the server and a scale value > ((timebase + timeserver) * timescale = gameworldtime). So if the base > time starts at the year 1000, the server clock's year is 2011 and the > time scale is 4 then the game world time should be in the year 12044 > ((1000 + 2011) * 4). The date and time ideally would be treated as a > single entity so everything is scaled by four proportionally. > > How in the world would one do this? It's not really important that the > client know the actual date, but it does need to know the time. The > client should be able to add "Timer" to the game world time so it can > keep an accurate 24-hour time while the player is playing. Basically the > client would receive the game world time upon authentication, then look > at "gameworldtime + Timer" to determine what time of day it was until > the player stopped playing. > > I noticed that adding and subtracting to a date or time prints a > floating point number, but multiplying or dividing complains about > expected datatypes. Any insight or outright solutions would bring light > and dark to the world. : Thank you everyone who responded. I got it working. :) There's a ten second discrepancy between the server time and the client time that I've been unable to rectify, but the two times stay in perfect sync other than that unexpected offset. I'll deal with it later since it's a minor issue. Again, thanks for the excellent information. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Jun 21 07:47:57 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 21 Jun 2011 01:47:57 -0400 Subject: [Gambas-user] gb3 SDL functionality Message-ID: <4E00308D.5040605@...1887...> Is there documentation for the gb3 SDL component? I'm looking for the Fill method but can't find it. For now I'll blit to an image and then blit that to the SDL window surface but it'd be nice to blit it directly. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Tue Jun 21 08:24:02 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 08:24:02 +0200 Subject: [Gambas-user] gambas3 and web services In-Reply-To: <4DFEF8A9.6040908@...1228...> References: <4DFEF8A9.6040908@...1228...> Message-ID: <1308637442.8721.60.camel@...2150...> I think this should be possible. I've worked with Web Services from out of java and c# and in its simplest form it's just a case of POSTing parameters on a request. In java you have the advantage of several tools which can read the WSDL for you and automatically generate client code with stubs for the methods to call the Web Service(s). I'm guessing you don't want to get quite that ambitious at this stage? I've done POSTing of parameters in Gambas (somewhere, I have to look for the code!) Can you share the WSDL and/or any existing client code with us? Regards, Caveat On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > Hallo to everyone, > > I am Massimo and I try to write a client software (in gambas 3) that use > a web services. > In other word the software send data with saop protocol an receive data > with the same protocol. > > The information about the availebe services are described in a WSDL file. > > Now, hor Can I do this with gambas? > > Best Regards, > Massimo. > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From almanova at ...1228... Tue Jun 21 10:02:16 2011 From: almanova at ...1228... (Almanova Sistemi) Date: Tue, 21 Jun 2011 10:02:16 +0200 Subject: [Gambas-user] gambas3 and web services In-Reply-To: <4E004DF3.2010309@...1228...> References: <4E004DF3.2010309@...1228...> Message-ID: <4E005008.70705@...1228...> attached to this mail the wsdl requested. I hope that this can hep me to develop my application. Regards, Massimo > I think this should be possible. I've worked with Web Services from out > of java and c# and in its simplest form it's just a case of POSTing > parameters on a request. > > In java you have the advantage of several tools which can read the WSDL > for you and automatically generate client code with stubs for the > methods to call the Web Service(s). I'm guessing you don't want to get > quite that ambitious at this stage? > > I've done POSTing of parameters in Gambas (somewhere, I have to look for > the code!) > > Can you share the WSDL and/or any existing client code with us? > > Regards, > Caveat > > On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > > Hallo to everyone, > > > > I am Massimo and I try to write a client software (in gambas 3) that use > > a web services. > > In other word the software send data with saop protocol an receive data > > with the same protocol. > > > > The information about the availebe services are described in a WSDL file. > > > > Now, hor Can I do this with gambas? > > > > Best Regards, > > Massimo. > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at ...1107... > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: _1.wsdl Type: application/x-wsdl Size: 8148 bytes Desc: not available URL: From Gambas at ...1950... Tue Jun 21 10:57:47 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 10:57:47 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) Message-ID: <1308646667.8721.86.camel@...2150...> Please find attached full stdout and stderr in result_comp_gambas3.gz Also (with thanks to Kevin Fishburne!) script comp_gambas Error appears to be that it can't find glew.h: GL.h:29: fatal error: glew.h: No such file or directory I notice that I do have a glew.h in /usr/include/GL/ and according to synaptic I have libglew1.5 and libglew1.5-dev installed (but I do not have libglewmx installed...) Running 64-bit Ubuntu 10.10 and the Gambas3 version checked out was revision 3892. Any pointers? Thanks and regards, Caveat -------------- next part -------------- A non-text attachment was scrubbed... Name: result_comp_gambas3.gz Type: application/x-gzip Size: 64161 bytes Desc: not available URL: -------------- next part -------------- sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev #sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev cd ~/dev/gambas3 rm -fr trunk svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ cd trunk ./reconf-all ./configure make sudo make install gambas3 From lordheavym at ...626... Tue Jun 21 11:15:43 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 21 Jun 2011 11:15:43 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <1308646667.8721.86.camel@...2150...> References: <1308646667.8721.86.camel@...2150...> Message-ID: <2572349.RS0lG7Ejj9@...2592...> Le Tuesday 21 June 2011 10:57:47, Caveat a ?crit : > Please find attached full stdout and stderr in result_comp_gambas3.gz > > Also (with thanks to Kevin Fishburne!) script comp_gambas > > Error appears to be that it can't find glew.h: > > GL.h:29: fatal error: glew.h: No such file or directory > > I notice that I do have a glew.h in /usr/include/GL/ and according to > synaptic I have libglew1.5 and libglew1.5-dev installed (but I do not > have libglewmx installed...) > > Running 64-bit Ubuntu 10.10 and the Gambas3 version checked out was > revision 3892. > > Any pointers? > > Thanks and regards, > Caveat Can you post the content of the file /usr/lib/pkgconfig/glew.pc ? Thanks From Gambas at ...1950... Tue Jun 21 11:28:43 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 11:28:43 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <2572349.RS0lG7Ejj9@...2592...> References: <1308646667.8721.86.camel@...2150...> <2572349.RS0lG7Ejj9@...2592...> Message-ID: <1308648523.8721.88.camel@...2150...> Hi Laurent It's attached herewith. Thanks and regards, Caveat On Tue, 2011-06-21 at 11:15 +0200, Laurent Carlier wrote: > Le Tuesday 21 June 2011 10:57:47, Caveat a ?crit : > > Please find attached full stdout and stderr in result_comp_gambas3.gz > > > > Also (with thanks to Kevin Fishburne!) script comp_gambas > > > > Error appears to be that it can't find glew.h: > > > > GL.h:29: fatal error: glew.h: No such file or directory > > > > I notice that I do have a glew.h in /usr/include/GL/ and according to > > synaptic I have libglew1.5 and libglew1.5-dev installed (but I do not > > have libglewmx installed...) > > > > Running 64-bit Ubuntu 10.10 and the Gambas3 version checked out was > > revision 3892. > > > > Any pointers? > > > > Thanks and regards, > > Caveat > > Can you post the content of the file /usr/lib/pkgconfig/glew.pc ? > > Thanks > > -------------- next part -------------- prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include Name: The OpenGL Extension Wrangler Library Description: cross-platform C/C++ extension loading library Version: 1.5.2 Libs: -L${libdir} -lGLEW Cflags: -I${includedir} From lordheavym at ...626... Tue Jun 21 11:45:08 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 21 Jun 2011 11:45:08 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <1308648523.8721.88.camel@...2150...> References: <1308646667.8721.86.camel@...2150...> <2572349.RS0lG7Ejj9@...2592...> <1308648523.8721.88.camel@...2150...> Message-ID: <6712355.Uy7xIOIE3b@...2592...> Le Tuesday 21 June 2011 11:28:43, Caveat a ?crit : > Hi Laurent > > It's attached herewith. > > Thanks and regards, > Caveat > Should be fixed in trunk. Thanks for the report. ++ From Gambas at ...1950... Tue Jun 21 12:08:51 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 12:08:51 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <6712355.Uy7xIOIE3b@...2592...> References: <1308646667.8721.86.camel@...2150...> <2572349.RS0lG7Ejj9@...2592...> <1308648523.8721.88.camel@...2150...> <6712355.Uy7xIOIE3b@...2592...> Message-ID: <1308650931.8721.91.camel@...2150...> No change I'm afraid. Checked out revision 3894 and in .../gb.opengl/src/glsl still getting /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:29: GL.h:29: fatal error: glew.h: No such file or directory compilation terminated. make[3]: *** [main.lo] Error 1 Sorry! On Tue, 2011-06-21 at 11:45 +0200, Laurent Carlier wrote: > Le Tuesday 21 June 2011 11:28:43, Caveat a ?crit : > > Hi Laurent > > > > It's attached herewith. > > > > Thanks and regards, > > Caveat > > > > Should be fixed in trunk. > > Thanks for the report. > ++ > From lordheavym at ...626... Tue Jun 21 12:18:22 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 21 Jun 2011 12:18:22 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <1308650931.8721.91.camel@...2150...> References: <1308646667.8721.86.camel@...2150...> <6712355.Uy7xIOIE3b@...2592...> <1308650931.8721.91.camel@...2150...> Message-ID: <6746958.VI0IZBJzxe@...2592...> Le Tuesday 21 June 2011 12:08:51, Caveat a ?crit : > No change I'm afraid. Checked out revision 3894 and > in .../gb.opengl/src/glsl still getting > > /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o > main.lo main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from main.c:29: > GL.h:29: fatal error: glew.h: No such file or directory > compilation terminated. > make[3]: *** [main.lo] Error 1 > > Sorry! And should also be fixed in trunk now :-p ++ From Gambas at ...1950... Tue Jun 21 12:49:33 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 12:49:33 +0200 Subject: [Gambas-user] Problem compiling gambas3 (glew.h not found) In-Reply-To: <6746958.VI0IZBJzxe@...2592...> References: <1308646667.8721.86.camel@...2150...> <6712355.Uy7xIOIE3b@...2592...> <1308650931.8721.91.camel@...2150...> <6746958.VI0IZBJzxe@...2592...> Message-ID: <1308653373.8721.101.camel@...2150...> Confirmed fixed in 3895. Many thanks for the lightning fast responses. :-) Regards, Caveat On Tue, 2011-06-21 at 12:18 +0200, Laurent Carlier wrote: > Le Tuesday 21 June 2011 12:08:51, Caveat a ?crit : > > No change I'm afraid. Checked out revision 3894 and > > in .../gb.opengl/src/glsl still getting > > > > /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > > -I. -I../.. -pipe -Wall -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o > > main.lo main.c > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -pipe -Wall > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > > -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > > In file included from main.c:29: > > GL.h:29: fatal error: glew.h: No such file or directory > > compilation terminated. > > make[3]: *** [main.lo] Error 1 > > > > Sorry! > > And should also be fixed in trunk now :-p > > ++ > From Gambas at ...1950... Tue Jun 21 14:00:34 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 14:00:34 +0200 Subject: [Gambas-user] gambas3 and web services In-Reply-To: <4E005008.70705@...1228...> References: <4E004DF3.2010309@...1228...> <4E005008.70705@...1228...> Message-ID: <1308657634.8721.110.camel@...2150...> I just made a quick example using one of the free Web Services out on the interwebbase ;-) Your project will need to include networking (obviously!) Dim http As HttpClient Dim buffer As String http = New HttpClient As "http" http.URL = "http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp" http.Async = False http.Timeout = 60 http.Post("application/x-www-form-urlencoded", "Temperature=100&FromUnit=degreeCelsius&ToUnit=degreeFahrenheit") Print "begin" If http.Status < 0 Then Print "ERROR" Else ' Success - read data If Lof(http) Then Read #http, buffer, Lof(http) Print buffer End If Print "end" The result is: begin 212 end This just converts a temperature from one unit to another (100C = 212F). You should be able to pick the bones out of this to make a specific client for the Web Service(s) you want to use. For more details of the example WS I used, see http://www.webservicex.net/ConvertTemperature.asmx?op=ConvertTemp Regards, Caveat On Tue, 2011-06-21 at 10:02 +0200, Almanova Sistemi wrote: > attached to this mail the wsdl requested. > > I hope that this can hep me to develop my application. > > Regards, > Massimo > > I think this should be possible. I've worked with Web Services from out > > of java and c# and in its simplest form it's just a case of POSTing > > parameters on a request. > > > > In java you have the advantage of several tools which can read the WSDL > > for you and automatically generate client code with stubs for the > > methods to call the Web Service(s). I'm guessing you don't want to get > > quite that ambitious at this stage? > > > > I've done POSTing of parameters in Gambas (somewhere, I have to look for > > the code!) > > > > Can you share the WSDL and/or any existing client code with us? > > > > Regards, > > Caveat > > > > On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > > > Hallo to everyone, > > > > > > I am Massimo and I try to write a client software (in gambas 3) that use > > > a web services. > > > In other word the software send data with saop protocol an receive data > > > with the same protocol. > > > > > > The information about the availebe services are described in a WSDL file. > > > > > > Now, hor Can I do this with gambas? > > > > > > Best Regards, > > > Massimo. > > > ------------------------------------------------------------------------------ > > > EditLive Enterprise is the world's most technically advanced content > > > authoring tool. Experience the power of Track Changes, Inline Image > > > Editing and ensure content is compliant with Accessibility Checking. > > > http://p.sf.net/sfu/ephox-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at ...1107... > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Gambas at ...1950... Tue Jun 21 16:56:42 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 16:56:42 +0200 Subject: [Gambas-user] gambas3 and web services [bigger, better, faster, more] In-Reply-To: <1308657634.8721.110.camel@...2150...> References: <4E004DF3.2010309@...1228...> <4E005008.70705@...1228...> <1308657634.8721.110.camel@...2150...> Message-ID: <1308668202.8721.131.camel@...2150...> Hi Massimo, I just extended the example program I worked up to include all 4 main ways of calling a Web Service. These are: Http GET, Http POST, SOAP 1.1, and SOAP 1.2. One problem I ran into is that Gambas3 seems a little too fussy about the valid content types and will give a runtime error on ones it doesn't like but it seems like they are perfectly valid. I found the trick was to set the content-type as first param on the call to HttpClient.Post() to empty string and 'manually' send a Content-Type header. Be aware that the public Web Service used here can be a little flaky, and does time out now and then (guess it depends how many people are hitting their server at once...). You can find the code on pastebin, nicely formatted, at http://pastebin.com/2gyxGzAP and here's the code in plain text style: ************************************************************************************************ Public Sub Test_Click() Dim http As HttpClient http = New HttpClient As "http" doHttpGet(http) showResult("Http GET", http) http = New HttpClient As "http" doHttpPost(http) showResult("Http POST", http) http = New HttpClient As "http" doSOAP11(http) showResult("SOAP 1.1", http) http = New HttpClient As "http" doSOAP12(http) showResult("SOAP 1.2", http) End Public Sub doHttpGet(http As HttpClient) http.URL = "http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp?Temperature=100&FromUnit=degreeCelsius&ToUnit=degreeFahrenheit" http.Async = False http.Timeout = 60 http.Get() End Public Sub doHttpPost(http As HttpClient) Dim data As String http.URL = "http://www.webservicex.net/ConvertTemperature.asmx/ConvertTemp" http.Async = False http.Timeout = 60 data = "Temperature=100&FromUnit=degreeCelsius&ToUnit=degreeFahrenheit" Print "Http POST data: " & data http.Post("application/x-www-form-urlencoded", data) End Public Sub doSoap11(http As HttpClient) Dim data, aHeader As String Dim headers As String[] http.URL = "http://www.webservicex.net/ConvertTemperature.asmx" http.Async = False http.Timeout = 60 data = "" & gb.newline & "" & gb.newline & " " & gb.newline & " " & gb.newline & " 100" & gb.newline & " degreeCelsius" & gb.newline & " degreeFahrenheit" & gb.newline & " " & gb.newline & " " & gb.newline & "" Print "Soap 1.1 data: " & data headers = ["Content-Type: text/xml; charset=utf-8", "Content-Length: " & Len(data), "SOAPAction: " & Chr$(34) & "http://www.webserviceX.NET/ConvertTemp" & Chr$(34)] For Each aHeader In headers Print "Sending SOAP 1.1 header: " & aHeader Next http.Post("", data, headers) End Public Sub doSoap12(http As HttpClient) Dim data, aHeader As String Dim headers As String[] http.URL = "http://www.webservicex.net/ConvertTemperature.asmx" http.Async = False http.Timeout = 60 data = "" & gb.newline & "" & gb.newline & " " & gb.newline & " " & gb.newline & " 100" & gb.newline & " degreeCelsius" & gb.newline & " degreeFahrenheit" & gb.newline & " " & gb.newline & " " & gb.newline & "" Print "Soap 1.2 data: " & data headers = ["Content-Type: application/soap+xml; charset=utf-8", "Content-Length: " & Len(data)] For Each aHeader In headers Print "Sending SOAP 1.2 header: " & aHeader Next http.Post("", data, headers) End Public Sub showResult(typeOfCall As String, http As HttpClient) Dim buffer, aHeader As String Print "*** Result for " & typeOfCall & " ***" If http.Status < 0 Then Print "ERROR" Else ' Success - read data If Lof(http) Then Read #http, buffer, Lof(http) Print buffer For Each aHeader In http.Headers Print "Got header: " & aHeader Next End If Print "*** End " & typeOfCall & " ***" End ************************************************************************************************ Results are as follows: *** Result for Http GET *** 212 Got header: HTTP/1.1 200 OK Got header: Cache-Control: private, max-age=0 Got header: Content-Length: 96 Got header: Content-Type: text/xml; charset=utf-8 Got header: Server: Microsoft-IIS/7.0 Got header: X-AspNet-Version: 4.0.30319 Got header: X-Powered-By: ASP.NET Got header: Date: Tue, 21 Jun 2011 14:44:45 GMT *** End Http GET *** Http POST data: Temperature=100&FromUnit=degreeCelsius&ToUnit=degreeFahrenheit *** Result for Http POST *** 212 Got header: HTTP/1.1 200 OK Got header: Cache-Control: private, max-age=0 Got header: Content-Length: 96 Got header: Content-Type: text/xml; charset=utf-8 Got header: Server: Microsoft-IIS/7.0 Got header: X-AspNet-Version: 4.0.30319 Got header: X-Powered-By: ASP.NET Got header: Date: Tue, 21 Jun 2011 14:45:06 GMT *** End Http POST *** Soap 1.1 data: 100 degreeCelsius degreeFahrenheit Sending SOAP 1.1 header: Content-Type: text/xml; charset=utf-8 Sending SOAP 1.1 header: Content-Length: 445 Sending SOAP 1.1 header: SOAPAction: "http://www.webserviceX.NET/ConvertTemp" *** Result for SOAP 1.1 *** 212 Got header: HTTP/1.1 200 OK Got header: Cache-Control: private, max-age=0 Got header: Content-Length: 367 Got header: Content-Type: text/xml; charset=utf-8 Got header: Server: Microsoft-IIS/7.0 Got header: X-AspNet-Version: 4.0.30319 Got header: X-Powered-By: ASP.NET Got header: Date: Tue, 21 Jun 2011 14:45:19 GMT *** End SOAP 1.1 *** Soap 1.2 data: 100 degreeCelsius degreeFahrenheit Sending SOAP 1.2 header: Content-Type: application/soap+xml; charset=utf-8 Sending SOAP 1.2 header: Content-Length: 453 *** Result for SOAP 1.2 *** 212 Got header: HTTP/1.1 200 OK Got header: Cache-Control: private, max-age=0 Got header: Content-Length: 365 Got header: Content-Type: application/soap+xml; charset=utf-8 Got header: Server: Microsoft-IIS/7.0 Got header: X-AspNet-Version: 4.0.30319 Got header: X-Powered-By: ASP.NET Got header: Date: Tue, 21 Jun 2011 14:45:37 GMT *** End SOAP 1.2 *** Hope this helps you to get your Web Service client up and running using whichever protocol suits you best. Regards, Caveat O> > On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > > > > Hallo to everyone, > > > > > > > > I am Massimo and I try to write a client software (in gambas 3) that use > > > > a web services. > > > > In other word the software send data with saop protocol an receive data > > > > with the same protocol. > > > > > > > > The information about the availebe services are described in a WSDL file. > > > > > > > > Now, hor Can I do this with gambas? > > > > > > > > Best Regards, > > > > Massimo. > > > > ------------------------------------------------------------------------------ > > > > EditLive Enterprise is the world's most technically advanced content > > > > authoring tool. Experience the power of Track Changes, Inline Image > > > > Editing and ensure content is compliant with Accessibility Checking. > > > > http://p.sf.net/sfu/ephox-dev2dev > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at ...1107... > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Tue Jun 21 17:21:31 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 21 Jun 2011 18:21:31 +0300 Subject: [Gambas-user] Web page 1st image (new idea) Message-ID: <1308669691.16402.12.camel@...2493...> i saw the image from 1st page at site and i have some ideas to make it better. i would like your opinion about that, as Benoit suggested. The concept is 1) the windows to be on a 3d-panorama position instead flat style. 2) Behind will be a star-wars like text from code. 3) And in front of them the logo with opacity for some effect. The result is the next image http://www.mediafire.com/imgbnc.php/70e13f6c21a1a88788f461a96476c1ea7e646e66ed55cef1533b15207be6b6fd6g.jpg Benoit said about it: > Not bad! > > I need some place to put the "news" frame, and I suggest that the > floor has no > drop shadow, and/or looks like the old one. > i will make a new image with size 480px ? 328px as this one on site. -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Tue Jun 21 17:38:46 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Tue, 21 Jun 2011 18:38:46 +0300 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] Message-ID: <1308670726.16402.14.camel@...2493...> The new version with web site dimensions is this one http://img28.mediafire.com/b0446d5e58da5d399646c537750afc8edee9edc6edfd5c9245c87cc93ea7f46b6g.jpg -- Regards, Demosthenes Koptsis. -------------- next part -------------- An embedded message was scrubbed... From: Demosthenes Koptsis Subject: Web page 1st image (new idea) Date: Tue, 21 Jun 2011 18:21:35 +0300 Size: 1148 URL: From Gambas at ...1950... Tue Jun 21 17:49:04 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 21 Jun 2011 17:49:04 +0200 Subject: [Gambas-user] My first Gambas patch (HttpClient content-type validation) In-Reply-To: <1308669691.16402.12.camel@...2493...> References: <1308669691.16402.12.camel@...2493...> Message-ID: <1308671344.8721.140.camel@...2150...> I noticed that the validation on the content-type param (first param on a call to HttpClient.Post) seemed a little too strict. It wouldn't allow me to (for example) specify: http.Post("application/soap+xml; charset=utf-8", data) So I have patched line 247 of CHttpClient.c in trunk/gb.net.curl/src from: if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/') to now read: if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/' || c == ';' || c == ' ' || c == '=') Thus adding semi-colon, space, and the equals sign to the set of accepted characters. I have tested this locally and it appears to work but I don't have commit rights to the Gambas3 svn (probably a good thing lol). Could one of the maintainers take a look and, if in agreement, make the above patch in trunk? Thanks and regards, Caveat From gambas at ...2524... Tue Jun 21 19:26:27 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 21 Jun 2011 17:26:27 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 Message-ID: <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 71 by islamph... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 1) Describe the problem.Signal #11 rises 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.22.0 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome when i click on Sales menu>sales.....error rises but if try to reproduce the error just wrok fine...after while it arises again :P Attachments: e-pharmacist.tar.gz 8.6 MB pharm.sql.tar.gz 432 KB From gambas at ...2524... Tue Jun 21 19:56:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 21 Jun 2011 17:56:41 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #1 on issue 71 by jussi.la... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 From change log; * BUG: Calling Menu.Children.Clear() or deleting a menu during a Menu Show event should not crash anymore. Maybe this affects on your code (I didn't look your code)? If so, then just update to latest version (2.23.1) of Gambas 2. Jussi From gambas at ...2524... Tue Jun 21 21:42:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 21 Jun 2011 19:42:37 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <1-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #2 on issue 71 by islamph... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 i'll compile to the new version and seewhat happens From pojokmini at ...43... Wed Jun 22 15:30:34 2011 From: pojokmini at ...43... (pojok mini) Date: Wed, 22 Jun 2011 06:30:34 -0700 (PDT) Subject: [Gambas-user] [SPAM] Message-ID: <215107.26208.qm@...2600...> lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities From pojokmini at ...43... Wed Jun 22 15:30:44 2011 From: pojokmini at ...43... (pojok mini) Date: Wed, 22 Jun 2011 06:30:44 -0700 (PDT) Subject: [Gambas-user] [SPAM] Message-ID: <364628.36436.qm@...2602...> lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities From pojokmini at ...43... Wed Jun 22 15:30:51 2011 From: pojokmini at ...43... (pojok mini) Date: Wed, 22 Jun 2011 06:30:51 -0700 (PDT) Subject: [Gambas-user] [SPAM] Message-ID: <860064.58473.qm@...2604...> lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities From pojokmini at ...43... Wed Jun 22 15:30:58 2011 From: pojokmini at ...43... (pojok mini) Date: Wed, 22 Jun 2011 06:30:58 -0700 (PDT) Subject: [Gambas-user] [SPAM] Message-ID: <323643.96997.qm@...2606...> lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities From pojokmini at ...43... Wed Jun 22 15:31:04 2011 From: pojokmini at ...43... (pojok mini) Date: Wed, 22 Jun 2011 06:31:04 -0700 (PDT) Subject: [Gambas-user] [SPAM] Message-ID: <20050.12642.qm@...2606...> lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities From gambas at ...1... Thu Jun 23 00:25:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jun 2011 00:25:02 +0200 Subject: [Gambas-user] My first Gambas patch (HttpClient content-type validation) In-Reply-To: <1308671344.8721.140.camel@...2150...> References: <1308669691.16402.12.camel@...2493...> <1308671344.8721.140.camel@...2150...> Message-ID: <201106230025.02750.gambas@...1...> > I noticed that the validation on the content-type param (first param on > a call to HttpClient.Post) seemed a little too strict. > > It wouldn't allow me to (for example) specify: > > http.Post("application/soap+xml; charset=utf-8", data) > > So I have patched line 247 of CHttpClient.c in trunk/gb.net.curl/src > from: > > if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/') > > to now read: > > if (isalnum(c) || c == '-' || c == '+' || c == '.' || c == '/' || c == > ';' || c == ' ' || c == '=') > > Thus adding semi-colon, space, and the equals sign to the set of > accepted characters. > > I have tested this locally and it appears to work but I don't have > commit rights to the Gambas3 svn (probably a good thing lol). > > Could one of the maintainers take a look and, if in agreement, make the > above patch in trunk? > > Thanks and regards, > Caveat > Thanks. Merged in revision #3897. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Jun 23 01:21:40 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 22 Jun 2011 19:21:40 -0400 Subject: [Gambas-user] gb3: Format$ Message-ID: <4E027904.1030400@...1887...> I'm using this to print a formatted date: Draw.Text("Date and Time: " & CDate(Server.DateCurrent) & " (" & Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM") & ")", 32, ystart - 1) It seems that Format$ actually changes the value of Server.DateCurrent, making it AM when it should be PM. Format$ is actually forcing the hour to be between 1 and 12. Shouldn't Format$ simply return a value and not overwrite the expression? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Jun 23 02:59:50 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 22 Jun 2011 20:59:50 -0400 Subject: [Gambas-user] gb3: assigning a color to a variable of Color datatype Message-ID: <4E029006.9030200@...1887...> The code: SolarCurrent = Color.RGB(Convert.Range(HourCurrent, 0, 0.125, sol_midnightr, sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, sol_midnightg, sol_dawng), Convert.Range(HourCurrent, 0, 0.125, sol_midnightb, sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, sol_midnighta, sol_dawna)) Type mismatch: wanted Color got Integer instead Color.RGB(Convert.Range(HourCurrent, 0, 0.125, sol_midnightr, sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, sol_midnightg, sol_dawng), Convert.Range(HourCurrent, 0, 0.125, sol_midnightb, sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, sol_midnighta, sol_dawna)) by itself returns 520093711, so everything after the = works fine. The function Convert.Range returns a single, so basically the logic is: SolarCurrent = Color.RGB(singleR, singleG, singleB, singleA) SolarCurrent is fined as a color: Dim SolarCurrent As Color ' Current color of sunlight. Any idea what's happening here? Seems like it should just work, so I must be missing something. Just in case it matters, the Convert.Range function looks like this: Public Function Range(Range1Value As Single, Range1Minimum As Single, Range1Maximum As Single, Range2Minimum As Single, Range2Maximum As Single) As Single ' Convert value in range 1 to number in range 2. ' Convert and return the value. Return (((Range1Value - Range1Minimum) * (Range2Maximum - Range2Minimum)) / (Range1Maximum - Range1Minimum)) + Range2Minimum End -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Thu Jun 23 03:20:04 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 23 Jun 2011 03:20:04 +0200 Subject: [Gambas-user] gb3: assigning a color to a variable of Color datatype In-Reply-To: <4E029006.9030200@...1887...> References: <4E029006.9030200@...1887...> Message-ID: <1308792004.8721.237.camel@...2150...> Morning Kevin Color.RGB returns an Integer, not an object of type Color See http://gambasdoc.org/help/comp/gb.qt/color/rgb So I think your SolarCurrent needs to be an integer (Color is a static class mainly for convenience really) Regards, Caveat On Wed, 2011-06-22 at 20:59 -0400, Kevin Fishburne wrote: > The code: > > SolarCurrent = Color.RGB(Convert.Range(HourCurrent, 0, 0.125, > sol_midnightr, sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, > sol_midnightg, sol_dawng), Convert.Range(HourCurrent, 0, 0.125, > sol_midnightb, sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, > sol_midnighta, sol_dawna)) > > Type mismatch: wanted Color got Integer instead > > Color.RGB(Convert.Range(HourCurrent, 0, 0.125, sol_midnightr, > sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, sol_midnightg, > sol_dawng), Convert.Range(HourCurrent, 0, 0.125, sol_midnightb, > sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, sol_midnighta, sol_dawna)) > > by itself returns 520093711, so everything after the = works fine. The > function Convert.Range returns a single, so basically the logic is: > > SolarCurrent = Color.RGB(singleR, singleG, singleB, singleA) > > SolarCurrent is fined as a color: > > Dim SolarCurrent As Color ' Current color of sunlight. > > Any idea what's happening here? Seems like it should just work, so I > must be missing something. > > Just in case it matters, the Convert.Range function looks like this: > > Public Function Range(Range1Value As Single, Range1Minimum As Single, > Range1Maximum As Single, Range2Minimum As Single, Range2Maximum As > Single) As Single > > ' Convert value in range 1 to number in range 2. > > ' Convert and return the value. > Return (((Range1Value - Range1Minimum) * (Range2Maximum - > Range2Minimum)) / (Range1Maximum - Range1Minimum)) + Range2Minimum > > End > > From kevinfishburne at ...1887... Thu Jun 23 03:31:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 22 Jun 2011 21:31:09 -0400 Subject: [Gambas-user] gb3: assigning a color to a variable of Color datatype In-Reply-To: <1308792004.8721.237.camel@...2150...> References: <4E029006.9030200@...1887...> <1308792004.8721.237.camel@...2150...> Message-ID: <4E02975D.9050408@...1887...> On 06/22/2011 09:20 PM, Caveat wrote: > Morning Kevin > > Color.RGB returns an Integer, not an object of type Color > > See http://gambasdoc.org/help/comp/gb.qt/color/rgb > > So I think your SolarCurrent needs to be an integer (Color is a static > class mainly for convenience really) > > Regards, > Caveat > > On Wed, 2011-06-22 at 20:59 -0400, Kevin Fishburne wrote: >> The code: >> >> SolarCurrent = Color.RGB(Convert.Range(HourCurrent, 0, 0.125, >> sol_midnightr, sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, >> sol_midnightg, sol_dawng), Convert.Range(HourCurrent, 0, 0.125, >> sol_midnightb, sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, >> sol_midnighta, sol_dawna)) >> >> Type mismatch: wanted Color got Integer instead >> >> Color.RGB(Convert.Range(HourCurrent, 0, 0.125, sol_midnightr, >> sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, sol_midnightg, >> sol_dawng), Convert.Range(HourCurrent, 0, 0.125, sol_midnightb, >> sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, sol_midnighta, sol_dawna)) >> >> by itself returns 520093711, so everything after the = works fine. The >> function Convert.Range returns a single, so basically the logic is: >> >> SolarCurrent = Color.RGB(singleR, singleG, singleB, singleA) >> >> SolarCurrent is fined as a color: >> >> Dim SolarCurrent As Color ' Current color of sunlight. >> >> Any idea what's happening here? Seems like it should just work, so I >> must be missing something. >> >> Just in case it matters, the Convert.Range function looks like this: >> >> Public Function Range(Range1Value As Single, Range1Minimum As Single, >> Range1Maximum As Single, Range2Minimum As Single, Range2Maximum As >> Single) As Single >> >> ' Convert value in range 1 to number in range 2. >> >> ' Convert and return the value. >> Return (((Range1Value - Range1Minimum) * (Range2Maximum - >> Range2Minimum)) / (Range1Maximum - Range1Minimum)) + Range2Minimum >> >> End > Awesome, it works. Thank you. :) That is a bit counterintuitive, but good to know. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Jun 23 04:13:00 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 22 Jun 2011 22:13:00 -0400 Subject: [Gambas-user] gb3: date/time reporting odd fractional value Message-ID: <4E02A12C.7070608@...1887...> According to some previous answers to my questions about performing arithmetic operations on dates and times, the fractional part of a date (cfloat[now] - fix[cfloat(now)]) represents the time of day and the integer part (fix[cfloat(now)]) represents the number of days elapsed since the beginning of time. So if it's 12:00 PM then cfloat(now) should display x.5, meaning half the day has passed. If I enter ?cfloat(now) in the immediate window I get something like 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer to x.916666674? I thought at first it was because I was scaling time, but the immediate window proved that wrong (immediately!). Any insight appreciated as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Thu Jun 23 08:46:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jun 2011 08:46:42 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <4E02A12C.7070608@...1887...> References: <4E02A12C.7070608@...1887...> Message-ID: <201106230846.42216.gambas@...1...> > According to some previous answers to my questions about performing > arithmetic operations on dates and times, the fractional part of a date > (cfloat[now] - fix[cfloat(now)]) represents the time of day and the > integer part (fix[cfloat(now)]) represents the number of days elapsed > since the beginning of time. > > So if it's 12:00 PM then cfloat(now) should display x.5, meaning half > the day has passed. > > If I enter ?cfloat(now) in the immediate window I get something like > 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is > noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer > to x.916666674? > > I thought at first it was because I was scaling time, but the immediate > window proved that wrong (immediately!). Any insight appreciated as always. Date/time values are internally stored in GMT time. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Jun 23 09:16:13 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 23 Jun 2011 03:16:13 -0400 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <201106230846.42216.gambas@...1...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> Message-ID: <4E02E83D.70002@...1887...> On 06/23/2011 02:46 AM, Beno?t Minisini wrote: >> According to some previous answers to my questions about performing >> arithmetic operations on dates and times, the fractional part of a date >> (cfloat[now] - fix[cfloat(now)]) represents the time of day and the >> integer part (fix[cfloat(now)]) represents the number of days elapsed >> since the beginning of time. >> >> So if it's 12:00 PM then cfloat(now) should display x.5, meaning half >> the day has passed. >> >> If I enter ?cfloat(now) in the immediate window I get something like >> 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is >> noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer >> to x.916666674? >> >> I thought at first it was because I was scaling time, but the immediate >> window proved that wrong (immediately!). Any insight appreciated as always. > Date/time values are internally stored in GMT time. I'm reading about GMT on Wikipedia now... How would one interpret the returned values with respect to GMT? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Thu Jun 23 09:54:51 2011 From: support at ...2529... (John Spikowski) Date: Thu, 23 Jun 2011 00:54:51 -0700 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <4E02E83D.70002@...1887...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> Message-ID: <1308815691.2023.1.camel@...1833...> On Thu, 2011-06-23 at 03:16 -0400, Kevin Fishburne wrote: > > I'm reading about GMT on Wikipedia now... How would one interpret the > returned values with respect to GMT? > There are 25 integer World Time Zones from -12 through 0 (GMT) to +12. Each one is 15? of Longitude as measured East and West from the Prime Meridian of the World at Greenwich, England. From kevinfishburne at ...1887... Thu Jun 23 10:16:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 23 Jun 2011 04:16:09 -0400 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <1308815691.2023.1.camel@...1833...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> <1308815691.2023.1.camel@...1833...> Message-ID: <4E02F649.7000209@...1887...> On 06/23/2011 03:54 AM, John Spikowski wrote: > On Thu, 2011-06-23 at 03:16 -0400, Kevin Fishburne wrote: > >> I'm reading about GMT on Wikipedia now... How would one interpret the >> returned values with respect to GMT? >> > There are 25 integer World Time Zones from -12 through 0 (GMT) to +12. > Each one is 15? of Longitude as measured East and West from the Prime > Meridian of the World at Greenwich, England. Thank you. Why should I have to reference a time zone when sending a float between two computers? The date sent is artificial, so maybe it's affected by localization or something weird like that. Are date functions automatically calculated against the host machine's system clock and time zone? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From support at ...2529... Thu Jun 23 10:35:41 2011 From: support at ...2529... (John Spikowski) Date: Thu, 23 Jun 2011 01:35:41 -0700 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <4E02F649.7000209@...1887...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> <1308815691.2023.1.camel@...1833...> <4E02F649.7000209@...1887...> Message-ID: <1308818141.2023.6.camel@...1833...> On Thu, 2011-06-23 at 04:16 -0400, Kevin Fishburne wrote: > On 06/23/2011 03:54 AM, John Spikowski wrote: > > On Thu, 2011-06-23 at 03:16 -0400, Kevin Fishburne wrote: > > > >> I'm reading about GMT on Wikipedia now... How would one interpret the > >> returned values with respect to GMT? > >> > > There are 25 integer World Time Zones from -12 through 0 (GMT) to +12. > > Each one is 15? of Longitude as measured East and West from the Prime > > Meridian of the World at Greenwich, England. > > Thank you. > > Why should I have to reference a time zone when sending a float between > two computers? The date sent is artificial, so maybe it's affected by > localization or something weird like that. Are date functions > automatically calculated against the host machine's system clock and > time zone? > The time returned by Linux is seconds past midnight of Jan. 1st 1970. (based on GMT) Here is a ScriptBasic example to explain. PRINT "Seconds past Jan. 1st, 1970 at midnight GMT","\n\n" PRINT "Local: ",NOW,"\n" PRINT " GMT: ",GMTIME,"\n" jrs at ...1833...:~/sb/test$ scriba Linux_Time Seconds past Jan. 1st, 1970 at midnight GMT Local: 1308792888 GMT: 1308818088 jrs at ...1833...:~/sb/test$ From Gambas at ...1950... Thu Jun 23 11:02:30 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 23 Jun 2011 11:02:30 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <1308818141.2023.6.camel@...1833...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> <1308815691.2023.1.camel@...1833...> <4E02F649.7000209@...1887...> <1308818141.2023.6.camel@...1833...> Message-ID: <1308819750.8721.245.camel@...2150...> Sorry Kevin, I don't get it either. I wrote a little converter to take the millisecond value (stuff after the point) and convert it to hours minutes seconds, according to the standard algorithm... and I get a time that doesn't seem to bear much resemblance to the actual time on my system, nor to GMT, but it does increment per second/per minute as I'd expect! Dim rightNow As Float Dim remain, allSeconds, seconds, minutes, hours As Integer rightNow = Now Print CDate(rightNow) Print "With day: " & rightNow rightNow = rightNow - CFloat(Int(rightNow)) Print "Just time: " & rightNow allSeconds = Int(rightNow * 100000000) Print "Milliseconds: " & allSeconds allSeconds = Int(allSeconds / 1000) ' For testing a specific example off the web ' See http://www.unitarium.com/blog/tag/algorithm ' Scroll down to example 2, use method 1 'allSeconds = 43870 Print "All Seconds: " & allSeconds seconds = allSeconds Mod 3600 Print "Seconds less hours: " & seconds hours = Int(allSeconds / 3600) Print "Hours: " & hours remain = seconds Mod 60 Print "Seconds less minutes: " & remain minutes = Int(seconds / 60) Print "Minutes: " & minutes seconds = remain Print "It is now " & hours & ":" & minutes & ":" & seconds & " GMT" Confused, Caveat On Thu, 2011-06-23 at 01:35 -0700, John Spikowski wrote: > On Thu, 2011-06-23 at 04:16 -0400, Kevin Fishburne wrote: > > On 06/23/2011 03:54 AM, John Spikowski wrote: > > > On Thu, 2011-06-23 at 03:16 -0400, Kevin Fishburne wrote: > > > > > >> I'm reading about GMT on Wikipedia now... How would one interpret the > > >> returned values with respect to GMT? > > >> > > > There are 25 integer World Time Zones from -12 through 0 (GMT) to +12. > > > Each one is 15? of Longitude as measured East and West from the Prime > > > Meridian of the World at Greenwich, England. > > > > Thank you. > > > > Why should I have to reference a time zone when sending a float between > > two computers? The date sent is artificial, so maybe it's affected by > > localization or something weird like that. Are date functions > > automatically calculated against the host machine's system clock and > > time zone? > > > > The time returned by Linux is seconds past midnight of Jan. 1st 1970. > (based on GMT) Here is a ScriptBasic example to explain. > > PRINT "Seconds past Jan. 1st, 1970 at midnight GMT","\n\n" > PRINT "Local: ",NOW,"\n" > PRINT " GMT: ",GMTIME,"\n" > > jrs at ...1833...:~/sb/test$ scriba Linux_Time > Seconds past Jan. 1st, 1970 at midnight GMT > > Local: 1308792888 > GMT: 1308818088 > jrs at ...1833...:~/sb/test$ > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jun 23 13:33:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jun 2011 13:33:04 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <4E02E83D.70002@...1887...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> Message-ID: <201106231333.04535.gambas@...1...> > On 06/23/2011 02:46 AM, Beno?t Minisini wrote: > >> According to some previous answers to my questions about performing > >> arithmetic operations on dates and times, the fractional part of a date > >> (cfloat[now] - fix[cfloat(now)]) represents the time of day and the > >> integer part (fix[cfloat(now)]) represents the number of days elapsed > >> since the beginning of time. > >> > >> So if it's 12:00 PM then cfloat(now) should display x.5, meaning half > >> the day has passed. > >> > >> If I enter ?cfloat(now) in the immediate window I get something like > >> 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is > >> noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer > >> to x.916666674? > >> > >> I thought at first it was because I was scaling time, but the immediate > >> window proved that wrong (immediately!). Any insight appreciated as > >> always. > > > > Date/time values are internally stored in GMT time. > > I'm reading about GMT on Wikipedia now... How would one interpret the > returned values with respect to GMT? Sorry, we should not say "GMT" anymore, but "UTC" instead. For example, in France, the time zone is "-1". It means that dates in France are one hour earlier than in UK (which has a time zone of "0", i.e. the UTC is used). As Gambas must internally store dates independently of the location, it uses UTC. So, in France, Gambas stores dates one hour later, and does the contrary when printing them. In other words, if you send "23/06/2011 10:00:00" from a Gambas program running on a french computer to a Gambas program running on an english computer, it will receive "23/06/2011 11:00:00". But, internally, it will be the same date. Regards, -- Beno?t Minisini From gwalborn at ...626... Thu Jun 23 15:32:04 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Thu, 23 Jun 2011 09:32:04 -0400 (EDT) Subject: [Gambas-user] Using special method _unknown for object properties Message-ID: To the group: Here is my problem. I need to use the "_unknown" special function to simulate object methods and properties at runtime. I coded an "_unknown" method in a class called DITEM If ditem is an instance of DITEM and I refer to ditem.A() where A is NOT a method in DITEM, everything works fine. My "_unknown" method gets called and I can retrieve the arguments (if there are any) and handle the reference just fine. I was expecting that I could also use this for properties. In this case, I would expect to make a reference to ditem.b (such as PRINT ditem.b) and my _unknown method would again be called with the value of isProperty being true and I could process the reference dynamically. Well, as I said, the first instance (the method call) works just fine. The second case does not. When I refer to ditem.b, my _unknown method NEVER gets called, so I can't process the illegal reference. What I DO get is (function ?) printed on the console. Is this a bug in Gambas, or am I doing it wrong? If the former, is it a bug in all versions, or just some (I am running 2.19)? Does it work in Gambas3? I really need to find a fix for this before I can proceed with a big port. Thanks gwalborn -------------- next part -------------- A non-text attachment was scrubbed... Name: Verify This Message with Penango.p7s Type: application/pkcs7-signature Size: 3533 bytes Desc: S/MIME Cryptographic Signature URL: From gambas.fr at ...626... Thu Jun 23 16:42:34 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 16:42:34 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <201106231333.04535.gambas@...1...> References: <4E02A12C.7070608@...1887...> <201106230846.42216.gambas@...1...> <4E02E83D.70002@...1887...> <201106231333.04535.gambas@...1...> Message-ID: Le 23 juin 2011 13:33, Beno?t Minisini a ?crit : >> On 06/23/2011 02:46 AM, Beno?t Minisini wrote: >> >> According to some previous answers to my questions about performing >> >> arithmetic operations on dates and times, the fractional part of a date >> >> (cfloat[now] - fix[cfloat(now)]) represents the time of day and the >> >> integer part (fix[cfloat(now)]) represents the number of days elapsed >> >> since the beginning of time. >> >> >> >> So if it's 12:00 PM then cfloat(now) should display x.5, meaning half >> >> the day has passed. >> >> >> >> If I enter ?cfloat(now) in the immediate window I get something like >> >> 2487839.71017654 even though it's 10:02 PM. If x.0 is midnight, x.5 is >> >> noon, etc., how is x.7 10:00 PM? Shouldn't 10:00 PM be something closer >> >> to x.916666674? >> >> >> >> I thought at first it was because I was scaling time, but the immediate >> >> window proved that wrong (immediately!). Any insight appreciated as >> >> always. >> > >> > Date/time values are internally stored in GMT time. >> >> I'm reading about GMT on Wikipedia now... How would one interpret the >> returned values with respect to GMT? > > Sorry, we should not say "GMT" anymore, but "UTC" instead. > > For example, in France, the time zone is "-1". It means that dates in France > are one hour earlier than in UK (which has a time zone of "0", i.e. the UTC is > used). > > As Gambas must internally store dates independently of the location, it uses > UTC. > > So, in France, Gambas stores dates one hour later, and does the contrary when > printing them. > > In other words, if you send "23/06/2011 10:00:00" from a Gambas program > running on a french computer to a Gambas program running on an english > computer, it will receive "23/06/2011 11:00:00". But, internally, it will be > the same date. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > so if i store a date in a db .... for exemple 10:00 and then if an english computer query the data ... what data it display ... the date at the english zone ? -- Fabien Bodard From gambas at ...1... Thu Jun 23 16:45:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 23 Jun 2011 16:45:04 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: References: <4E02A12C.7070608@...1887...> <201106231333.04535.gambas@...1...> Message-ID: <201106231645.04090.gambas@...1...> > > so if i store a date in a db .... for exemple 10:00 and then if an > english computer query the data ... what data it display ... the date > at the english zone ? No, because the database server is not Gambas. Assume that the date is always stored as text in a database. -- Beno?t Minisini From gambas.fr at ...626... Thu Jun 23 16:49:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 16:49:03 +0200 Subject: [Gambas-user] Using special method _unknown for object properties In-Reply-To: References: Message-ID: 2011/6/23 Gary D Walborn : > > ? To the group: > ? ? ?Here is my problem. ?I need to use the "_unknown" special function to > ? simulate object methods and properties at runtime. ?I coded an "_unknown" > ? method in a class called DITEM ?If ditem is an instance of DITEM and I refer > ? to ditem.A() where A is NOT a method in DITEM, everything works fine. ?My > ? "_unknown" method gets called and I can retrieve the arguments (if there are > ? any) and handle the reference just fine. ?I was expecting that I could also > ? use this for properties. ?In this case, I would expect to make a reference > ? to ditem.b (such as PRINT ditem.b) and my _unknown method would again be > ? called with the value of isProperty being true and I could process the > ? reference dynamically. ?Well, as I said, the first instance (the method > ? call) works just fine. ?The second case does not. ?When I refer to ditem.b, > ? my ?_unknown ?method NEVER gets called, so I can't process the illegal > ? reference. ?What I DO get is (function ?) printed on the console. ?Is this a > ? bug in Gambas, or am I doing it wrong? ?If the former, is it a bug in all > ? versions, or just some (I am running 2.19)? ?Does it work in Gambas3? ?I > ? really need to find a fix for this before I can proceed with a big port. > ? Thanks > ? gwalborn well it's not a bug ... simply gambas need property declaration... and when you use the _unknow... this property is not declared. I understand your need ... but gambas3... is on rail ... i don't know if Benoit ... I let him answer to this query :) > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From gambas.fr at ...626... Thu Jun 23 16:49:42 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 16:49:42 +0200 Subject: [Gambas-user] gb3: date/time reporting odd fractional value In-Reply-To: <201106231645.04090.gambas@...1...> References: <4E02A12C.7070608@...1887...> <201106231333.04535.gambas@...1...> <201106231645.04090.gambas@...1...> Message-ID: Le 23 juin 2011 16:45, Beno?t Minisini a ?crit : >> >> so if i store a date in a db .... for exemple 10:00 and then if an >> english computer query the data ... what data it display ... the date >> at the english zone ? > > No, because the database server is not Gambas. Assume that the date is always > stored as text in a database. dacodac thanks > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From tommyline at ...2525... Thu Jun 23 17:52:49 2011 From: tommyline at ...2525... (Tomek) Date: Thu, 23 Jun 2011 17:52:49 +0200 Subject: [Gambas-user] Problem with index order in debugging window. Message-ID: I've stopped my program to check the value of 3-dimension array variable ctlpts[256,256,3], and it seems that the index used to show the values is mixed - it's [3,256,256] (3rd value, 1st value, 2nd value) and it causes "out of bounds" error. Screenshot attached. My system: Linux Mint 11 64Bit. The same effect on Ubuntu Studio 10.10 64 Bit ---------------------------------------------------------------- Nie plac obcym, kup wlasny dom! Szukaj >> http://linkint.pl/f29c8 -------------- next part -------------- A non-text attachment was scrubbed... Name: screen1.png Type: image/png Size: 176164 bytes Desc: not available URL: From almanova at ...1228... Thu Jun 23 19:32:34 2011 From: almanova at ...1228... (Almanova Sistemi) Date: Thu, 23 Jun 2011 19:32:34 +0200 Subject: [Gambas-user] gambas3 and web services In-Reply-To: <4E004DF3.2010309@...1228...> References: <4E004DF3.2010309@...1228...> Message-ID: <4E0378B2.70402@...1228...> Hi Caveat, thank's for your example; I understand how to use soap with gambas and still got a new problem: How do I set up a ssl connection? In perl SOAP:: Lite is sufficient to write: $ data = $ xml-> XMLin (my $ client = SOAP:: Lite -> service ('https://www.server.com/?wsdl') -> proxy ('https://www.server.com') -> uri ('urn: soapurn') -> disponibilita(user, request_data, passwd)); "disponiblita2 is the method that I invoke. I tried: http.URL = "www.server.com:443" and I get the answer: Sending SOAP 1.1 headers: Content-Type: text / xml; charset = utf-8 Sending SOAP 1.1 headers: Content-Length: 900 Sending SOAP 1.1 header: SOAPAction: "" * About to connect () to ordiniweb.comifar.it port 443 (# 0) * Trying 89.221.130.24 ... * connected * Connected to www.server.com (xxx.xxx.xxx.xxx) port 443 (# 0) * Server auth using Digest with user'' > POST / HTTP/1.1 User-Agent: Gambas HTTP/1.0 Host: www.server.com:443 Accept: * / * Content-Type: text / xml; charset = utf-8 SOAPAction: "" Content-Length: 0 * Empty reply from server * Connection # 0 left intact to host www.server.com * Server returned nothing (no headers, no date) Result for SOAP 1.1 *** *** ERROR *** End *** SOAP 1.1 * Closing connection # 0 I do not know what to do. Best Regards, Massimo. > I think this should be possible. I've worked with Web Services from out > of java and c# and in its simplest form it's just a case of POSTing > parameters on a request. > > In java you have the advantage of several tools which can read the WSDL > for you and automatically generate client code with stubs for the > methods to call the Web Service(s). I'm guessing you don't want to get > quite that ambitious at this stage? > > I've done POSTing of parameters in Gambas (somewhere, I have to look for > the code!) > > Can you share the WSDL and/or any existing client code with us? > > Regards, > Caveat > > On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > > Hallo to everyone, > > > > I am Massimo and I try to write a client software (in gambas 3) that use > > a web services. > > In other word the software send data with saop protocol an receive data > > with the same protocol. > > > > The information about the availebe services are described in a WSDL file. > > > > Now, hor Can I do this with gambas? > > > > Best Regards, > > Massimo. > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at ...1107... > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: _1.wsdl Type: application/x-wsdl Size: 8148 bytes Desc: not available URL: From dag.jarle.johansen at ...626... Thu Jun 23 20:28:28 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 23 Jun 2011 15:28:28 -0300 Subject: [Gambas-user] Programming, age Message-ID: Hi to all great programmers. I wonder if there is an limit of understanding, an age limit. I can use G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and still am confused, I do not even understand the questions the most G3 users have. I wrote my first code in 1980, so I might be a dino among you. No DOS, no Windows, at that time, in 85 I got a job as softwaredeveloper in Austria (where I studied buildingeengnier) - on a system called System V, which may sound familiar to some of you. Language C, Bash and so on. I was allowed to do some classifed work for NATO, on a WANG 128. Good grief, the cold war is over, the next has started. I just want to know - what are you doing? Many regards, Dag From shordi at ...626... Thu Jun 23 20:54:02 2011 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 23 Jun 2011 20:54:02 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: I get my first job as software developer in 1986. In a big machine with it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms and languages. Today, still exceede, still confusing, allways learning... Good Luck. 2011/6/23 Dag-Jarle Johansen > Hi to all great programmers. > > I wonder if there is an limit of understanding, an age limit. I can use G3 > and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and > still > am confused, I do not even understand the questions the most G3 users have. > I wrote my first code in 1980, so I might be a dino among you. No DOS, no > Windows, at that time, in 85 I got a job as softwaredeveloper in Austria > (where I studied buildingeengnier) - on a system called System V, which may > sound familiar to some of you. Language C, Bash and so on. I was allowed to > do some classifed work for NATO, on a WANG 128. Good grief, the cold war is > over, the next has started. I just want to know - what are you doing? > Many regards, > Dag > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From peter.talken at ...1879... Thu Jun 23 21:34:11 2011 From: peter.talken at ...1879... (Peter Landgren) Date: Thu, 23 Jun 2011 21:34:11 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: <201106232134.11764.peter.talken@...1879...> My first program was written in 1964 in the language Algol Genius for computing filter coefficients. It was run om vacuum tube system, at least 20 m long. It had paper tape reader as input device. There were also magnetic tapes and a drum memory and a line printer. Now, being retired, I'm still confused sometimes and trying to learn. /Peter > I get my first job as software developer in 1986. In a big machine with > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms and > languages. > Today, still exceede, still confusing, allways learning... > > Good Luck. > > > 2011/6/23 Dag-Jarle Johansen > > > Hi to all great programmers. > > > > I wonder if there is an limit of understanding, an age limit. I can use > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, > > and still > > am confused, I do not even understand the questions the most G3 users > > have. I wrote my first code in 1980, so I might be a dino among you. No > > DOS, no Windows, at that time, in 85 I got a job as softwaredeveloper in > > Austria (where I studied buildingeengnier) - on a system called System > > V, which may sound familiar to some of you. Language C, Bash and so on. > > I was allowed to do some classifed work for NATO, on a WANG 128. Good > > grief, the cold war is over, the next has started. I just want to know - > > what are you doing? Many regards, > > Dag > > > > ------------------------------------------------------------------------- > > ----- Simplify data backup and recovery for your virtual environment with > > vRanger. > > Installation's a snap, and flexible recovery options mean your data is > > safe, > > secure and there when you need it. Data protection magic? > > Nope - It's vRanger. Get your free trial download today. > > http://p.sf.net/sfu/quest-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Simplify data backup and recovery for your virtual environment with > vRanger. Installation's a snap, and flexible recovery options mean your > data is safe, secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Jun 23 21:52:28 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 21:52:28 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: 2011/6/23 Dag-Jarle Johansen : > Hi to all great programmers. > > I wonder if there is an limit of understanding, an age limit. I can use G3 > and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and still > am confused, I do not even understand the questions the most G3 users have. > I wrote my first code in 1980, so I might be a dino among you. No DOS, no > Windows, at that time, in 85 I got a job as softwaredeveloper in Austria > (where I studied buildingeengnier) - on a system called System V, which may > sound familiar to some of you. Language C, Bash and so on. I was allowed to > do some classifed work for NATO, on a WANG 128. Good grief, the cold war is > over, the next has started. I just want to know - what are you doing? > Many regards, > Dag i just don't understand the goal of your query ... :/ still confused about that. -- Fabien Bodard From gambas.fr at ...626... Thu Jun 23 22:12:25 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 22:12:25 +0200 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: <1308670726.16402.14.camel@...2493...> References: <1308670726.16402.14.camel@...2493...> Message-ID: 2011/6/21 Demosthenes Koptsis : > The new version with web site dimensions is this one > > http://img28.mediafire.com/b0446d5e58da5d399646c537750afc8edee9edc6edfd5c9245c87cc93ea7f46b6g.jpg > the problem is : you donc preserve the shrimp proportion > -- > Regards, > Demosthenes Koptsis. > > > ---------- Message transf?r? ---------- > From:?Demosthenes Koptsis > To:?Gambas User List > Date:?Tue, 21 Jun 2011 18:21:35 +0300 > Subject:?Web page 1st image (new idea) > i saw the image from 1st page at site and i have some ideas to make it > better. > > i would like your opinion about that, as Benoit suggested. > > The concept is > 1) the windows to be on a 3d-panorama position instead flat style. > > 2) Behind will be a star-wars like text from code. > > 3) And in front of them the logo with opacity for some effect. > > The result is the next image > http://www.mediafire.com/imgbnc.php/70e13f6c21a1a88788f461a96476c1ea7e646e66ed55cef1533b15207be6b6fd6g.jpg > > > Benoit said about it: > >> Not bad! >> >> I need some place to put the "news" frame, and I suggest that the >> floor has no >> drop shadow, and/or looks like the old one. >> > > i will make a new image with size 480px ? 328px as this one on site. > > -- > Regards, > Demosthenes Koptsis. > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From dag.jarle.johansen at ...626... Thu Jun 23 22:16:31 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 23 Jun 2011 17:16:31 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: Thank you, still confusing, tambien and always learning, yes, What I have learned, there are more languages (human) out there than you can manage. I check about these: english, german, norwegian, swedisch, danish, a little french, a little more spanish, and not a bit of the asian languages. How good do you have to be to manage the main asian languages, and then tons of knowhow. Not even to speach from how you are living at the moment. Still I should be glad to have lived this way, anything else would have been boring. Saludos, Dag 2011/6/23 Jorge Carri?n > I get my first job as software developer in 1986. In a big machine with > it's > own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms and > languages. > Today, still exceede, still confusing, allways learning... > > Good Luck. > > > 2011/6/23 Dag-Jarle Johansen > > > Hi to all great programmers. > > > > I wonder if there is an limit of understanding, an age limit. I can use > G3 > > and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and > > still > > am confused, I do not even understand the questions the most G3 users > have. > > I wrote my first code in 1980, so I might be a dino among you. No DOS, no > > Windows, at that time, in 85 I got a job as softwaredeveloper in Austria > > (where I studied buildingeengnier) - on a system called System V, which > may > > sound familiar to some of you. Language C, Bash and so on. I was allowed > to > > do some classifed work for NATO, on a WANG 128. Good grief, the cold war > is > > over, the next has started. I just want to know - what are you doing? > > Many regards, > > Dag > > > > > ------------------------------------------------------------------------------ > > Simplify data backup and recovery for your virtual environment with > > vRanger. > > Installation's a snap, and flexible recovery options mean your data is > > safe, > > secure and there when you need it. Data protection magic? > > Nope - It's vRanger. Get your free trial download today. > > http://p.sf.net/sfu/quest-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Jun 23 22:27:11 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Jun 2011 22:27:11 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: 2011/6/23 Dag-Jarle Johansen : > Thank you, > still confusing, tambien > and always learning, yes, > What I have learned, there are more languages (human) out there than you can > manage. I check about these: english, german, norwegian, swedisch, danish, a > little french, a little more spanish, and not a bit of the asian languages. > How good do you have to be to manage the main asian languages, and then tons > of knowhow. Not even to speach from how you are living at the moment. > > Still I should be glad to have lived this way, anything else would have been > boring. lol ... it's not a job for us ... just a passion i'm winegrower with a quite big structure... and many people here are not only programmers. Laurent carlier for example is train driver. Benoit is half theater actor But a project like Gambas is made by tons of people in fact. Just giving a little part of there time. It's that : open source ! Free mind ! happy to meet you and i hope you have a good time with Gambas > > Saludos, > Dag > > 2011/6/23 Jorge Carri?n > >> I get my first job as software developer in 1986. In a big machine with >> it's >> own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms and >> languages. >> Today, still exceede, still confusing, allways learning... >> >> Good Luck. >> >> >> 2011/6/23 Dag-Jarle Johansen >> >> > Hi to all great programmers. >> > >> > I wonder if there is an limit of understanding, an age limit. I can use >> G3 >> > and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and >> > still >> > am confused, I do not even understand the questions the most G3 users >> have. >> > I wrote my first code in 1980, so I might be a dino among you. No DOS, no >> > Windows, at that time, in 85 I got a job as softwaredeveloper in Austria >> > (where I studied buildingeengnier) - on a system called System V, which >> may >> > sound familiar to some of you. Language C, Bash and so on. I was allowed >> to >> > do some classifed work for NATO, on a WANG 128. Good grief, the cold war >> is >> > over, the next has started. I just want to know - what are you doing? >> > Many regards, >> > Dag >> > >> > >> ------------------------------------------------------------------------------ >> > Simplify data backup and recovery for your virtual environment with >> > vRanger. >> > Installation's a snap, and flexible recovery options mean your data is >> > safe, >> > secure and there when you need it. Data protection magic? >> > Nope - It's vRanger. Get your free trial download today. >> > http://p.sf.net/sfu/quest-sfdev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with >> vRanger. >> Installation's a snap, and flexible recovery options mean your data is >> safe, >> secure and there when you need it. Data protection magic? >> Nope - It's vRanger. Get your free trial download today. >> http://p.sf.net/sfu/quest-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From sourceforge-raindog2 at ...94... Thu Jun 23 22:12:41 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 23 Jun 2011 16:12:41 -0400 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: <201106231612.41926.sourceforge-raindog2@...94...> On Thursday 23 June 2011 15:52, Fabien Bodard wrote: > i just don't understand the goal of your query ... :/ still confused > about that. He was asking if there were any old-timers around and what they're doing. I wrote my first code on a friend's dad's TRS-80 Model 1 in 1978, sold my first shareware program (on the C64) in 1985, and got my first programming gig doing mainframe DB2 and dBase on the PC in 1990. So, older than some, younger than some. I've definitely moved more toward web apps in the last decade, to the point where it's the vast majority of what I do for clients, but have doing more Java again lately thanks to Android, after not touching it for about 8 years. (Much better now that Eclipse is stable.) Rob From dag.jarle.johansen at ...626... Thu Jun 23 22:42:42 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 23 Jun 2011 17:42:42 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: <201106232134.11764.peter.talken@...1879...> References: <201106232134.11764.peter.talken@...1879...> Message-ID: Peter Landgren es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. German ist the most exact language on the world until now. Usuable words for common people 3.500, In constrast Britsh with less than 1.500 words, not to speak from American, they just know "fuck". The South-american languages - there are more, because it*s a different between Mexican spansish, Espanol (Spain) and a lot of the spanisch dialects in feks. Peru, Columbia and so on. I*m a lector of translations, nicht weil ich die Ausbildung habe, aber weil ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und Vermessung 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty goood. Juridical German has been more easy. And last but not leats: Look at FB Phrases: all my tranlations - 10000 Peter, ich glaube wie waren alle nicht faul Regards, Dag 2011/6/23 Peter Landgren > My first program was written in 1964 in the language Algol Genius for > computing filter coefficients. It > was run om vacuum tube system, at least 20 m long. It had paper tape reader > as input device. There > were also magnetic tapes and a drum memory and a line printer. > > Now, being retired, I'm still confused sometimes and trying to learn. > > /Peter > > > > I get my first job as software developer in 1986. In a big machine with > > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms > and > > languages. > > Today, still exceede, still confusing, allways learning... > > > > Good Luck. > > > > > > 2011/6/23 Dag-Jarle Johansen > > > > > Hi to all great programmers. > > > > > > I wonder if there is an limit of understanding, an age limit. I can use > > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, > > > and still > > > am confused, I do not even understand the questions the most G3 users > > > have. I wrote my first code in 1980, so I might be a dino among you. No > > > DOS, no Windows, at that time, in 85 I got a job as softwaredeveloper > in > > > Austria (where I studied buildingeengnier) - on a system called System > > > V, which may sound familiar to some of you. Language C, Bash and so on. > > > I was allowed to do some classifed work for NATO, on a WANG 128. Good > > > grief, the cold war is over, the next has started. I just want to know > - > > > what are you doing? Many regards, > > > Dag > > > > > > > ------------------------------------------------------------------------- > > > ----- Simplify data backup and recovery for your virtual environment > with > > > vRanger. > > > Installation's a snap, and flexible recovery options mean your data is > > > safe, > > > secure and there when you need it. Data protection magic? > > > Nope - It's vRanger. Get your free trial download today. > > > http://p.sf.net/sfu/quest-sfdev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > --------------------------------------------------------------------------- > > --- Simplify data backup and recovery for your virtual environment with > > vRanger. Installation's a snap, and flexible recovery options mean your > > data is safe, secure and there when you need it. Data protection magic? > > Nope - It's vRanger. Get your free trial download today. > > http://p.sf.net/sfu/quest-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is > safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 24 08:09:48 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jun 2011 08:09:48 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: 2011/6/23 Dag-Jarle Johansen : > Peter Landgren > > es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. German > ist the most exact language on the world until now. Usuable words for common > people 3.500, In constrast Britsh with less than 1.500 words, not to speak > from American, they just know "fuck". The South-american languages - there > are more, because it*s a different between Mexican spansish, Espanol (Spain) > and a lot of the spanisch dialects in feks. Peru, Columbia and so on. well, French is also quite exact ... too exact :/ > I*m a lector of translations, nicht weil ich die Ausbildung habe, aber weil > ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und Vermessung > 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty goood. > Juridical German has been more easy. And last but not leats: Look at FB > Phrases: all my tranlations - 10000 > > > Peter, ich glaube wie waren alle nicht faul > Regards, Dag > > 2011/6/23 Peter Landgren > >> My first program was written in 1964 in the language Algol Genius for >> computing filter coefficients. It >> was run om vacuum tube system, at least 20 m long. It had paper tape reader >> as input device. There >> were also magnetic tapes and a drum memory and a line printer. >> >> Now, being retired, I'm still confused sometimes and trying to learn. >> >> /Peter >> >> >> > I get my first job as software developer in 1986. In a big machine with >> > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms >> and >> > languages. >> > Today, still exceede, still confusing, allways learning... >> > >> > Good Luck. >> > >> > >> > 2011/6/23 Dag-Jarle Johansen >> > >> > > Hi to all great programmers. >> > > >> > > I wonder if there is an limit of understanding, an age limit. I can use >> > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, >> > > and still >> > > am confused, I do not even understand the questions the most G3 users >> > > have. I wrote my first code in 1980, so I might be a dino among you. No >> > > DOS, no Windows, at that time, in 85 I got a job as softwaredeveloper >> in >> > > Austria (where I studied buildingeengnier) - on a system called System >> > > V, which may sound familiar to some of you. Language C, Bash and so on. >> > > I was allowed to do some classifed work for NATO, on a WANG 128. Good >> > > grief, the cold war is over, the next has started. I just want to know >> - >> > > what are you doing? Many regards, >> > > Dag >> > > >> > > >> ------------------------------------------------------------------------- >> > > ----- Simplify data backup and recovery for your virtual environment >> with >> > > vRanger. >> > > Installation's a snap, and flexible recovery options mean your data is >> > > safe, >> > > secure and there when you need it. Data protection magic? >> > > Nope - It's vRanger. Get your free trial download today. >> > > http://p.sf.net/sfu/quest-sfdev2dev >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> --------------------------------------------------------------------------- >> > --- Simplify data backup and recovery for your virtual environment with >> > vRanger. Installation's a snap, and flexible recovery options mean your >> > data is safe, secure and there when you need it. Data protection magic? >> > Nope - It's vRanger. Get your free trial download today. >> > http://p.sf.net/sfu/quest-sfdev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with >> vRanger. >> Installation's a snap, and flexible recovery options mean your data is >> safe, >> secure and there when you need it. Data protection magic? >> Nope - It's vRanger. Get your free trial download today. >> http://p.sf.net/sfu/quest-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From eilert-sprachen at ...221... Fri Jun 24 08:35:47 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 24 Jun 2011 08:35:47 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: <4E043043.7050004@...221...> It's true, many projects of the last two decades wouldn't have existed without the wonderful idea of OpenSource. My first contact with the computer world was a ZX 81 for which I had saved my pocket money for half a year or so. I must have been about 15, 16 at that time. During this period, its price continued to fall and eventually we meat at some point (don't remember exactly, was it 285 or so Deutsch-Marks, about 150 Euros?). What a happy day! One kB of RAM! 8 Bit engine! I grabbed the old B/W TV from my parents and took everything with me into our... well, don't know the word for it in English... "stuga" in Swedish... anyway, for the summer holidays. Later I had an Amiga 2000, almost usable machine already :-) And when I joined my parents in our private language school, I persuaded my father to invest into four Commodore XT computers to make up a computer course for the students ("what on earth is that good for?"). Guess it was about 1985. But I've stuck to BASIC for all that time, it was the language which fits my needs best, and so is Gambas. Mainly I code things for our school, and Gambas has turned out to be the most comprehensive and reliable tool I ever had. Rolf Am 23.06.2011 22:42, schrieb Dag-Jarle Johansen: > Peter Landgren > > es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. German > ist the most exact language on the world until now. Usuable words for common > people 3.500, In constrast Britsh with less than 1.500 words, not to speak > from American, they just know "fuck". The South-american languages - there > are more, because it*s a different between Mexican spansish, Espanol (Spain) > and a lot of the spanisch dialects in feks. Peru, Columbia and so on. > > I*m a lector of translations, nicht weil ich die Ausbildung habe, aber weil > ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und Vermessung > 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty goood. > Juridical German has been more easy. And last but not leats: Look at FB > Phrases: all my tranlations - 10000 > > > Peter, ich glaube wie waren alle nicht faul > Regards, Dag > > 2011/6/23 Peter Landgren > >> My first program was written in 1964 in the language Algol Genius for >> computing filter coefficients. It >> was run om vacuum tube system, at least 20 m long. It had paper tape reader >> as input device. There >> were also magnetic tapes and a drum memory and a line printer. >> >> Now, being retired, I'm still confused sometimes and trying to learn. >> >> /Peter >> >> >>> I get my first job as software developer in 1986. In a big machine with >>> it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms >> and >>> languages. >>> Today, still exceede, still confusing, allways learning... >>> >>> Good Luck. >>> >>> >>> 2011/6/23 Dag-Jarle Johansen >>> >>>> Hi to all great programmers. >>>> >>>> I wonder if there is an limit of understanding, an age limit. I can use >>>> G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, >>>> and still >>>> am confused, I do not even understand the questions the most G3 users >>>> have. I wrote my first code in 1980, so I might be a dino among you. No >>>> DOS, no Windows, at that time, in 85 I got a job as softwaredeveloper >> in >>>> Austria (where I studied buildingeengnier) - on a system called System >>>> V, which may sound familiar to some of you. Language C, Bash and so on. >>>> I was allowed to do some classifed work for NATO, on a WANG 128. Good >>>> grief, the cold war is over, the next has started. I just want to know >> - >>>> what are you doing? Many regards, >>>> Dag >>>> >>>> >> ------------------------------------------------------------------------- >>>> ----- Simplify data backup and recovery for your virtual environment >> with >>>> vRanger. >>>> Installation's a snap, and flexible recovery options mean your data is >>>> safe, >>>> secure and there when you need it. Data protection magic? >>>> Nope - It's vRanger. Get your free trial download today. >>>> http://p.sf.net/sfu/quest-sfdev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> --------------------------------------------------------------------------- >>> --- Simplify data backup and recovery for your virtual environment with >>> vRanger. Installation's a snap, and flexible recovery options mean your >>> data is safe, secure and there when you need it. Data protection magic? >>> Nope - It's vRanger. Get your free trial download today. >>> http://p.sf.net/sfu/quest-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Simplify data backup and recovery for your virtual environment with >> vRanger. >> Installation's a snap, and flexible recovery options mean your data is >> safe, >> secure and there when you need it. Data protection magic? >> Nope - It's vRanger. Get your free trial download today. >> http://p.sf.net/sfu/quest-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Fri Jun 24 11:13:36 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 24 Jun 2011 11:13:36 +0200 Subject: [Gambas-user] Catching an Event from an Object in another Class Message-ID: <4E045540.9030902@...20...> hi everyone, i want to get the Editor_Highlight event of an Editor on a form in a separate class, too. i have in the following in that class: PRIVATE hEditor AS Editor PUBLIC SUB _new(hSubject AS Editor) hEditor = hSubject END PUBLIC SUB hEditor_Highlight() PRINT Highlight.Text END in the form i just give my Editor to it: Instance = NEW Class(Editor1) but it doesn't work. i also tried using an extra Observer but i think i didn't unterstand something very fundamental in event management. can anyone explain it to me? regards, tobi From gambas.fr at ...626... Fri Jun 24 11:18:49 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jun 2011 11:18:49 +0200 Subject: [Gambas-user] Catching an Event from an Object in another Class In-Reply-To: <4E045540.9030902@...20...> References: <4E045540.9030902@...20...> Message-ID: PUBLIC SUB _new(hSubject AS Editor) hEditor = hSubject object.attach(hSubject, me, "heditor") END 2011/6/24 tobias : > hi everyone, > > i want to get the Editor_Highlight event of an Editor on a form in a > separate class, too. i have in the following in that class: > > PRIVATE hEditor AS Editor > > PUBLIC SUB _new(hSubject AS Editor) > > ? hEditor = hSubject > > END > > PUBLIC SUB hEditor_Highlight() > > ? PRINT Highlight.Text > > END > > in the form i just give my Editor to it: > > Instance = NEW Class(Editor1) > > but it doesn't work. i also tried using an extra Observer but i think i > didn't unterstand something very fundamental in event management. > can anyone explain it to me? > > regards, > tobi > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From tobiasboe1 at ...20... Fri Jun 24 11:21:39 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 24 Jun 2011 11:21:39 +0200 Subject: [Gambas-user] Catching an Event from an Object in another Class In-Reply-To: References: <4E045540.9030902@...20...> Message-ID: <4E045723.3020008@...20...> hi, > PUBLIC SUB _new(hSubject AS Editor) > > hEditor = hSubject > object.attach(hSubject, me, "heditor") > > END > thanks a lot. i just read this, too, but didn't notice that it could be significant. anyway, thanks, tobi From gambas.fr at ...626... Fri Jun 24 12:27:17 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jun 2011 12:27:17 +0200 Subject: [Gambas-user] Catching an Event from an Object in another Class In-Reply-To: <4E045723.3020008@...20...> References: <4E045540.9030902@...20...> <4E045723.3020008@...20...> Message-ID: 2011/6/24 tobias : > hi, > >> PUBLIC SUB _new(hSubject AS Editor) >> >> ? hEditor = hSubject >> ? object.attach(hSubject, me, "heditor") >> >> END >> > > thanks a lot. i just read this, too, but didn't notice that it could be > significant. > anyway, thanks, > tobi > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > you can duplicate the events too with an observer. so you can catch the envents in you classe and in the form -- Fabien Bodard From member at ...2579... Fri Jun 24 14:29:19 2011 From: member at ...2579... (Wilson Pedro Tamega Junior via LinkedIn) Date: Fri, 24 Jun 2011 12:29:19 +0000 (UTC) Subject: [Gambas-user] =?utf-8?q?Rejoindre_mon_r=C3=A9seau_sur_LinkedIn?= Message-ID: <1245828606.4776516.1308918559086.JavaMail.app@...2609...> LinkedIn ------------ Wilson Pedro Tamega Junior souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Je vous invite ? faire partie de mon r?seau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Wilson Pedro Tamega Junior http://www.linkedin.com/e/hggat5-gpb4bbzd-n/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1459862963_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPcSej8Se3ARd359bT98qkhkbkVnbPgQczAPdzoOcPcLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Wilson Pedro Tamega Junior http://www.linkedin.com/e/hggat5-gpb4bbzd-n/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1459862963_3/3dvcPoVczoUejkQckALqnpPbOYWrSlI/svi/ ------------------------------------------ SAVEZ-VOUS que LinkedIn peut trouver une r?ponse aux questions les plus complexes?? Publiez ces questions dans la rubrique R?ponses de LinkedIn pour profiter de l'expertise des professionnels du monde entier?: http://www.linkedin.com/e/hggat5-gpb4bbzd-n/ask/inv-23/ -- (c) 2011, LinkedIn Corporation From dag.jarle.johansen at ...626... Fri Jun 24 15:35:40 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Fri, 24 Jun 2011 10:35:40 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: lol in fact I think every language is as exact as the writer is able to form his sentences. what I ment is - in german you can put things toghether in simple manner, spanish is more difficult, and in norwegian, or other scandinavian languages, you have to write a novel. but thanks I am sorry to say, my french has laid down for ages, I would not starvage for hunger in France, I suppose, but ask me nothing, por favor. happy day! 2011/6/24 Fabien Bodard > 2011/6/23 Dag-Jarle Johansen : > > Peter Landgren > > > > es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. > German > > ist the most exact language on the world until now. Usuable words for > common > > people 3.500, In constrast Britsh with less than 1.500 words, not to > speak > > from American, they just know "fuck". The South-american languages - > there > > are more, because it*s a different between Mexican spansish, Espanol > (Spain) > > and a lot of the spanisch dialects in feks. Peru, Columbia and so on. > > well, French is also quite exact ... too exact :/ > > > I*m a lector of translations, nicht weil ich die Ausbildung habe, aber > weil > > ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und Vermessung > > 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty > goood. > > Juridical German has been more easy. And last but not leats: Look at FB > > Phrases: all my tranlations - 10000 > > > > > > Peter, ich glaube wie waren alle nicht faul > > Regards, Dag > > > > 2011/6/23 Peter Landgren > > > >> My first program was written in 1964 in the language Algol Genius for > >> computing filter coefficients. It > >> was run om vacuum tube system, at least 20 m long. It had paper tape > reader > >> as input device. There > >> were also magnetic tapes and a drum memory and a line printer. > >> > >> Now, being retired, I'm still confused sometimes and trying to learn. > >> > >> /Peter > >> > >> > >> > I get my first job as software developer in 1986. In a big machine > with > >> > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms > >> and > >> > languages. > >> > Today, still exceede, still confusing, allways learning... > >> > > >> > Good Luck. > >> > > >> > > >> > 2011/6/23 Dag-Jarle Johansen > >> > > >> > > Hi to all great programmers. > >> > > > >> > > I wonder if there is an limit of understanding, an age limit. I can > use > >> > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so > on, > >> > > and still > >> > > am confused, I do not even understand the questions the most G3 > users > >> > > have. I wrote my first code in 1980, so I might be a dino among you. > No > >> > > DOS, no Windows, at that time, in 85 I got a job as > softwaredeveloper > >> in > >> > > Austria (where I studied buildingeengnier) - on a system called > System > >> > > V, which may sound familiar to some of you. Language C, Bash and so > on. > >> > > I was allowed to do some classifed work for NATO, on a WANG 128. > Good > >> > > grief, the cold war is over, the next has started. I just want to > know > >> - > >> > > what are you doing? Many regards, > >> > > Dag > >> > > > >> > > > >> > ------------------------------------------------------------------------- > >> > > ----- Simplify data backup and recovery for your virtual environment > >> with > >> > > vRanger. > >> > > Installation's a snap, and flexible recovery options mean your data > is > >> > > safe, > >> > > secure and there when you need it. Data protection magic? > >> > > Nope - It's vRanger. Get your free trial download today. > >> > > http://p.sf.net/sfu/quest-sfdev2dev > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > --------------------------------------------------------------------------- > >> > --- Simplify data backup and recovery for your virtual environment > with > >> > vRanger. Installation's a snap, and flexible recovery options mean > your > >> > data is safe, secure and there when you need it. Data protection > magic? > >> > Nope - It's vRanger. Get your free trial download today. > >> > http://p.sf.net/sfu/quest-sfdev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > ------------------------------------------------------------------------------ > >> Simplify data backup and recovery for your virtual environment with > >> vRanger. > >> Installation's a snap, and flexible recovery options mean your data is > >> safe, > >> secure and there when you need it. Data protection magic? > >> Nope - It's vRanger. Get your free trial download today. > >> http://p.sf.net/sfu/quest-sfdev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Simplify data backup and recovery for your virtual environment with > vRanger. > > Installation's a snap, and flexible recovery options mean your data is > safe, > > secure and there when you need it. Data protection magic? > > Nope - It's vRanger. Get your free trial download today. > > http://p.sf.net/sfu/quest-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From demosthenesk at ...626... Fri Jun 24 16:34:20 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Fri, 24 Jun 2011 17:34:20 +0300 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: References: <1308670726.16402.14.camel@...2493...> Message-ID: <1308926060.19800.0.camel@...2494...> Fixed! http://img27.mediafire.com/a4ce70f256e74e34c675f735e2fc20c1fd53c03150b7b9003eae0714ae734c3d6g.jpg is it ok now? On Thu, 2011-06-23 at 22:12 +0200, Fabien Bodard wrote: > 2011/6/21 Demosthenes Koptsis : > > The new version with web site dimensions is this one > > > > http://img28.mediafire.com/b0446d5e58da5d399646c537750afc8edee9edc6edfd5c9245c87cc93ea7f46b6g.jpg > > > > the problem is : you donc preserve the shrimp proportion > > > -- > > Regards, > > Demosthenes Koptsis. > > > > > > ---------- Message transf?r? ---------- > > From: Demosthenes Koptsis > > To: Gambas User List > > Date: Tue, 21 Jun 2011 18:21:35 +0300 > > Subject: Web page 1st image (new idea) > > i saw the image from 1st page at site and i have some ideas to make it > > better. > > > > i would like your opinion about that, as Benoit suggested. > > > > The concept is > > 1) the windows to be on a 3d-panorama position instead flat style. > > > > 2) Behind will be a star-wars like text from code. > > > > 3) And in front of them the logo with opacity for some effect. > > > > The result is the next image > > http://www.mediafire.com/imgbnc.php/70e13f6c21a1a88788f461a96476c1ea7e646e66ed55cef1533b15207be6b6fd6g.jpg > > > > > > Benoit said about it: > > > >> Not bad! > >> > >> I need some place to put the "news" frame, and I suggest that the > >> floor has no > >> drop shadow, and/or looks like the old one. > >> > > > > i will make a new image with size 480px ? 328px as this one on site. > > > > -- > > Regards, > > Demosthenes Koptsis. > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- Regards, Demosthenes From mohareve at ...626... Fri Jun 24 21:29:24 2011 From: mohareve at ...626... (M. Cs.) Date: Fri, 24 Jun 2011 21:29:24 +0200 Subject: [Gambas-user] gambas2 and gambas3 Natty Message-ID: Hello, because of a foolish error I cannot use both gambas2 and gambas3 on Natty: gambas3-script_2.99.1-1natty0_i386.deb (--install): trying to overwrite '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png', which is also in package gambas2-script 2.21.0-1ubuntu1 Because of a stupid icon! Is it possible to resolve it? From gambas.fr at ...626... Fri Jun 24 22:46:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Jun 2011 22:46:33 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: 2011/6/24 Dag-Jarle Johansen : > lol > > in fact I think every language is as exact as the writer is able to form his > sentences. what I ment is - in german you can put things toghether in simple > manner, spanish is more difficult, and in norwegian, or other scandinavian > languages, you have to write a novel. In fact in latin languages, there is multiple way to say the same thing. Depend of the context, the persons filling. Sure ... these languages are really difficult to learn ... French before all. But when you was born is these country ..; German laguages are quite difficult t learn... it's not natural for us :) > > but thanks > I am sorry to say, my french has laid down for ages, I would not starvage > for hunger in France, I suppose, but ask me nothing, por favor. > > happy day! > > 2011/6/24 Fabien Bodard > >> 2011/6/23 Dag-Jarle Johansen : >> > Peter Landgren >> > >> > es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. >> German >> > ist the most exact language on the world until now. Usuable words for >> common >> > people 3.500, In constrast Britsh with less than 1.500 words, not to >> speak >> > from American, they just know "fuck". The South-american languages - >> there >> > are more, because it*s a different between Mexican spansish, Espanol >> (Spain) >> > and a lot of the spanisch dialects in feks. Peru, Columbia and so on. >> >> well, French is also quite exact ? ... too exact :/ >> >> > I*m a lector of translations, nicht weil ich die Ausbildung habe, aber >> weil >> > ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und Vermessung >> > 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty >> goood. >> > Juridical German has been more easy. And last but not leats: Look at FB >> > Phrases: all my tranlations - 10000 >> > >> > >> > Peter, ich glaube wie waren alle nicht faul >> > Regards, Dag >> > >> > 2011/6/23 Peter Landgren >> > >> >> My first program was written in 1964 in the language Algol Genius for >> >> computing filter coefficients. It >> >> was run om vacuum tube system, at least 20 m long. It had paper tape >> reader >> >> as input device. There >> >> were also magnetic tapes and a drum memory and a line printer. >> >> >> >> Now, being retired, I'm still confused sometimes and trying to learn. >> >> >> >> /Peter >> >> >> >> >> >> > I get my first job as software developer in 1986. In a big machine >> with >> >> > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of acronyms >> >> and >> >> > languages. >> >> > Today, still exceede, still confusing, allways learning... >> >> > >> >> > Good Luck. >> >> > >> >> > >> >> > 2011/6/23 Dag-Jarle Johansen >> >> > >> >> > > Hi to all great programmers. >> >> > > >> >> > > I wonder if there is an limit of understanding, an age limit. I can >> use >> >> > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so >> on, >> >> > > and still >> >> > > am confused, I do not even understand the questions the most G3 >> users >> >> > > have. I wrote my first code in 1980, so I might be a dino among you. >> No >> >> > > DOS, no Windows, at that time, in 85 I got a job as >> softwaredeveloper >> >> in >> >> > > Austria (where I studied buildingeengnier) - on a system called >> System >> >> > > V, which may sound familiar to some of you. Language C, Bash and so >> on. >> >> > > I was allowed to do some classifed work for NATO, on a WANG 128. >> Good >> >> > > grief, the cold war is over, the next has started. I just want to >> know >> >> - >> >> > > what are you doing? Many regards, >> >> > > Dag >> >> > > >> >> > > >> >> >> ------------------------------------------------------------------------- >> >> > > ----- Simplify data backup and recovery for your virtual environment >> >> with >> >> > > vRanger. >> >> > > Installation's a snap, and flexible recovery options mean your data >> is >> >> > > safe, >> >> > > secure and there when you need it. Data protection magic? >> >> > > Nope - It's vRanger. Get your free trial download today. >> >> > > http://p.sf.net/sfu/quest-sfdev2dev >> >> > > _______________________________________________ >> >> > > Gambas-user mailing list >> >> > > Gambas-user at lists.sourceforge.net >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> > >> >> >> --------------------------------------------------------------------------- >> >> > --- Simplify data backup and recovery for your virtual environment >> with >> >> > vRanger. Installation's a snap, and flexible recovery options mean >> your >> >> > data is safe, secure and there when you need it. Data protection >> magic? >> >> > Nope - It's vRanger. Get your free trial download today. >> >> > http://p.sf.net/sfu/quest-sfdev2dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Simplify data backup and recovery for your virtual environment with >> >> vRanger. >> >> Installation's a snap, and flexible recovery options mean your data is >> >> safe, >> >> secure and there when you need it. Data protection magic? >> >> Nope - It's vRanger. Get your free trial download today. >> >> http://p.sf.net/sfu/quest-sfdev2dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Simplify data backup and recovery for your virtual environment with >> vRanger. >> > Installation's a snap, and flexible recovery options mean your data is >> safe, >> > secure and there when you need it. Data protection magic? >> > Nope - It's vRanger. Get your free trial download today. >> > http://p.sf.net/sfu/quest-sfdev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense.. >> http://p.sf.net/sfu/splunk-d2d-c1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sat Jun 25 00:34:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jun 2011 00:34:39 +0200 Subject: [Gambas-user] Problem with index order in debugging window. In-Reply-To: References: Message-ID: <201106250034.39700.gambas@...1...> > I've stopped my program to check the value of 3-dimension array variable > ctlpts[256,256,3], and it seems that the index used to show the values is > mixed - it's [3,256,256] (3rd value, 1st value, 2nd value) and it causes > "out of bounds" error. Screenshot attached. > > My system: Linux Mint 11 64Bit. The same effect on Ubuntu Studio 10.10 64 > Bit > Fixed in revision #3899. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 25 00:42:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jun 2011 00:42:41 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E027904.1030400@...1887...> References: <4E027904.1030400@...1887...> Message-ID: <201106250042.41562.gambas@...1...> > I'm using this to print a formatted date: > > Draw.Text("Date and Time: " & CDate(Server.DateCurrent) & " (" & > Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM") & ")", 32, ystart - 1) > > It seems that Format$ actually changes the value of Server.DateCurrent, > making it AM when it should be PM. Format$ is actually forcing the hour > to be between 1 and 12. Shouldn't Format$ simply return a value and not > overwrite the expression? Format$() does not change its arguments, as any other functions in Gambas. When AM/PM is specified, the hour is displayed between 1 and 12. If the real hour is greater or equal than 12:00, then PM is printed. Otherwise AM is printer. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 25 00:52:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jun 2011 00:52:53 +0200 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: <1308926060.19800.0.camel@...2494...> References: <1308670726.16402.14.camel@...2493...> <1308926060.19800.0.camel@...2494...> Message-ID: <201106250052.53601.gambas@...1...> > Fixed! > > http://img27.mediafire.com/a4ce70f256e74e34c675f735e2fc20c1fd53c03150b7b900 > 3eae0714ae734c3d6g.jpg > > is it ok now? > I need the background separated from the three windows and the mascot, as in the current website. The background should be a "jpeg", whereas the rest should be a "png". Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 25 01:23:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jun 2011 01:23:13 +0200 Subject: [Gambas-user] Bug with border property. In-Reply-To: References: Message-ID: <201106250123.13424.gambas@...1...> > Hi! > Borderless windows doesn't work (borders are showing) when combined to > 'Mask = True'. > Problem is only with Qt4, with GTK+ everything is OK. > > Gambas 3 rev 3888 @ Ubuntu 11.04 64bit > > Jussi I habe no problem on KDE. Which window manager do you use? -- Beno?t Minisini From ihaywood at ...1979... Sat Jun 25 01:38:41 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 25 Jun 2011 09:38:41 +1000 Subject: [Gambas-user] gambas2 and gambas3 Natty In-Reply-To: References: Message-ID: On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. wrote: > Hello, > because of a foolish error I cannot use both gambas2 and gambas3 on Natty: > > gambas3-script_2.99.1-1natty0_i386.deb (--install): > ?trying to overwrite > '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png', > which is also in package gambas2-script 2.21.0-1ubuntu1 > > Because of a stupid icon! > Is it possible to resolve it? glad to know someone uses these packages.:-) The immediate solution is to use dpkg --force-overwrite overwriting is OK it just means your icon will be the new gambas3 icon even for gambas2 files. longer term I'm not sure. The gambas3 icon file can't go anywhere else or have any other name as it is a debian standard. I'll research the options. Ian From zachsmith022 at ...626... Sat Jun 25 02:05:16 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Fri, 24 Jun 2011 19:05:16 -0500 Subject: [Gambas-user] Problem with index order in debugging window. In-Reply-To: <201106250034.39700.gambas@...1...> References: <201106250034.39700.gambas@...1...> Message-ID: > > Fixed in revision #3899. > > Regards, > This fixed issue 28 for gambas 3. From demosthenesk at ...626... Sat Jun 25 06:49:06 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 25 Jun 2011 07:49:06 +0300 Subject: [Gambas-user] Constructor and destructor of a class Message-ID: <1308977346.3989.3.camel@...2493...> Hi all, i saw that the order of calling special methods of a class is: _init _new _free _exit the _new method is the constructor and _free the destructor of the class? -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jun 25 06:58:43 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 25 Jun 2011 07:58:43 +0300 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: <201106250052.53601.gambas@...1...> References: <1308670726.16402.14.camel@...2493...> <1308926060.19800.0.camel@...2494...> <201106250052.53601.gambas@...1...> Message-ID: <1308977923.3989.7.camel@...2493...> ok, the image is now - without background - and transparent - and a png file. http://www.mediafire.com/imgbnc.php/ef7579d9905d5de16b817150338cd5f647ef7addbf5da9ca62dba4781b20a7bb6g.jpg you will use the same background as it is now at page? or you need another one? On Sat, 2011-06-25 at 00:52 +0200, Beno?t Minisini wrote: > > Fixed! > > > > http://img27.mediafire.com/a4ce70f256e74e34c675f735e2fc20c1fd53c03150b7b900 > > 3eae0714ae734c3d6g.jpg > > > > is it ok now? > > > > I need the background separated from the three windows and the mascot, as in > the current website. The background should be a "jpeg", whereas the rest > should be a "png". > > Regards, > -- Regards, Demosthenes Koptsis. From mohareve at ...626... Sat Jun 25 10:39:17 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 10:39:17 +0200 Subject: [Gambas-user] gambas2 and gambas3 Natty In-Reply-To: References: Message-ID: Yes, I've installed these packages, and had to remove gambas2, although many of my apps are written in G2. G3 just looks more complicated, so I'll need some time for the change. Thanks for your work! Csaba 2011/6/25, Ian Haywood : > On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. wrote: >> Hello, >> because of a foolish error I cannot use both gambas2 and gambas3 on Natty: >> >> gambas3-script_2.99.1-1natty0_i386.deb (--install): >> ?trying to overwrite >> '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png', >> which is also in package gambas2-script 2.21.0-1ubuntu1 >> >> Because of a stupid icon! >> Is it possible to resolve it? > glad to know someone uses these packages.:-) > > The immediate solution is to use dpkg --force-overwrite overwriting > is OK it just means > your icon will be the new gambas3 icon even for gambas2 files. > > longer term I'm not sure. The gambas3 icon file can't go anywhere else > or have any other name > as it is a debian standard. > I'll research the options. > > Ian > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Sat Jun 25 10:54:35 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 25 Jun 2011 18:54:35 +1000 Subject: [Gambas-user] gambas2 and gambas3 Natty In-Reply-To: References: Message-ID: On Sat, Jun 25, 2011 at 6:39 PM, M. Cs. wrote: > Yes, I've installed these packages, and had to remove gambas2, > although many of my apps are written in G2. G3 just looks more > complicated, so I'll need some time for the change. > Thanks for your work! you should be able to install G2 and G3 together using the --force-overwrite option, do you try this? Ian From mohareve at ...626... Sat Jun 25 11:01:04 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 11:01:04 +0200 Subject: [Gambas-user] I need simple example Message-ID: Hi, I know how to print text in G2, but I'd need a simple transcription for the following G2 code to G3: PUBLIC SUB ExecutePrint(mytext) IF Printer.Setup() THEN RETURN Printer.Resolution = 300 Draw.Begin(Printer) Draw.Font.Size = 12 Draw.Text(mytext, 564, 457) Draw.End END The examples prepared for the GUI are much too complicated (were also in G2). "Simplicity!" (Hannibal Lecter) Thanks! From mohareve at ...626... Sat Jun 25 11:05:59 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 11:05:59 +0200 Subject: [Gambas-user] gambas2 and gambas3 Natty In-Reply-To: References: Message-ID: Yes. I've just succeeded, Thanks! 2011/6/25, Ian Haywood : > On Sat, Jun 25, 2011 at 6:39 PM, M. Cs. wrote: >> Yes, I've installed these packages, and had to remove gambas2, >> although many of my apps are written in G2. G3 just looks more >> complicated, so I'll need some time for the change. >> Thanks for your work! > you should be able to install G2 and G3 together using the > --force-overwrite option, do you try this? > > Ian > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jun 25 11:08:45 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 25 Jun 2011 11:08:45 +0200 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: <1308977923.3989.7.camel@...2493...> References: <1308670726.16402.14.camel@...2493...> <201106250052.53601.gambas@...1...> <1308977923.3989.7.camel@...2493...> Message-ID: <201106251108.45927.gambas@...1...> > ok, the image is now > - without background > - and transparent > - and a png file. > > http://www.mediafire.com/imgbnc.php/ef7579d9905d5de16b817150338cd5f647ef7ad > dbf5da9ca62dba4781b20a7bb6g.jpg > > you will use the same background as it is now at page? > > or you need another one? > OK, but send me the png, not the result! :-) -- Beno?t Minisini From gambas.fr at ...626... Sat Jun 25 11:19:40 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 25 Jun 2011 11:19:40 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: Dim hPrinter as Printer Public sub _New() hPrinter = new Printer(me) as "Printer" if not Printer.configure() then 'you must to define the numbers of pages before printer.count = 1 'Launch the printing printer.print endif end Public sub Printer_Draw() Paint.Font.Size=12 Paint.Text(myText,564,457) 'fill the vectorialpath Paint.Fill end 2011/6/25 M. Cs. : > Hi, > I know how to print text in G2, but I'd need a simple transcription > for the following G2 code to G3: > > PUBLIC SUB ExecutePrint(mytext) > > IF Printer.Setup() THEN RETURN > Printer.Resolution = 300 > Draw.Begin(Printer) > Draw.Font.Size = 12 > Draw.Text(mytext, 564, 457) > Draw.End > > END > > The examples prepared for the GUI are much too complicated (were also in G2). > "Simplicity!" (Hannibal Lecter) > > Thanks! > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From mohareve at ...626... Sat Jun 25 11:22:59 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 11:22:59 +0200 Subject: [Gambas-user] Array of PictureBoxes Message-ID: I would like to have ability to create an array of PictureBoxes or Labels, so that I could add and remove them dinamically using some id or name. Something like path nodes in Gimp. Is it possible in Gambas? From mohareve at ...626... Sat Jun 25 11:23:52 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 11:23:52 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: Thanks! Csaba 2011/6/25, Fabien Bodard : > Dim hPrinter as Printer > > > Public sub _New() > > hPrinter = new Printer(me) as "Printer" > > if not Printer.configure() then > 'you must to define the numbers of pages before > printer.count = 1 > 'Launch the printing > printer.print > endif > > end > > > Public sub Printer_Draw() > > Paint.Font.Size=12 > Paint.Text(myText,564,457) > 'fill the vectorialpath > Paint.Fill > > end > > > > > 2011/6/25 M. Cs. : >> Hi, >> I know how to print text in G2, but I'd need a simple transcription >> for the following G2 code to G3: >> >> PUBLIC SUB ExecutePrint(mytext) >> >> IF Printer.Setup() THEN RETURN >> Printer.Resolution = 300 >> Draw.Begin(Printer) >> Draw.Font.Size = 12 >> Draw.Text(mytext, 564, 457) >> Draw.End >> >> END >> >> The examples prepared for the GUI are much too complicated (were also in >> G2). >> "Simplicity!" (Hannibal Lecter) >> >> Thanks! >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense.. >> http://p.sf.net/sfu/splunk-d2d-c1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sat Jun 25 12:42:22 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 25 Jun 2011 20:12:22 +0930 Subject: [Gambas-user] Constructor and destructor of a class In-Reply-To: <1308977346.3989.3.camel@...2493...> References: <1308977346.3989.3.camel@...2493...> Message-ID: <4E05BB8E.4050805@...2308...> On 25/06/11 14:19, Demosthenes Koptsis wrote: > Hi all, > > i saw that the order of calling special methods of a class is: > > _init > _new > _free > _exit > > the _new method is the constructor and _free the destructor of the > class? > > > Yes, but it would be better to say _new is a method called when an instance of a class (i.e an object) is created _free is a method called when an instance of a class is about to be removed. Similarly, _init is a method called when the class has just been loaded _free is a method called just before a class is ??? unloaded ??? Not sure, have never found a use for one. _init and _free are static methods, they act on the class and can not affect any dynamic features that are associated with an instance of the class. _new and _free act on the dynamic features of a class instance. The _new and _free methods are invoked in seniority order, in other words if class C inherits class B inherits Class A then when an object of type C is created, the _new methods are invoked in the following order: A._new, B._new, C._new. This is very important. Also, the way that the _new methods "consume" parameters is extremely important. There is information on this in the help files. hth bruce From demosthenesk at ...626... Sat Jun 25 13:54:08 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 25 Jun 2011 14:54:08 +0300 Subject: [Gambas-user] [Fwd: Web page 1st image (new idea)] In-Reply-To: <201106251108.45927.gambas@...1...> References: <1308670726.16402.14.camel@...2493...> <201106250052.53601.gambas@...1...> <1308977923.3989.7.camel@...2493...> <201106251108.45927.gambas@...1...> Message-ID: <1309002848.4411.5.camel@...2493...> ok i sent to gambas at ...1... the attachment, cause it is to large for list. The list can have access to all work from mediafire shared folder http://www.mediafire.com/?cl21i8wqobmpg the final work is - 1stpage (4).png - 1stpage (4).xcf or the package - Gambas3 1st page.tar.bz2 :) On Sat, 2011-06-25 at 11:08 +0200, Beno?t Minisini wrote: > > ok, the image is now > > - without background > > - and transparent > > - and a png file. > > > > http://www.mediafire.com/imgbnc.php/ef7579d9905d5de16b817150338cd5f647ef7ad > > dbf5da9ca62dba4781b20a7bb6g.jpg > > > > you will use the same background as it is now at page? > > > > or you need another one? > > > > OK, but send me the png, not the result! :-) > -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jun 25 14:11:52 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 25 Jun 2011 15:11:52 +0300 Subject: [Gambas-user] Class name bug. In-Reply-To: References: <1308557772.8470.2.camel@...2493...> Message-ID: <1309003912.4817.5.camel@...2493...> some more examples i have classes cA cB cC cB inherits cA cC inherits cB 1) With 2 characters as class names the file browser did not show correct the class tree. 2) After INHERITS instruction the class name is capitalized 3) in Main module i get Dim hObject As Cc hObject = New Cc as autocorect, but the name of third class is cC and not Cc. On Mon, 2011-06-20 at 22:55 +0300, Jussi Lahtinen wrote: > No, I can confirm this is bug. > Autocompletion list do have both, but it forces to use upper case version. > If you select lower case version, it will be changed automatically to upper > case version. > > Gambas 3 rev 3888 @ Ubuntu 11.04 > > Jussi > > > > On Mon, Jun 20, 2011 at 22:47, Fabien Bodard wrote: > > > 2011/6/20 Demosthenes Koptsis : > > > i think i found a small bug. > > > > > > i created a class cMachine and when i write code IDE auto-correct the > > > name to CMachine instead cMachine. > > > > > > Private hCompressor As CMachine > > > > > > Public Sub btnCreateObject_Click() > > > > > > hCompressor = New CMachine > > > > > > End > > > > > > > > > > > > its not a bug ... if you have declared one time cMachine ... the ide > > remember the symbol.. look in the autocompletion list you will have > > the both name > > > > > > > > > > > > -- > > > Regards, > > > Demosthenes Koptsis. > > > > > > > > > > > ------------------------------------------------------------------------------ > > > EditLive Enterprise is the world's most technically advanced content > > > authoring tool. Experience the power of Track Changes, Inline Image > > > Editing and ensure content is compliant with Accessibility Checking. > > > http://p.sf.net/sfu/ephox-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > Fabien Bodard > > > > > > ------------------------------------------------------------------------------ > > EditLive Enterprise is the world's most technically advanced content > > authoring tool. Experience the power of Track Changes, Inline Image > > Editing and ensure content is compliant with Accessibility Checking. > > http://p.sf.net/sfu/ephox-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes Koptsis. From demosthenesk at ...626... Sat Jun 25 14:26:27 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sat, 25 Jun 2011 15:26:27 +0300 Subject: [Gambas-user] Circular Inheritance Message-ID: <1309004787.4817.10.camel@...2493...> In attached project there is a circular inheritance between cClassB and cClassC If i try to edit cClassB file in line 3 which INHERITS cClassC the IDE is stack and i have to kill the IDE with Xkill. -- Regards, Demosthenes Koptsis. -------------- next part -------------- A non-text attachment was scrubbed... Name: Project85 (copy).tar.bz2 Type: application/x-bzip-compressed-tar Size: 5993 bytes Desc: not available URL: From nando_f at ...951... Sat Jun 25 15:14:58 2011 From: nando_f at ...951... (nando) Date: Sat, 25 Jun 2011 09:14:58 -0400 Subject: [Gambas-user] Programming, age In-Reply-To: References: Message-ID: <20110625131055.M75179@...951...> There is not a limit! I am in late 40's and started programming in 1975. I've written from 8080a assembly to anything now. Send me any questions and I'll answer. ---------- Original Message ----------- From: Dag-Jarle Johansen To: Gambas-user at lists.sourceforge.net Sent: Thu, 23 Jun 2011 15:28:28 -0300 Subject: [Gambas-user] Programming, age > Hi to all great programmers. > > I wonder if there is an limit of understanding, an age limit. I can use G3 > and get my results. I still use PHP, JS, FB Dev(JS) CSS and so on, and still > am confused, I do not even understand the questions the most G3 users have. > I wrote my first code in 1980, so I might be a dino among you. No DOS, no > Windows, at that time, in 85 I got a job as softwaredeveloper in Austria > (where I studied buildingeengnier) - on a system called System V, which may > sound familiar to some of you. Language C, Bash and so on. I was allowed to > do some classifed work for NATO, on a WANG 128. Good grief, the cold war is > over, the next has started. I just want to know - what are you doing? > Many regards, > Dag > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mohareve at ...626... Sat Jun 25 20:01:15 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 20:01:15 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: Well, I tried the example you gave me, but it is full of errors! I've modified like this: PUBLIC hPrinter as Printer Public sub _New() hPrinter = new Printer if not hPrinter.configure() then 'you must to define the numbers of pages before hPrinter.count = 1 'Launch the printing hPrinter.Print endif end Public sub hPrinter_Draw() Paint.Font.Size=12 Paint.Text(myText,564,457) 'fill the vectorialpath Paint.Fill end But it prints empty pages only! Any correction? 2011/6/25, M. Cs. : > Thanks! > > Csaba > > 2011/6/25, Fabien Bodard : >> Dim hPrinter as Printer >> >> >> Public sub _New() >> >> hPrinter = new Printer(me) as "Printer" >> >> if not Printer.configure() then >> 'you must to define the numbers of pages before >> printer.count = 1 >> 'Launch the printing >> printer.print >> endif >> >> end >> >> >> Public sub Printer_Draw() >> >> Paint.Font.Size=12 >> Paint.Text(myText,564,457) >> 'fill the vectorialpath >> Paint.Fill >> >> end >> >> >> >> >> 2011/6/25 M. Cs. : >>> Hi, >>> I know how to print text in G2, but I'd need a simple transcription >>> for the following G2 code to G3: >>> >>> PUBLIC SUB ExecutePrint(mytext) >>> >>> IF Printer.Setup() THEN RETURN >>> Printer.Resolution = 300 >>> Draw.Begin(Printer) >>> Draw.Font.Size = 12 >>> Draw.Text(mytext, 564, 457) >>> Draw.End >>> >>> END >>> >>> The examples prepared for the GUI are much too complicated (were also in >>> G2). >>> "Simplicity!" (Hannibal Lecter) >>> >>> Thanks! >>> >>> ------------------------------------------------------------------------------ >>> All the data continuously generated in your IT infrastructure contains a >>> definitive record of customers, application performance, security >>> threats, fraudulent activity and more. Splunk takes this data and makes >>> sense of it. Business sense. IT sense. Common sense.. >>> http://p.sf.net/sfu/splunk-d2d-c1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense.. >> http://p.sf.net/sfu/splunk-d2d-c1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From mohareve at ...626... Sat Jun 25 20:19:41 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 20:19:41 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: It won't work... In your original script At line hPrinter = new Printer(me) as "Printer" it raises error too many parameters ...why should people change a synthax wich worked in G2... 2011/6/25, M. Cs. : > Well, I tried the example you gave me, but it is full of errors! > > I've modified like this: > > PUBLIC hPrinter as Printer > > > Public sub _New() > > hPrinter = new Printer > > if not hPrinter.configure() then > 'you must to define the numbers of pages before > hPrinter.count = 1 > 'Launch the printing > hPrinter.Print > endif > > end > > > Public sub hPrinter_Draw() > > Paint.Font.Size=12 > Paint.Text(myText,564,457) > 'fill the vectorialpath > Paint.Fill > > end > > But it prints empty pages only! > Any correction? > > 2011/6/25, M. Cs. : >> Thanks! >> >> Csaba >> >> 2011/6/25, Fabien Bodard : >>> Dim hPrinter as Printer >>> >>> >>> Public sub _New() >>> >>> hPrinter = new Printer(me) as "Printer" >>> >>> if not Printer.configure() then >>> 'you must to define the numbers of pages before >>> printer.count = 1 >>> 'Launch the printing >>> printer.print >>> endif >>> >>> end >>> >>> >>> Public sub Printer_Draw() >>> >>> Paint.Font.Size=12 >>> Paint.Text(myText,564,457) >>> 'fill the vectorialpath >>> Paint.Fill >>> >>> end >>> >>> >>> >>> >>> 2011/6/25 M. Cs. : >>>> Hi, >>>> I know how to print text in G2, but I'd need a simple transcription >>>> for the following G2 code to G3: >>>> >>>> PUBLIC SUB ExecutePrint(mytext) >>>> >>>> IF Printer.Setup() THEN RETURN >>>> Printer.Resolution = 300 >>>> Draw.Begin(Printer) >>>> Draw.Font.Size = 12 >>>> Draw.Text(mytext, 564, 457) >>>> Draw.End >>>> >>>> END >>>> >>>> The examples prepared for the GUI are much too complicated (were also >>>> in >>>> G2). >>>> "Simplicity!" (Hannibal Lecter) >>>> >>>> Thanks! >>>> >>>> ------------------------------------------------------------------------------ >>>> All the data continuously generated in your IT infrastructure contains >>>> a >>>> definitive record of customers, application performance, security >>>> threats, fraudulent activity and more. Splunk takes this data and makes >>>> sense of it. Business sense. IT sense. Common sense.. >>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> All the data continuously generated in your IT infrastructure contains a >>> definitive record of customers, application performance, security >>> threats, fraudulent activity and more. Splunk takes this data and makes >>> sense of it. Business sense. IT sense. Common sense.. >>> http://p.sf.net/sfu/splunk-d2d-c1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From mohareve at ...626... Sat Jun 25 20:48:51 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 20:48:51 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: If Not Printer.Configure() Then Another error Printer.Configure not static 2011/6/25, M. Cs. : > It won't work... > In your original script > At line hPrinter = new Printer(me) as "Printer" it raises error too > many parameters > > > ...why should people change a synthax wich worked in G2... > > 2011/6/25, M. Cs. : >> Well, I tried the example you gave me, but it is full of errors! >> >> I've modified like this: >> >> PUBLIC hPrinter as Printer >> >> >> Public sub _New() >> >> hPrinter = new Printer >> >> if not hPrinter.configure() then >> 'you must to define the numbers of pages before >> hPrinter.count = 1 >> 'Launch the printing >> hPrinter.Print >> endif >> >> end >> >> >> Public sub hPrinter_Draw() >> >> Paint.Font.Size=12 >> Paint.Text(myText,564,457) >> 'fill the vectorialpath >> Paint.Fill >> >> end >> >> But it prints empty pages only! >> Any correction? >> >> 2011/6/25, M. Cs. : >>> Thanks! >>> >>> Csaba >>> >>> 2011/6/25, Fabien Bodard : >>>> Dim hPrinter as Printer >>>> >>>> >>>> Public sub _New() >>>> >>>> hPrinter = new Printer(me) as "Printer" >>>> >>>> if not Printer.configure() then >>>> 'you must to define the numbers of pages before >>>> printer.count = 1 >>>> 'Launch the printing >>>> printer.print >>>> endif >>>> >>>> end >>>> >>>> >>>> Public sub Printer_Draw() >>>> >>>> Paint.Font.Size=12 >>>> Paint.Text(myText,564,457) >>>> 'fill the vectorialpath >>>> Paint.Fill >>>> >>>> end >>>> >>>> >>>> >>>> >>>> 2011/6/25 M. Cs. : >>>>> Hi, >>>>> I know how to print text in G2, but I'd need a simple transcription >>>>> for the following G2 code to G3: >>>>> >>>>> PUBLIC SUB ExecutePrint(mytext) >>>>> >>>>> IF Printer.Setup() THEN RETURN >>>>> Printer.Resolution = 300 >>>>> Draw.Begin(Printer) >>>>> Draw.Font.Size = 12 >>>>> Draw.Text(mytext, 564, 457) >>>>> Draw.End >>>>> >>>>> END >>>>> >>>>> The examples prepared for the GUI are much too complicated (were also >>>>> in >>>>> G2). >>>>> "Simplicity!" (Hannibal Lecter) >>>>> >>>>> Thanks! >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All the data continuously generated in your IT infrastructure contains >>>>> a >>>>> definitive record of customers, application performance, security >>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>> makes >>>>> sense of it. Business sense. IT sense. Common sense.. >>>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> ------------------------------------------------------------------------------ >>>> All the data continuously generated in your IT infrastructure contains >>>> a >>>> definitive record of customers, application performance, security >>>> threats, fraudulent activity and more. Splunk takes this data and makes >>>> sense of it. Business sense. IT sense. Common sense.. >>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> > From mohareve at ...626... Sat Jun 25 20:52:08 2011 From: mohareve at ...626... (M. Cs.) Date: Sat, 25 Jun 2011 20:52:08 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: Public Sub _new() Dim hPrinter As Printer hPrinter = New Printer If Not hPrinter.Configure() Then 'you must to define the numbers of pages before hPrinter.Count = 1 'Launch the printing hPrinter.Print Endif End Public Sub Form_Open() End Public Sub hPrinter_Draw() Paint.Font.Size = 12 Paint.Text("Nothing", 564, 457) 'fill the vectorialpath Paint.Fill End It prints empty pages only!!! 2011/6/25, M. Cs. : > If Not Printer.Configure() Then > > Another error Printer.Configure not static > > 2011/6/25, M. Cs. : >> It won't work... >> In your original script >> At line hPrinter = new Printer(me) as "Printer" it raises error too >> many parameters >> >> >> ...why should people change a synthax wich worked in G2... >> >> 2011/6/25, M. Cs. : >>> Well, I tried the example you gave me, but it is full of errors! >>> >>> I've modified like this: >>> >>> PUBLIC hPrinter as Printer >>> >>> >>> Public sub _New() >>> >>> hPrinter = new Printer >>> >>> if not hPrinter.configure() then >>> 'you must to define the numbers of pages before >>> hPrinter.count = 1 >>> 'Launch the printing >>> hPrinter.Print >>> endif >>> >>> end >>> >>> >>> Public sub hPrinter_Draw() >>> >>> Paint.Font.Size=12 >>> Paint.Text(myText,564,457) >>> 'fill the vectorialpath >>> Paint.Fill >>> >>> end >>> >>> But it prints empty pages only! >>> Any correction? >>> >>> 2011/6/25, M. Cs. : >>>> Thanks! >>>> >>>> Csaba >>>> >>>> 2011/6/25, Fabien Bodard : >>>>> Dim hPrinter as Printer >>>>> >>>>> >>>>> Public sub _New() >>>>> >>>>> hPrinter = new Printer(me) as "Printer" >>>>> >>>>> if not Printer.configure() then >>>>> 'you must to define the numbers of pages before >>>>> printer.count = 1 >>>>> 'Launch the printing >>>>> printer.print >>>>> endif >>>>> >>>>> end >>>>> >>>>> >>>>> Public sub Printer_Draw() >>>>> >>>>> Paint.Font.Size=12 >>>>> Paint.Text(myText,564,457) >>>>> 'fill the vectorialpath >>>>> Paint.Fill >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> >>>>> 2011/6/25 M. Cs. : >>>>>> Hi, >>>>>> I know how to print text in G2, but I'd need a simple transcription >>>>>> for the following G2 code to G3: >>>>>> >>>>>> PUBLIC SUB ExecutePrint(mytext) >>>>>> >>>>>> IF Printer.Setup() THEN RETURN >>>>>> Printer.Resolution = 300 >>>>>> Draw.Begin(Printer) >>>>>> Draw.Font.Size = 12 >>>>>> Draw.Text(mytext, 564, 457) >>>>>> Draw.End >>>>>> >>>>>> END >>>>>> >>>>>> The examples prepared for the GUI are much too complicated (were also >>>>>> in >>>>>> G2). >>>>>> "Simplicity!" (Hannibal Lecter) >>>>>> >>>>>> Thanks! >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All the data continuously generated in your IT infrastructure >>>>>> contains >>>>>> a >>>>>> definitive record of customers, application performance, security >>>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>>> makes >>>>>> sense of it. Business sense. IT sense. Common sense.. >>>>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All the data continuously generated in your IT infrastructure contains >>>>> a >>>>> definitive record of customers, application performance, security >>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>> makes >>>>> sense of it. Business sense. IT sense. Common sense.. >>>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> >> > From gambas.fr at ...626... Sun Jun 26 00:41:05 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 26 Jun 2011 00:41:05 +0200 Subject: [Gambas-user] I need simple example In-Reply-To: References: Message-ID: my fault ... i've done it without gambas ... i'll try to send you an example 2011/6/25 M. Cs. : > Public Sub _new() > Dim hPrinter As Printer > hPrinter = New Printer > > ?If Not hPrinter.Configure() Then > ? 'you must to define the numbers of pages before > ? hPrinter.Count = 1 > ? 'Launch the printing > ?hPrinter.Print > ?Endif > End > > Public Sub Form_Open() > > End > > > > Public Sub hPrinter_Draw() > > ?Paint.Font.Size = 12 > ?Paint.Text("Nothing", 564, 457) > ?'fill the vectorialpath > ?Paint.Fill > > ?End > > It prints empty pages only!!! > > 2011/6/25, M. Cs. : >> If Not Printer.Configure() Then >> >> Another error Printer.Configure not static >> >> 2011/6/25, M. Cs. : >>> It won't work... >>> In your original script >>> At line hPrinter = new Printer(me) as "Printer" it raises error too >>> many parameters >>> >>> >>> ...why should people change a synthax wich worked in G2... >>> >>> 2011/6/25, M. Cs. : >>>> Well, I tried the example you gave me, but it is full of errors! >>>> >>>> I've modified like this: >>>> >>>> PUBLIC hPrinter as Printer >>>> >>>> >>>> ?Public sub _New() >>>> >>>> ? hPrinter = new Printer >>>> >>>> ? if not hPrinter.configure() then >>>> ? ?'you must to define the numbers of pages before >>>> ? ?hPrinter.count = 1 >>>> ? ?'Launch the printing >>>> ? ?hPrinter.Print >>>> ? endif >>>> >>>> ?end >>>> >>>> >>>> ?Public sub hPrinter_Draw() >>>> >>>> ? Paint.Font.Size=12 >>>> ? Paint.Text(myText,564,457) >>>> ? 'fill the vectorialpath >>>> ? Paint.Fill >>>> >>>> ?end >>>> >>>> But it prints empty pages only! >>>> Any correction? >>>> >>>> 2011/6/25, M. Cs. : >>>>> Thanks! >>>>> >>>>> Csaba >>>>> >>>>> 2011/6/25, Fabien Bodard : >>>>>> Dim hPrinter as Printer >>>>>> >>>>>> >>>>>> Public sub _New() >>>>>> >>>>>> ? hPrinter = new Printer(me) as "Printer" >>>>>> >>>>>> ? if not Printer.configure() then >>>>>> ? ?'you must to define the numbers of pages before >>>>>> ? ?printer.count = 1 >>>>>> ? ?'Launch the printing >>>>>> ? ?printer.print >>>>>> ? endif >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> Public sub Printer_Draw() >>>>>> >>>>>> ? Paint.Font.Size=12 >>>>>> ? Paint.Text(myText,564,457) >>>>>> ? 'fill the vectorialpath >>>>>> ? Paint.Fill >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2011/6/25 M. Cs. : >>>>>>> Hi, >>>>>>> I know how to print text in G2, but I'd need a simple transcription >>>>>>> for the following G2 code to G3: >>>>>>> >>>>>>> PUBLIC SUB ExecutePrint(mytext) >>>>>>> >>>>>>> IF Printer.Setup() THEN RETURN >>>>>>> Printer.Resolution = 300 >>>>>>> Draw.Begin(Printer) >>>>>>> Draw.Font.Size = 12 >>>>>>> Draw.Text(mytext, 564, 457) >>>>>>> Draw.End >>>>>>> >>>>>>> END >>>>>>> >>>>>>> The examples prepared for the GUI are much too complicated (were also >>>>>>> in >>>>>>> G2). >>>>>>> "Simplicity!" (Hannibal Lecter) >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> All the data continuously generated in your IT infrastructure >>>>>>> contains >>>>>>> a >>>>>>> definitive record of customers, application performance, security >>>>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>>>> makes >>>>>>> sense of it. Business sense. IT sense. Common sense.. >>>>>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Fabien Bodard >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All the data continuously generated in your IT infrastructure contains >>>>>> a >>>>>> definitive record of customers, application performance, security >>>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>>> makes >>>>>> sense of it. Business sense. IT sense. Common sense.. >>>>>> http://p.sf.net/sfu/splunk-d2d-c1 >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>> >>> >> > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Sun Jun 26 00:45:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 25 Jun 2011 18:45:16 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <201106250042.41562.gambas@...1...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> Message-ID: <4E0664FC.2060004@...1887...> On 06/24/2011 06:42 PM, Beno?t Minisini wrote: >> I'm using this to print a formatted date: >> >> Draw.Text("Date and Time: "& CDate(Server.DateCurrent)& " ("& >> Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM")& ")", 32, ystart - 1) >> >> It seems that Format$ actually changes the value of Server.DateCurrent, >> making it AM when it should be PM. Format$ is actually forcing the hour >> to be between 1 and 12. Shouldn't Format$ simply return a value and not >> overwrite the expression? > > Format$() does not change its arguments, as any other functions in Gambas. > > When AM/PM is specified, the hour is displayed between 1 and 12. If the real > hour is greater or equal than 12:00, then PM is printed. Otherwise AM is > printer. That makes perfect sense and was the expected behavior. I'm not sure what's happening here, but this test code: Public Sub Main() Dim t As Float t = CFloat(Now) ' Current time and date. Print "1: CDate(t): " & CDate(t) Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), "hh:nn:AM/PM") Print "3: CDate(t): " & CDate(t) Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), "hh:nn:AM/PM") Print "5: CDate(t): " & CDate(t) End Produces these results: 1: CDate(t): 06/25/2011 18:35:46.837 2: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:PM 3: CDate(t): 06/25/2011 06:35:46.837 4: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:AM 5: CDate(t): 06/25/2011 06:35:46.837 I checked, and the value of variable "t" is not being changed. However, after the first Format$, CDate(t) returns a different value than before the first Format$. Any idea why? Lines 1 and 2 look good, but it seems like lines 1 and 3 should print the same value. Somehow the Format$ line continues to have an effect on the subsequent lines. I hope I'm really not so stupid that I'm missing something obvious. I'm not even drinking right now! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Sun Jun 26 01:05:03 2011 From: nando_f at ...951... (nando) Date: Sat, 25 Jun 2011 19:05:03 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E0664FC.2060004@...1887...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> Message-ID: <20110625230415.M37319@...951...> 18:35 is 6:35 pm just in 24 hour time ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Sat, 25 Jun 2011 18:45:16 -0400 Subject: Re: [Gambas-user] gb3: Format$ > On 06/24/2011 06:42 PM, Beno?t Minisini wrote: > >> I'm using this to print a formatted date: > >> > >> Draw.Text("Date and Time: "& CDate(Server.DateCurrent)& " ("& > >> Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM")& ")", 32, ystart - 1) > >> > >> It seems that Format$ actually changes the value of Server.DateCurrent, > >> making it AM when it should be PM. Format$ is actually forcing the hour > >> to be between 1 and 12. Shouldn't Format$ simply return a value and not > >> overwrite the expression? > > > > Format$() does not change its arguments, as any other functions in Gambas. > > > > When AM/PM is specified, the hour is displayed between 1 and 12. If the real > > hour is greater or equal than 12:00, then PM is printed. Otherwise AM is > > printer. > > That makes perfect sense and was the expected behavior. I'm not sure > what's happening here, but this test code: > > Public Sub Main() > > Dim t As Float > > t = CFloat(Now) ' Current time and date. > > Print "1: CDate(t): " & CDate(t) > Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), > "hh:nn:AM/PM") > Print "3: CDate(t): " & CDate(t) > Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), > "hh:nn:AM/PM") > Print "5: CDate(t): " & CDate(t) > > End > > Produces these results: > > 1: CDate(t): 06/25/2011 18:35:46.837 > 2: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:PM > 3: CDate(t): 06/25/2011 06:35:46.837 > 4: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:AM > 5: CDate(t): 06/25/2011 06:35:46.837 > > I checked, and the value of variable "t" is not being changed. However, > after the first Format$, CDate(t) returns a different value than before > the first Format$. Any idea why? Lines 1 and 2 look good, but it seems > like lines 1 and 3 should print the same value. Somehow the Format$ line > continues to have an effect on the subsequent lines. > > I hope I'm really not so stupid that I'm missing something obvious. I'm > not even drinking right now! > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From francescokm at ...626... Sun Jun 26 01:04:48 2011 From: francescokm at ...626... (francescokm at ...626...) Date: Sat, 25 Jun 2011 23:04:48 +0000 Subject: [Gambas-user] stop In-Reply-To: <4E0664FC.2060004@...1887...> References: <4E027904.1030400@...1887...><201106250042.41562.gambas@...1...><4E0664FC.2060004@...1887...> Message-ID: <2031638685-1309043129-cardhu_decombobulator_blackberry.rim.net-243509933-@...2610...> Stop Powered by Telkomsel BlackBerry? -----Original Message----- From: Kevin Fishburne Date: Sat, 25 Jun 2011 18:45:16 To: Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] gb3: Format$ On 06/24/2011 06:42 PM, Beno?t Minisini wrote: >> I'm using this to print a formatted date: >> >> Draw.Text("Date and Time: "& CDate(Server.DateCurrent)& " ("& >> Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM")& ")", 32, ystart - 1) >> >> It seems that Format$ actually changes the value of Server.DateCurrent, >> making it AM when it should be PM. Format$ is actually forcing the hour >> to be between 1 and 12. Shouldn't Format$ simply return a value and not >> overwrite the expression? > > Format$() does not change its arguments, as any other functions in Gambas. > > When AM/PM is specified, the hour is displayed between 1 and 12. If the real > hour is greater or equal than 12:00, then PM is printed. Otherwise AM is > printer. That makes perfect sense and was the expected behavior. I'm not sure what's happening here, but this test code: Public Sub Main() Dim t As Float t = CFloat(Now) ' Current time and date. Print "1: CDate(t): " & CDate(t) Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), "hh:nn:AM/PM") Print "3: CDate(t): " & CDate(t) Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), "hh:nn:AM/PM") Print "5: CDate(t): " & CDate(t) End Produces these results: 1: CDate(t): 06/25/2011 18:35:46.837 2: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:PM 3: CDate(t): 06/25/2011 06:35:46.837 4: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:AM 5: CDate(t): 06/25/2011 06:35:46.837 I checked, and the value of variable "t" is not being changed. However, after the first Format$, CDate(t) returns a different value than before the first Format$. Any idea why? Lines 1 and 2 look good, but it seems like lines 1 and 3 should print the same value. Somehow the Format$ line continues to have an effect on the subsequent lines. I hope I'm really not so stupid that I'm missing something obvious. I'm not even drinking right now! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Sun Jun 26 01:14:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 25 Jun 2011 19:14:09 -0400 Subject: [Gambas-user] stop In-Reply-To: <2031638685-1309043129-cardhu_decombobulator_blackberry.rim.net-243509933-@...2610...> References: <4E027904.1030400@...1887...><201106250042.41562.gambas@...1...><4E0664FC.2060004@...1887...> <2031638685-1309043129-cardhu_decombobulator_blackberry.rim.net-243509933-@...2610...> Message-ID: <4E066BC1.5010505@...1887...> On 06/25/2011 07:04 PM, francescokm at ...626... wrote: > Stop > In the name of love... Before you break my heart. Think it o-over. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun Jun 26 01:19:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 25 Jun 2011 19:19:09 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <20110625230415.M37319@...951...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> Message-ID: <4E066CED.60309@...1887...> On 06/25/2011 07:05 PM, nando wrote: > 18:35 is 6:35 pm > just in 24 hour time > I understand that. I just don't understand why a completely different line is affect by the previous line's Format$. If I comment out the Format$ lines, the same value is printed on the remaining lines. Uncommenting the Format$ lines affects the other lines. A function should just return/print a value and not affect subsequent lines. The fact that the variable "t" isn't affected but CDate(t) is, is an extra layer of strangeness. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Sun Jun 26 03:41:25 2011 From: nando_f at ...951... (nando) Date: Sat, 25 Jun 2011 21:41:25 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E066CED.60309@...1887...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> <4E066CED.60309@...1887...> Message-ID: <20110626014007.M54388@...951...> Yes-Silly me! How about trying the print statements with ; and not & I'm curious how the bug manifests. ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Sat, 25 Jun 2011 19:19:09 -0400 Subject: Re: [Gambas-user] gb3: Format$ > On 06/25/2011 07:05 PM, nando wrote: > > 18:35 is 6:35 pm > > just in 24 hour time > > > > I understand that. I just don't understand why a completely different > line is affect by the previous line's Format$. If I comment out the > Format$ lines, the same value is printed on the remaining lines. > Uncommenting the Format$ lines affects the other lines. A function > should just return/print a value and not affect subsequent lines. The > fact that the variable "t" isn't affected but CDate(t) is, is an extra > layer of strangeness. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From kevinfishburne at ...1887... Sun Jun 26 05:54:35 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 25 Jun 2011 23:54:35 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <20110626014007.M54388@...951...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> <4E066CED.60309@...1887...> <20110626014007.M54388@...951...> Message-ID: <4E06AD7B.4020501@...1887...> On 06/25/2011 09:41 PM, nando wrote: > Yes-Silly me! > How about trying the print statements with ; and not& > I'm curious how the bug manifests. It displays the same results: Public Sub Main() Dim t As Float t = CFloat(Now) ' Current time and date. Print "1: CDate(t): "; CDate(t) Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t), "hh:nn:AM/PM") Print "3: CDate(t): "; CDate(t) Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t), "hh:nn:AM/PM") Print "5: CDate(t): "; CDate(t) End 1: CDate(t): 06/25/2011 23:52:54 2: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:PM 3: CDate(t): 06/25/2011 11:52:54 4: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:AM 5: CDate(t): 06/25/2011 11:52:54 Out of curiousity, what's the difference between concatenating strings with ";" versus "&"? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ea7dfh at ...2382... Sun Jun 26 12:40:56 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 26 Jun 2011 12:40:56 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E06AD7B.4020501@...1887...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> <4E066CED.60309@...1887...> <20110626014007.M54388@...951...> <4E06AD7B.4020501@...1887...> Message-ID: <4E070CB8.7080204@...2382...> El 26/06/11 05:54, Kevin Fishburne escribi?: > On 06/25/2011 09:41 PM, nando wrote: >> Yes-Silly me! >> How about trying the print statements with ; and not& >> I'm curious how the bug manifests. > > It displays the same results: > > Public Sub Main() > > Dim t As Float > > t = CFloat(Now) ' Current time and date. > > Print "1: CDate(t): "; CDate(t) > Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t), > "hh:nn:AM/PM") > Print "3: CDate(t): "; CDate(t) > Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): "; Format$(CDate(t), > "hh:nn:AM/PM") > Print "5: CDate(t): "; CDate(t) > > End > > 1: CDate(t): 06/25/2011 23:52:54 > 2: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:PM > 3: CDate(t): 06/25/2011 11:52:54 > 4: Format$(CDate(t), "hh:nn:AM/PM"): 11:52:AM > 5: CDate(t): 06/25/2011 11:52:54 Hi all >> >> Out of curiousity, what's the difference between concatenating strings >> with ";" versus "&"? >> @Kevin Well, AFAIK using ';' (semicolon) inserts a single '\t' (tab character) and ';;' (double semicolon) inserts a single space. Someone could correct me if I'm wrong. Returning to the main question, I've tested your example with a slight modification and things went worse... It doesn't print 'AM/PM' at all: Print "1: CDate(t): "; CDate(t) Print "2: Format$(CDate(t), \"hh:nn AM/PM\"):"; Format$(CDate(t), "hh:nn AM/PM") Print "3: CDate(t): "; CDate(t) Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"):"; Format$(CDate(t), "hh:nn:AM/PM") Print "5: CDate(t): "; CDate(t) Notice the space instead of ':' (colon) in the 2nd line. These are the results: 1: CDate(t): 26/06/2011 12:40:29 2: Format$(CDate(t), "hh:nn AM/PM"): 12:40 3: CDate(t): 26/06/2011 12:40:29 4: Format$(CDate(t), "hh:nn:AM/PM"): 12:40: 5: CDate(t): 26/06/2011 12:40:29 System here is Linux Mint 10 (32bit), Gnome, Gambas3 rev. #3899 with Spanish localization, if it matters somehow. Best regards, -- Jesus Guardon From jussi.lahtinen at ...626... Sun Jun 26 17:23:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 26 Jun 2011 18:23:50 +0300 Subject: [Gambas-user] Bug with border property. In-Reply-To: <201106250123.13424.gambas@...1...> References: <201106250123.13424.gambas@...1...> Message-ID: metacity 2.30.3 Jussi 2011/6/25 Beno?t Minisini > > Hi! > > Borderless windows doesn't work (borders are showing) when combined to > > 'Mask = True'. > > Problem is only with Qt4, with GTK+ everything is OK. > > > > Gambas 3 rev 3888 @ Ubuntu 11.04 64bit > > > > Jussi > > I habe no problem on KDE. Which window manager do you use? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Sun Jun 26 17:27:03 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 26 Jun 2011 17:27:03 +0200 Subject: [Gambas-user] Component Loading In-Reply-To: <4E070CB8.7080204@...2382...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> <4E066CED.60309@...1887...> <20110626014007.M54388@...951...> <4E06AD7B.4020501@...1887...> <4E070CB8.7080204@...2382...> Message-ID: <4E074FC7.2080501@...20...> hi, i never used the Class class before and now tried, as a preparation for using Component class, to manually load a class. the class looks like: PUBLIC SUB _init() PRINT "Here I am" END if i load it using Class.Load("testclass") everything is fine. i saw in the sources (just in a comment) that one can also put his components (and classes, too?) into ~/.local/lib/gambas2/ so i tried this one. when i Class.Load() there is no error saying that it isn't found but there is also no message... can anyone explain it clearly to me? regards, tobi From mohareve at ...626... Sun Jun 26 20:14:14 2011 From: mohareve at ...626... (M. Cs.) Date: Sun, 26 Jun 2011 20:14:14 +0200 Subject: [Gambas-user] ScrollView properties Message-ID: How can get the the minimum and maximum value of scrolling position of a ScrollView? The task I'd like to solve is to open a picture which is put into a PictureBox inside a ScrollView. My problem is how to get the right X and Y coordinates under the mouse pointer, but related to the (0,0) coordinates of the picture. So I need to determine the mouse position over the picture, not the screen or scrollview .The PictureBox is dimensioned according to the width and height of the picture I open, so there are no scaling, but working with the original picture size. I was trying to solve this with proportions in scrolling minimum and maximum value, but I cannot access to the min and max value of the scrollbar position of the view. Any ideas? From tobiasboe1 at ...20... Sun Jun 26 20:42:14 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 26 Jun 2011 20:42:14 +0200 Subject: [Gambas-user] ScrollView properties In-Reply-To: References: Message-ID: <4E077D86.7090408@...20...> hi, i am really tired today so i think that's the reason why i don't understand entirely what you want but i think i know... you have a big picture in a ScrollView which is scrolled somewhere and you want to track the mouse position relatively to 0,0 on your picture, right? i thought about this the last 15minutes and i think it's important to know WHEN you want these information... you can have it immediately in a PictureBox_MouseDown() event using Mouse.X and Mouse.Y... otherwise, i would work with the absolute mouse positions because these are the only ones you can access at any time (not only in an event like Mouse.X and .Y) and then subtract all child positions from ME to PictureBox (to get the mouse position relative to the picturebox 0,0) and then you got it. my first thought was using ScrollView.ScrollWidth and ScrollView.ScrollX but that isn't neccessary in my opinion. may it help you if i was wrong with my thoughts... regards, tobi From demosthenesk at ...626... Sun Jun 26 20:49:48 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 26 Jun 2011 21:49:48 +0300 Subject: [Gambas-user] Error balloon Message-ID: <1309114188.3295.1.camel@...2493...> In previous versions of svn when there was an error a balloon style error was appeared. Now there is not this style. Is it going to re-enable it? -- Regards, Demosthenes Koptsis. From gambas at ...1... Sun Jun 26 20:52:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jun 2011 20:52:12 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E0664FC.2060004@...1887...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> Message-ID: <201106262052.12746.gambas@...1...> > That makes perfect sense and was the expected behavior. I'm not sure > what's happening here, but this test code: > > Public Sub Main() > > Dim t As Float > > t = CFloat(Now) ' Current time and date. > > Print "1: CDate(t): " & CDate(t) > Print "2: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), > "hh:nn:AM/PM") > Print "3: CDate(t): " & CDate(t) > Print "4: Format$(CDate(t), \"hh:nn:AM/PM\"): " & Format$(CDate(t), > "hh:nn:AM/PM") > Print "5: CDate(t): " & CDate(t) > > End > > Produces these results: > > 1: CDate(t): 06/25/2011 18:35:46.837 > 2: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:PM > 3: CDate(t): 06/25/2011 06:35:46.837 > 4: Format$(CDate(t), "hh:nn:AM/PM"): 06:35:AM > 5: CDate(t): 06/25/2011 06:35:46.837 > > I checked, and the value of variable "t" is not being changed. However, > after the first Format$, CDate(t) returns a different value than before > the first Format$. Any idea why? Lines 1 and 2 look good, but it seems > like lines 1 and 3 should print the same value. Somehow the Format$ line > continues to have an effect on the subsequent lines. > > I hope I'm really not so stupid that I'm missing something obvious. I'm > not even drinking right now! Mmm... You're right, there's something nasty there. I'm currently investigating... -- Beno?t Minisini From gambas at ...1... Sun Jun 26 20:53:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jun 2011 20:53:18 +0200 Subject: [Gambas-user] Error balloon In-Reply-To: <1309114188.3295.1.camel@...2493...> References: <1309114188.3295.1.camel@...2493...> Message-ID: <201106262053.18889.gambas@...1...> > In previous versions of svn when there was an error a balloon style > error was appeared. > > Now there is not this style. > > Is it going to re-enable it? I don't think so, because these balloons were not practical. -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jun 26 20:55:16 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 26 Jun 2011 20:55:16 +0200 Subject: [Gambas-user] ScrollView properties In-Reply-To: <4E077D86.7090408@...20...> References: <4E077D86.7090408@...20...> Message-ID: <4E078094.4060905@...20...> hi, to be more exact. you should use: PRINT Mouse.ScreenX - PictureBox1.ScreenX this will give the position of the mouse relative to PictureBox1's 0,0 which is the same as your pictures 0,0 regards, tobi From gambas at ...1... Sun Jun 26 21:09:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 26 Jun 2011 21:09:40 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <201106262052.12746.gambas@...1...> References: <4E027904.1030400@...1887...> <4E0664FC.2060004@...1887...> <201106262052.12746.gambas@...1...> Message-ID: <201106262109.40521.gambas@...1...> > > I hope I'm really not so stupid that I'm missing something obvious. I'm > > not even drinking right now! > > Mmm... You're right, there's something nasty there. I'm currently > investigating... The bug should be fixed in revision #3900. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jun 26 21:21:42 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 26 Jun 2011 21:21:42 +0200 Subject: [Gambas-user] Component Loading In-Reply-To: <4E074FC7.2080501@...20...> References: <4E027904.1030400@...1887...> <201106250042.41562.gambas@...1...> <4E0664FC.2060004@...1887...> <20110625230415.M37319@...951...> <4E066CED.60309@...1887...> <20110626014007.M54388@...951...> <4E06AD7B.4020501@...1887...> <4E070CB8.7080204@...2382...> <4E074FC7.2080501@...20...> Message-ID: <4E0786C6.5020101@...20...> hi, oh well, it's a very confusing subject in my email, i'm sorry, it's about class loading as a preparation for component loading... i figured it out by myself and the sources... every class is compiled, named with capital letters without extension put into .gambas (in my gambas2) in the project directory. and, if i saw it right, these are also included in an executable archive. but they have to be unpacked, too, haven't they? i searched in ./, ~/ and /tmp/ but nothing...? Beno?t, can you explain this to me? i get headache from reading so much source code :) regards, tobi From demosthenesk at ...626... Sun Jun 26 22:59:33 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 26 Jun 2011 23:59:33 +0300 Subject: [Gambas-user] Error balloon In-Reply-To: <201106262053.18889.gambas@...1...> References: <1309114188.3295.1.camel@...2493...> <201106262053.18889.gambas@...1...> Message-ID: <1309121973.4221.0.camel@...2494...> ok, so i need to remake some screenshots. On Sun, 2011-06-26 at 20:53 +0200, Beno?t Minisini wrote: > > In previous versions of svn when there was an error a balloon style > > error was appeared. > > > > Now there is not this style. > > > > Is it going to re-enable it? > > I don't think so, because these balloons were not practical. > -- Regards, Demosthenes From kevinfishburne at ...1887... Sun Jun 26 23:37:43 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 26 Jun 2011 17:37:43 -0400 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <201106262109.40521.gambas@...1...> References: <4E027904.1030400@...1887...> <4E0664FC.2060004@...1887...> <201106262052.12746.gambas@...1...> <201106262109.40521.gambas@...1...> Message-ID: <4E07A6A7.6040009@...1887...> On 06/26/2011 03:09 PM, Beno?t Minisini wrote: >>> I hope I'm really not so stupid that I'm missing something obvious. I'm >>> not even drinking right now! >> >> Mmm... You're right, there's something nasty there. I'm currently >> investigating... > > The bug should be fixed in revision #3900. Awesome, it works. Thanks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Jun 27 00:19:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Jun 2011 00:19:11 +0200 Subject: [Gambas-user] Circular Inheritance In-Reply-To: <1309004787.4817.10.camel@...2493...> References: <1309004787.4817.10.camel@...2493...> Message-ID: <201106270019.11623.gambas@...1...> > In attached project there is a circular inheritance between cClassB and > cClassC > > If i try to edit cClassB file in line 3 which > > INHERITS cClassC > > the IDE is stack and i have to kill the IDE with Xkill. The bug should be fixed in revision #3901. Regards, -- Beno?t Minisini From demosthenesk at ...626... Mon Jun 27 00:25:37 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Jun 2011 01:25:37 +0300 Subject: [Gambas-user] Circular Inheritance In-Reply-To: <201106270019.11623.gambas@...1...> References: <1309004787.4817.10.camel@...2493...> <201106270019.11623.gambas@...1...> Message-ID: <1309127137.5473.1.camel@...2494...> Thanks by me for all this great work you do with Gambas :) On Mon, 2011-06-27 at 00:19 +0200, Beno?t Minisini wrote: > > In attached project there is a circular inheritance between cClassB and > > cClassC > > > > If i try to edit cClassB file in line 3 which > > > > INHERITS cClassC > > > > the IDE is stack and i have to kill the IDE with Xkill. > > The bug should be fixed in revision #3901. > > Regards, > -- Regards, Demosthenes From gambas at ...1... Mon Jun 27 00:25:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Jun 2011 00:25:53 +0200 Subject: [Gambas-user] gambas2 and gambas3 Natty In-Reply-To: References: Message-ID: <201106270025.53433.gambas@...1...> > On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. wrote: > > Hello, > > because of a foolish error I cannot use both gambas2 and gambas3 on > > Natty: > > > > gambas3-script_2.99.1-1natty0_i386.deb (--install): > > trying to overwrite > > '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png' > > , which is also in package gambas2-script 2.21.0-1ubuntu1 > > > > Because of a stupid icon! > > Is it possible to resolve it? > > glad to know someone uses these packages.:-) > > The immediate solution is to use dpkg --force-overwrite overwriting > is OK it just means > your icon will be the new gambas3 icon even for gambas2 files. > > longer term I'm not sure. The gambas3 icon file can't go anywhere else > or have any other name > as it is a debian standard. > I'll research the options. > > Ian > Maybe a solution could be adding the version to the icon name? "application-x-gambasscript3.png" ? -- Beno?t Minisini From gambas at ...1... Mon Jun 27 00:28:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Jun 2011 00:28:33 +0200 Subject: [Gambas-user] Class name bug. In-Reply-To: <1309003912.4817.5.camel@...2493...> References: <1308557772.8470.2.camel@...2493...> <1309003912.4817.5.camel@...2493...> Message-ID: <201106270028.33890.gambas@...1...> > some more examples > > i have classes > > cA > cB > cC > > cB inherits cA > cC inherits cB > > 1) With 2 characters as class names the file browser did not show > correct the class tree. > > 2) After INHERITS instruction the class name is capitalized > > 3) in Main module i get > > Dim hObject As Cc > hObject = New Cc > > as autocorect, but the name of third class is cC and not Cc. > The IDE assumes that all class names starts with an uppercase letter. It is not formally required by the compiler, because the language is case unsensitive. But it is a naming convention I decided to enforce in the IDE, so that class names are easily identified at first sight. Regards, -- Beno?t Minisini From francescokm at ...626... Mon Jun 27 00:30:50 2011 From: francescokm at ...626... (francescokm at ...626...) Date: Sun, 26 Jun 2011 22:30:50 +0000 Subject: [Gambas-user] stop Message-ID: <23062265-1309127494-cardhu_decombobulator_blackberry.rim.net-472549806-@...2610...> How to Stop from maillinglist? Powered by Telkomsel BlackBerry? From kevinfishburne at ...1887... Mon Jun 27 01:05:29 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 26 Jun 2011 19:05:29 -0400 Subject: [Gambas-user] stop In-Reply-To: <23062265-1309127494-cardhu_decombobulator_blackberry.rim.net-472549806-@...2610...> References: <23062265-1309127494-cardhu_decombobulator_blackberry.rim.net-472549806-@...2610...> Message-ID: <4E07BB39.4020906@...1887...> On 06/26/2011 06:30 PM, francescokm at ...626... wrote: > How to Stop from maillinglist? Ah... Go here: https://lists.sourceforge.net/lists/listinfo/gambas-user and visit the bottom section, "Gambas-user Subscribers". -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Jun 27 01:33:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 27 Jun 2011 01:33:00 +0200 Subject: [Gambas-user] Using special method _unknown for object properties In-Reply-To: References: Message-ID: <201106270133.00713.gambas@...1...> > To the group: > Here is my problem. I need to use the "_unknown" special function to > simulate object methods and properties at runtime. I coded an > "_unknown" method in a class called DITEM If ditem is an instance of > DITEM and I refer to ditem.A() where A is NOT a method in DITEM, > everything works fine. My "_unknown" method gets called and I can > retrieve the arguments (if there are any) and handle the reference just > fine. I was expecting that I could also use this for properties. In this > case, I would expect to make a reference to ditem.b (such as PRINT > ditem.b) and my _unknown method would again be called with the value of > isProperty being true and I could process the reference dynamically. > Well, as I said, the first instance (the method call) works just fine. > The second case does not. When I refer to ditem.b, my _unknown method > NEVER gets called, so I can't process the illegal reference. What I DO > get is (function ?) printed on the console. Is this a bug in Gambas, or > am I doing it wrong? If the former, is it a bug in all versions, or just > some (I am running 2.19)? Does it work in Gambas3? I really need to find > a fix for this before I can proceed with a big port. Thanks > gwalborn It works in Gambas 3, but I'm afraid I cannot backport the fix to Gambas 2... Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Mon Jun 27 08:41:31 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 27 Jun 2011 08:41:31 +0200 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: <4E08261B.2050902@...221...> Am 24.06.2011 22:46, schrieb Fabien Bodard: > 2011/6/24 Dag-Jarle Johansen: >> lol >> >> in fact I think every language is as exact as the writer is able to form his >> sentences. what I ment is - in german you can put things toghether in simple >> manner, spanish is more difficult, and in norwegian, or other scandinavian >> languages, you have to write a novel. > In fact in latin languages, there is multiple way to say the same > thing. Depend of the context, > the persons filling. Sure ... these languages are really difficult to > learn ... French before all. > > But when you was born is these country ..; German laguages are quite > difficult t learn... it's not natural for us :) > Big YES :-) And vice versa... ;-)) As the head of a language school, I could tell you stories... But I must say, about 50 % of our students love french, the other half hate it. French is based on clear and strict rules of Grammar (as are all of the Roman languages). English is a thing of feeling. In the end, it boils down to "what type of language thinker am I?". Same situation as with programming languages. Rolf From demosthenesk at ...626... Mon Jun 27 09:09:21 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 27 Jun 2011 10:09:21 +0300 Subject: [Gambas-user] Class name bug. In-Reply-To: <201106270028.33890.gambas@...1...> References: <1308557772.8470.2.camel@...2493...> <1309003912.4817.5.camel@...2493...> <201106270028.33890.gambas@...1...> Message-ID: <1309158561.4805.0.camel@...2493...> ok. On Mon, 2011-06-27 at 00:28 +0200, Beno?t Minisini wrote: > > some more examples > > > > i have classes > > > > cA > > cB > > cC > > > > cB inherits cA > > cC inherits cB > > > > 1) With 2 characters as class names the file browser did not show > > correct the class tree. > > > > 2) After INHERITS instruction the class name is capitalized > > > > 3) in Main module i get > > > > Dim hObject As Cc > > hObject = New Cc > > > > as autocorect, but the name of third class is cC and not Cc. > > > > The IDE assumes that all class names starts with an uppercase letter. > > It is not formally required by the compiler, because the language is case > unsensitive. > > But it is a naming convention I decided to enforce in the IDE, so that class > names are easily identified at first sight. > > Regards, > -- Regards, Demosthenes Koptsis. From mohareve at ...626... Mon Jun 27 10:42:28 2011 From: mohareve at ...626... (M. Cs.) Date: Mon, 27 Jun 2011 10:42:28 +0200 Subject: [Gambas-user] ScrollView properties In-Reply-To: <4E078094.4060905@...20...> References: <4E077D86.7090408@...20...> <4E078094.4060905@...20...> Message-ID: Thanks! It works. 2011/6/26, tobias : > hi, > > to be more exact. you should use: > PRINT Mouse.ScreenX - PictureBox1.ScreenX > this will give the position of the mouse relative to PictureBox1's 0,0 > which is the same as your pictures 0,0 > > regards, > tobi > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Mon Jun 27 11:41:16 2011 From: mohareve at ...626... (M. Cs.) Date: Mon, 27 Jun 2011 11:41:16 +0200 Subject: [Gambas-user] Create and delete labels dinamically Message-ID: I know how to create a label object with the myLabel=New Label(Fmain) sentence. But how could I create an array of labels in order to be able to remove them if needed? From tobiasboe1 at ...20... Mon Jun 27 12:12:53 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 27 Jun 2011 12:12:53 +0200 Subject: [Gambas-user] External Variables In-Reply-To: References: Message-ID: <4E0857A5.5050407@...20...> hi, i have a component that should use a variable (or class) which is declared globally in a project. i know that this isn't good practice but i just want to know if it is possible to tell the compiler not to look for this variable and that it can be resolved when the component loaded. the only thing i found is a way to do it with a function: EXTERN function() IN "lib" regards, tobi From Gambas at ...1950... Mon Jun 27 12:15:40 2011 From: Gambas at ...1950... (Caveat) Date: Mon, 27 Jun 2011 12:15:40 +0200 Subject: [Gambas-user] Create and delete labels dinamically In-Reply-To: References: Message-ID: <1309169740.8721.268.camel@...2150...> Private allLabels as TextLabel[] Public Sub Test_Click() allLabels = New TextLabel[10] createLabels() deleteLabels() tidyLabels() End Public Sub createLabels() Dim idx As Integer For idx = 0 To 9 allLabels[idx] = New TextLabel(Me) allLabels[idx].X = 10 allLabels[idx].Y = 10 + (idx * 22) allLabels[idx].Width = 450 allLabels[idx].Height = 20 allLabels[idx].Tag = idx allLabels[idx].Text = "I am label " & idx Next End Public Sub deleteLabels() allLabels[3].Delete allLabels[8].Delete End Public Sub tidyLabels() Dim aLabel As TextLabel Dim idx, idy As Integer For idx = 0 To allLabels.length - 1 If Object.IsValid(allLabels[idx]) Then allLabels[idx].Y = 10 + (idy * 22) Inc idy End If Next End Regards, Caveat On Mon, 2011-06-27 at 11:41 +0200, M. Cs. wrote: > I know how to create a label object with the > myLabel=New Label(Fmain) sentence. But how could I create an array of > labels in order to be able to remove them if needed? > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jun 27 16:18:41 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Jun 2011 17:18:41 +0300 Subject: [Gambas-user] External Variables In-Reply-To: <4E0857A5.5050407@...20...> References: <4E0857A5.5050407@...20...> Message-ID: If you use Gambas 3, look at GSLSpline example. It uses external object, but you can use external variables in similar way. gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl:0", "gsl_interp_cspline")) Jussi On Mon, Jun 27, 2011 at 13:12, tobias wrote: > hi, > > i have a component that should use a variable (or class) which is > declared globally in a project. i know that this isn't good practice but > i just want to know if it is possible to tell the compiler not to look > for this variable and that it can be resolved when the component loaded. > the only thing i found is a way to do it with a function: > EXTERN function() IN "lib" > > regards, > tobi > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Mon Jun 27 20:13:04 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 27 Jun 2011 15:13:04 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: References: <201106232134.11764.peter.talken@...1879...> Message-ID: lol2 no, I was born and raised in Norway, and got to Austria as I was 20, and as german and norwegian are pretty familiar, though dont ask a German, I learnded that pretty quick. Sorry to say- I HAD to learn french too, but that HAD has nothing good in it. Today, I would love to read and speak france, I am a little humble about my youthly failure, es un idioma muy elegante. German is easy. like english. A bit more difficult, just a little - and even more - all the slawish languages - no chance - lol THEY are difficult 2011/6/24 Fabien Bodard > 2011/6/24 Dag-Jarle Johansen : > > lol > > > > in fact I think every language is as exact as the writer is able to form > his > > sentences. what I ment is - in german you can put things toghether in > simple > > manner, spanish is more difficult, and in norwegian, or other > scandinavian > > languages, you have to write a novel. > In fact in latin languages, there is multiple way to say the same > thing. Depend of the context, > the persons filling. Sure ... these languages are really difficult to > learn ... French before all. > > But when you was born is these country ..; German laguages are quite > difficult t learn... it's not natural for us :) > > > > > > but thanks > > I am sorry to say, my french has laid down for ages, I would not starvage > > for hunger in France, I suppose, but ask me nothing, por favor. > > > > happy day! > > > > 2011/6/24 Fabien Bodard > > > >> 2011/6/23 Dag-Jarle Johansen : > >> > Peter Landgren > >> > > >> > es klingt so deustch., Ich liebe deutsch, allthough an Scandinavian. > >> German > >> > ist the most exact language on the world until now. Usuable words for > >> common > >> > people 3.500, In constrast Britsh with less than 1.500 words, not to > >> speak > >> > from American, they just know "fuck". The South-american languages - > >> there > >> > are more, because it*s a different between Mexican spansish, Espanol > >> (Spain) > >> > and a lot of the spanisch dialects in feks. Peru, Columbia and so on. > >> > >> well, French is also quite exact ... too exact :/ > >> > >> > I*m a lector of translations, nicht weil ich die Ausbildung habe, aber > >> weil > >> > ich in H?rsaaal A Mahe 1 h?ren musste, Geologie 1+2 machte und > Vermessung > >> > 1+2 machte, in physich 1 bekam - so I think my tranlations are pretty > >> goood. > >> > Juridical German has been more easy. And last but not leats: Look at > FB > >> > Phrases: all my tranlations - 10000 > >> > > >> > > >> > Peter, ich glaube wie waren alle nicht faul > >> > Regards, Dag > >> > > >> > 2011/6/23 Peter Landgren > >> > > >> >> My first program was written in 1964 in the language Algol Genius for > >> >> computing filter coefficients. It > >> >> was run om vacuum tube system, at least 20 m long. It had paper tape > >> reader > >> >> as input device. There > >> >> were also magnetic tapes and a drum memory and a line printer. > >> >> > >> >> Now, being retired, I'm still confused sometimes and trying to learn. > >> >> > >> >> /Peter > >> >> > >> >> > >> >> > I get my first job as software developer in 1986. In a big machine > >> with > >> >> > it's own OS (Fujitsu's UNIOS F4). After that, came a flood of > acronyms > >> >> and > >> >> > languages. > >> >> > Today, still exceede, still confusing, allways learning... > >> >> > > >> >> > Good Luck. > >> >> > > >> >> > > >> >> > 2011/6/23 Dag-Jarle Johansen > >> >> > > >> >> > > Hi to all great programmers. > >> >> > > > >> >> > > I wonder if there is an limit of understanding, an age limit. I > can > >> use > >> >> > > G3 and get my results. I still use PHP, JS, FB Dev(JS) CSS and so > >> on, > >> >> > > and still > >> >> > > am confused, I do not even understand the questions the most G3 > >> users > >> >> > > have. I wrote my first code in 1980, so I might be a dino among > you. > >> No > >> >> > > DOS, no Windows, at that time, in 85 I got a job as > >> softwaredeveloper > >> >> in > >> >> > > Austria (where I studied buildingeengnier) - on a system called > >> System > >> >> > > V, which may sound familiar to some of you. Language C, Bash and > so > >> on. > >> >> > > I was allowed to do some classifed work for NATO, on a WANG 128. > >> Good > >> >> > > grief, the cold war is over, the next has started. I just want to > >> know > >> >> - > >> >> > > what are you doing? Many regards, > >> >> > > Dag > >> >> > > > >> >> > > > >> >> > >> > ------------------------------------------------------------------------- > >> >> > > ----- Simplify data backup and recovery for your virtual > environment > >> >> with > >> >> > > vRanger. > >> >> > > Installation's a snap, and flexible recovery options mean your > data > >> is > >> >> > > safe, > >> >> > > secure and there when you need it. Data protection magic? > >> >> > > Nope - It's vRanger. Get your free trial download today. > >> >> > > http://p.sf.net/sfu/quest-sfdev2dev > >> >> > > _______________________________________________ > >> >> > > Gambas-user mailing list > >> >> > > Gambas-user at lists.sourceforge.net > >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > > >> >> > >> > --------------------------------------------------------------------------- > >> >> > --- Simplify data backup and recovery for your virtual environment > >> with > >> >> > vRanger. Installation's a snap, and flexible recovery options mean > >> your > >> >> > data is safe, secure and there when you need it. Data protection > >> magic? > >> >> > Nope - It's vRanger. Get your free trial download today. > >> >> > http://p.sf.net/sfu/quest-sfdev2dev > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Simplify data backup and recovery for your virtual environment with > >> >> vRanger. > >> >> Installation's a snap, and flexible recovery options mean your data > is > >> >> safe, > >> >> secure and there when you need it. Data protection magic? > >> >> Nope - It's vRanger. Get your free trial download today. > >> >> http://p.sf.net/sfu/quest-sfdev2dev > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > Simplify data backup and recovery for your virtual environment with > >> vRanger. > >> > Installation's a snap, and flexible recovery options mean your data is > >> safe, > >> > secure and there when you need it. Data protection magic? > >> > Nope - It's vRanger. Get your free trial download today. > >> > http://p.sf.net/sfu/quest-sfdev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> > >> > ------------------------------------------------------------------------------ > >> All the data continuously generated in your IT infrastructure contains a > >> definitive record of customers, application performance, security > >> threats, fraudulent activity and more. Splunk takes this data and makes > >> sense of it. Business sense. IT sense. Common sense.. > >> http://p.sf.net/sfu/splunk-d2d-c1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense.. > > http://p.sf.net/sfu/splunk-d2d-c1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Mon Jun 27 20:49:37 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 27 Jun 2011 15:49:37 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: <20110625131055.M75179@...951...> References: <20110625131055.M75179@...951...> Message-ID: Hei, Rolf, predict you are German, Rolf is in fact a Vikinger name coming to the Saxes about 200 years before Knut (of denmark) was the master of the empire, for a pretty termporary piece of time. As you can imagine, I am a litte proud of what the scandinavian managed, endeed too to conquer normandie and to manage to still up the first of the Hendriks. These was not the danish, those were the norwegian vikings. And as anyone in France knows - they were hard to beat. As I have read the france history, I am proud of both. Und auch stolz auf den germanen, hoffentlich ohne dass du es jetzt falsch verstehst. bin kein volksheld aus 1943. aber die germanen waren die einzige, die den r?mern wiederstand leistern konnten - sagen wir mal barbaren. die barbaren zogen, von nord betrachtet, nach s?dwesten, ?berrollten sw-frankreich, hingen eine zetilang in den pyreeneen fest, zogen weiter ?ber andalusia, dann ?ber die meerenge, und hatten ab dann den namen vandalier. von dort zogen sie bis nach tripolis, und setzten sich fest. wo die r?mer einige m?he hatten sie los zu werden. So viel zu dem namen Rolf. Gretings, Sag From mohareve at ...626... Mon Jun 27 22:31:48 2011 From: mohareve at ...626... (M. Cs.) Date: Mon, 27 Jun 2011 22:31:48 +0200 Subject: [Gambas-user] Create and delete labels dinamically In-Reply-To: <1309169740.8721.268.camel@...2150...> References: <1309169740.8721.268.camel@...2150...> Message-ID: Thanks! I wonder whether it is possible with any kind of controls to do the same thing? 2011/6/27, Caveat : > > Private allLabels as TextLabel[] > > Public Sub Test_Click() > > allLabels = New TextLabel[10] > createLabels() > deleteLabels() > tidyLabels() > > End > > Public Sub createLabels() > > Dim idx As Integer > > For idx = 0 To 9 > allLabels[idx] = New TextLabel(Me) > allLabels[idx].X = 10 > allLabels[idx].Y = 10 + (idx * 22) > allLabels[idx].Width = 450 > allLabels[idx].Height = 20 > allLabels[idx].Tag = idx > allLabels[idx].Text = "I am label " & idx > Next > > End > > Public Sub deleteLabels() > > allLabels[3].Delete > allLabels[8].Delete > > End > > Public Sub tidyLabels() > > Dim aLabel As TextLabel > Dim idx, idy As Integer > For idx = 0 To allLabels.length - 1 > If Object.IsValid(allLabels[idx]) Then > allLabels[idx].Y = 10 + (idy * 22) > Inc idy > End If > Next > > End > > Regards, > Caveat > > On Mon, 2011-06-27 at 11:41 +0200, M. Cs. wrote: >> I know how to create a label object with the >> myLabel=New Label(Fmain) sentence. But how could I create an array of >> labels in order to be able to remove them if needed? >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Mon Jun 27 22:40:00 2011 From: mohareve at ...626... (M. Cs.) Date: Mon, 27 Jun 2011 22:40:00 +0200 Subject: [Gambas-user] Create and delete labels dinamically In-Reply-To: References: <1309169740.8721.268.camel@...2150...> Message-ID: And the other remark is this is only a static solution: I need to declare the dimension of array, which is a handicap. 2011/6/27, M. Cs. : > Thanks! I wonder whether it is possible with any kind of controls to > do the same thing? > > 2011/6/27, Caveat : >> >> Private allLabels as TextLabel[] >> >> Public Sub Test_Click() >> >> allLabels = New TextLabel[10] >> createLabels() >> deleteLabels() >> tidyLabels() >> >> End >> >> Public Sub createLabels() >> >> Dim idx As Integer >> >> For idx = 0 To 9 >> allLabels[idx] = New TextLabel(Me) >> allLabels[idx].X = 10 >> allLabels[idx].Y = 10 + (idx * 22) >> allLabels[idx].Width = 450 >> allLabels[idx].Height = 20 >> allLabels[idx].Tag = idx >> allLabels[idx].Text = "I am label " & idx >> Next >> >> End >> >> Public Sub deleteLabels() >> >> allLabels[3].Delete >> allLabels[8].Delete >> >> End >> >> Public Sub tidyLabels() >> >> Dim aLabel As TextLabel >> Dim idx, idy As Integer >> For idx = 0 To allLabels.length - 1 >> If Object.IsValid(allLabels[idx]) Then >> allLabels[idx].Y = 10 + (idy * 22) >> Inc idy >> End If >> Next >> >> End >> >> Regards, >> Caveat >> >> On Mon, 2011-06-27 at 11:41 +0200, M. Cs. wrote: >>> I know how to create a label object with the >>> myLabel=New Label(Fmain) sentence. But how could I create an array of >>> labels in order to be able to remove them if needed? >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, >>> security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously >> valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From tobiasboe1 at ...20... Mon Jun 27 22:48:16 2011 From: tobiasboe1 at ...20... (tobias) Date: Mon, 27 Jun 2011 22:48:16 +0200 Subject: [Gambas-user] Create and delete labels dinamically In-Reply-To: References: <1309169740.8721.268.camel@...2150...> Message-ID: <4E08EC90.2050405@...20...> hi, well, to have a dynamic array you need functions like .Add, Remove and stuff. this means that you have to use a class that implements these functions and deals with objects. you may want to use the Object[]: DIM aLabels AS NEW Object[] DIM lblLabel AS NEW Label aLabels.Add(lblLabel) but be aware of the fact that when you create a control, you have (usually) to specify a parent so this control is shown on this parent once you created it. regards, tobi From dag.jarle.johansen at ...626... Mon Jun 27 22:53:48 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Mon, 27 Jun 2011 17:53:48 -0300 Subject: [Gambas-user] Programming, age In-Reply-To: References: <20110625131055.M75179@...951...> Message-ID: nando,sorry this is going terrible wrong Am 27. Juni 2011 15:49 schrieb Dag-Jarle Johansen < dag.jarle.johansen at ...626...>: > Hei, Rolf, > > predict you are German, Rolf is in fact a Vikinger name coming to the Saxes > about 200 years before Knut (of denmark) was the master of the empire, for a > pretty termporary piece of time. As you can imagine, I am a litte proud of > what the scandinavian managed, endeed too to conquer normandie and to manage > to still up the first of the Hendriks. These was not the danish, those were > the norwegian vikings. And as anyone in France knows - they were hard to > beat. As I have read the france history, I am proud of both. > > Und auch stolz auf den germanen, hoffentlich ohne dass du es jetzt falsch > verstehst. bin kein volksheld aus 1943. aber die germanen waren die einzige, > die den r?mern wiederstand leistern konnten - sagen wir mal barbaren. die > barbaren zogen, von nord betrachtet, nach s?dwesten, ?berrollten > sw-frankreich, hingen eine zetilang in den pyreeneen fest, zogen weiter > ?ber andalusia, dann ?ber die meerenge, und hatten ab dann den namen > vandalier. von dort zogen sie bis nach tripolis, und setzten sich fest. wo > die r?mer einige m?he hatten sie los zu werden. > > So viel zu dem namen Rolf. > Gretings, > Sag > From Karl.Reinl at ...2345... Mon Jun 27 23:10:46 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 27 Jun 2011 23:10:46 +0200 Subject: [Gambas-user] Create and delete labels dinamically In-Reply-To: References: <1309169740.8721.268.camel@...2150...> Message-ID: <1309209046.8531.40.camel@...40...> Am Montag, den 27.06.2011, 22:31 +0200 schrieb M. Cs.: > Thanks! I wonder whether it is possible with any kind of controls to > do the same thing? > > 2011/6/27, Caveat : > > > Salut, yes you can, but that's not all. CONST myGotFocusColor AS Integer = &HAAFF7F& CONST myLostFocusColor AS Integer = &HF9F9BD& PUBLIC SUB SetEditColor(oObj AS Object, objLast AS Control) DIM myControl AS String DIM hClass AS Control DIM hCont AS Container myControl = Object.Class(objLast) FOR EACH hClass IN oObj.Children ' is it like my LAST ? IF Object.Class(hClass) = myControl THEN ' only for debugging 'PRINT Object.Class(hClass) & " LAST.TAG = " & objLast.Tag & " hClass.Tag = " & hClass.Tag IF objLast.Tag = hClass.Tag THEN hClass.Background = myGotFocusColor ELSE hClass.Background = myLostFocusColor ENDIF ELSE ' TRY if it is a Container TRY hCont = hClass IF NOT ERROR THEN ' I call my self to find out if there are Cildren like my LAST SetEditColor(hClass, objLast) ENDIF ENDIF NEXT END to call like that SetEditColor(ME, LAST) Where ME can be a form or a container, and LAST a control. Mainly evoked by LAST! -- Amicalement Charlie PS that is gambas2 code From kevinfishburne at ...1887... Tue Jun 28 03:56:19 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 27 Jun 2011 21:56:19 -0400 Subject: [Gambas-user] gb3: signal 11 on formatting a date Message-ID: <4E0934C3.8080504@...1887...> Dim DateCurrent as Float DateCurrent = -1.71063190910317E+10 Print Format$(CDate(DateCurrent), "mmmm d, yyyy, hh:nn:AM/PM") I was experimenting and randomly ran across this bug. It looks like the CDate function works, but that formatting it doesn't. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Tue Jun 28 09:09:57 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 28 Jun 2011 09:09:57 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting Message-ID: <1309244998.9219.7.camel@...2150...> Create project with database support. Go to Connections in left navigation pane, New connection... Complete dialog as per attached screenshot, click on the icon to the right of Database field (should bring up an odbc selector, I reckon). Segmentation fault :-( Regards, Caveat -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-4.png Type: image/png Size: 27327 bytes Desc: not available URL: From gambas at ...1... Tue Jun 28 11:44:45 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 11:44:45 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting In-Reply-To: <1309244998.9219.7.camel@...2150...> References: <1309244998.9219.7.camel@...2150...> Message-ID: <201106281144.45284.gambas@...1...> > Create project with database support. > > Go to Connections in left navigation pane, New connection... > > Complete dialog as per attached screenshot, click on the icon to the > right of Database field (should bring up an odbc selector, I reckon). > > Segmentation fault :-( > > Regards, > Caveat Can you get a backtrace of the crash? To do that, follow the explanation of the ?5 or ?6 in the "Reporting a problem" page of the web site. Thanks in advance, Regards. -- Beno?t Minisini From gambas at ...1... Tue Jun 28 12:34:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 12:34:32 +0200 Subject: [Gambas-user] gb3: signal 11 on formatting a date In-Reply-To: <4E0934C3.8080504@...1887...> References: <4E0934C3.8080504@...1887...> Message-ID: <201106281234.32451.gambas@...1...> > Dim DateCurrent as Float > DateCurrent = -1.71063190910317E+10 > Print Format$(CDate(DateCurrent), "mmmm d, yyyy, hh:nn:AM/PM") > > I was experimenting and randomly ran across this bug. It looks like the > CDate function works, but that formatting it doesn't. Fixed in revision #3904. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jun 28 14:09:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 14:09:44 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting In-Reply-To: <201106281144.45284.gambas@...1...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> Message-ID: <201106281409.44376.gambas@...1...> > > Create project with database support. > > > > Go to Connections in left navigation pane, New connection... > > > > Complete dialog as per attached screenshot, click on the icon to the > > right of Database field (should bring up an odbc selector, I reckon). > > > > Segmentation fault :-( > > > > Regards, > > Caveat > > Can you get a backtrace of the crash? To do that, follow the explanation of > the ?5 or ?6 in the "Reporting a problem" page of the web site. > > Thanks in advance, > > Regards. The bug is fixed in revision #3907. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jun 28 14:11:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 14:11:39 +0200 Subject: [Gambas-user] Component Loading In-Reply-To: <4E0786C6.5020101@...20...> References: <4E027904.1030400@...1887...> <4E074FC7.2080501@...20...> <4E0786C6.5020101@...20...> Message-ID: <201106281411.39151.gambas@...1...> > hi, > > oh well, it's a very confusing subject in my email, i'm sorry, it's > about class loading as a preparation for component loading... > i figured it out by myself and the sources... > every class is compiled, named with capital letters without extension > put into .gambas (in my gambas2) in the project directory. and, if i saw > it right, these are also included in an executable archive. but they > have to be unpacked, too, haven't they? i searched in ./, ~/ and /tmp/ > but nothing...? > Beno?t, can you explain this to me? i get headache from reading so much > source code :) > > regards, > tobi > A gambas executable is an uncompressed archive file that is never unpacked, but accessed directly (like a filesystem) by the interpreter. What do you want to do exactly? -- Beno?t Minisini From Gambas at ...1950... Tue Jun 28 15:31:12 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 28 Jun 2011 15:31:12 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: <201106281409.44376.gambas@...1...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> Message-ID: <1309267872.3176.71.camel@...2150...> Benoit: Thanks! I can confirm the crash no longer occurs. All: I just wish I could say it's working... :-( In Gambas, I don't see any datasources to choose from when I hit the button at the right of the Database field. I can type in the name of my datasource (E4Y) but Gambas reports that it can't connect. If I try the path/file name of the mdb file directly in that field, it still can't connect. Here's my odbc.ini [E4Y] Description = Easy Driver = /usr/lib/libmdbodbc.so.0 Database = /home/caveat/dev/db/easywin.mdb The .mdb file has no password set on it. If I use open office Base, I don't have a lot more luck. It seems as if Base can indeed find the datasource (E4Y appears in the list), and open the datasource, but I don't see any of the tables that are in the mdb file. It just looks like a blank database. Going directly to the file with Gnome MDB Viewer, I can confirm that there are indeed tables and there is data in the .mdb file. But, of course, this is not going via odbc. Anyone on the list successfully using odbc (preferably on Ubuntu 64bit I guess) with any success (preferably against .mdb files)? Thanks and regards, Caveat On Tue, 2011-06-28 at 14:09 +0200, Beno?t Minisini wrote: > > > Create project with database support. > > > > > > Go to Connections in left navigation pane, New connection... > > > > > > Complete dialog as per attached screenshot, click on the icon to the > > > right of Database field (should bring up an odbc selector, I reckon). > > > > > > Segmentation fault :-( > > > > > > Regards, > > > Caveat > > > > Can you get a backtrace of the crash? To do that, follow the explanation of > > the ?5 or ?6 in the "Reporting a problem" page of the web site. > > > > Thanks in advance, > > > > Regards. > > The bug is fixed in revision #3907. > > Regards, > From tobiasboe1 at ...20... Tue Jun 28 16:48:29 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 28 Jun 2011 16:48:29 +0200 Subject: [Gambas-user] Component Loading In-Reply-To: <201106281411.39151.gambas@...1...> References: <4E027904.1030400@...1887...> <4E074FC7.2080501@...20...> <4E0786C6.5020101@...20...> <201106281411.39151.gambas@...1...> Message-ID: <4E09E9BD.2060307@...20...> hi, > What do you want to do exactly? > nothing, i just wanted to know where these compiled classes are. if i use an executable. i couldn't imagine that it is really not unpacked temporarily, but accessed directly... anyway, thanks for the answer. From ea7dfh at ...2382... Tue Jun 28 18:49:46 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Tue, 28 Jun 2011 18:49:46 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E07A6A7.6040009@...1887...> References: <4E027904.1030400@...1887...> <4E0664FC.2060004@...1887...> <201106262052.12746.gambas@...1...> <201106262109.40521.gambas@...1...> <4E07A6A7.6040009@...1887...> Message-ID: <4E0A062A.5050901@...2382...> El 26/06/11 23:37, Kevin Fishburne escribi?: > On 06/26/2011 03:09 PM, Beno?t Minisini wrote: >>>> I hope I'm really not so stupid that I'm missing something obvious. I'm >>>> not even drinking right now! >>> >>> Mmm... You're right, there's something nasty there. I'm currently >>> investigating... >> >> The bug should be fixed in revision #3900. > > Awesome, it works. Thanks! > Well. what I'm missing here? I got the same results with rev.3906: Print Format$(Now, "hh:nn") Print Format$(Now, "hh:nn AM/PM") ---- 18:36 06:36 Finally, shouldn't the last line show "AM" or "PM" at the end? > System here is Linux Mint 10 (32bit), Gnome, Gambas3 rev. #3906 with > Spanish localization, if it matters somehow. Regards -- Jesus From gambas at ...1... Tue Jun 28 19:05:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 19:05:02 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E0A062A.5050901@...2382...> References: <4E027904.1030400@...1887...> <4E07A6A7.6040009@...1887...> <4E0A062A.5050901@...2382...> Message-ID: <201106281905.02702.gambas@...1...> > > Well. what I'm missing here? > > I got the same results with rev.3906: > > Print Format$(Now, "hh:nn") > Print Format$(Now, "hh:nn AM/PM") > ---- > 18:36 > 06:36 > > Finally, shouldn't the last line show "AM" or "PM" at the end? > "AM" or "PM" are actually displayed only if your language has support for it. Otherwise, nothing is displayed. Note that AM/PM may be something else on non- english languages. -- Beno?t Minisini From mohareve at ...626... Tue Jun 28 19:27:09 2011 From: mohareve at ...626... (M. Cs.) Date: Tue, 28 Jun 2011 19:27:09 +0200 Subject: [Gambas-user] Menu over a control Message-ID: How can ? create a flying menu over a dinamically created control? I know how can I do it for static elements, but if I have an array of let say TextLabels, how can I attach a menu to each of the elements (in order to get and use X and Y coordinates of the controls) ? Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? I know it's a bit Javascriptish, but I don't know how to use one suboutine for multiple elements. It would be silly to have 100 predefined TextLabels and 100 subs PUBLIC SUB TextLabel[1]_Click() Action_Activate("mymenu") END PUBLIC SUB TextLabel[2]_Click() Action_Activate("mymenu") END ... I don't see how can Gambas manage this dinamic contents. From gambas.fr at ...626... Tue Jun 28 19:43:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 28 Jun 2011 19:43:18 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: Public sub _New() dim i as integer dim hTextLabel as TextLabel For i = 0 to 100 hTextLabel = new TextLabel(Me) as "MyText" hTextLabel.Tag = i next end Public Sub MyText_Click() select case Last.Tag Case 1 'Text1 Case 2 'Text2 'etc end end 2011/6/28 M. Cs. : > How can ? create a flying menu over a dinamically created control? > I know how can I do it for static elements, but if I have an array of > let say TextLabels, how can I attach a menu to each of the elements > (in order to get and use X and Y coordinates of the controls) ? > > Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? > I know it's a bit Javascriptish, but I don't know how to use one > suboutine for multiple elements. > > It would be silly to have 100 predefined TextLabels and 100 subs > > PUBLIC SUB TextLabel[1]_Click() > Action_Activate("mymenu") > END > > PUBLIC SUB TextLabel[2]_Click() > Action_Activate("mymenu") > END > ... > > > I don't see how can Gambas manage this dinamic contents. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ea7dfh at ...2382... Tue Jun 28 20:19:45 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Tue, 28 Jun 2011 20:19:45 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <201106281905.02702.gambas@...1...> References: <4E027904.1030400@...1887...> <4E07A6A7.6040009@...1887...> <4E0A062A.5050901@...2382...> <201106281905.02702.gambas@...1...> Message-ID: <4E0A1B41.4040007@...2382...> El 28/06/11 19:05, Beno?t Minisini escribi?: >> >> Well. what I'm missing here? >> >> I got the same results with rev.3906: >> >> Print Format$(Now, "hh:nn") >> Print Format$(Now, "hh:nn AM/PM") >> ---- >> 18:36 >> 06:36 >> >> Finally, shouldn't the last line show "AM" or "PM" at the end? >> > > "AM" or "PM" are actually displayed only if your language has support for it. > Otherwise, nothing is displayed. Note that AM/PM may be something else on non- > english languages. > I don't know the internals of locales and formats, but IIRC in Spanish the user can choose between 24h format or 12h format, which make sense on the am/pm suffix. Personally I never use it, but I was interested to see if it was a bug. Thanks anyway -- Jesus From mohareve at ...626... Tue Jun 28 20:43:26 2011 From: mohareve at ...626... (M. Cs.) Date: Tue, 28 Jun 2011 20:43:26 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: Merci Fabien! 2011/6/28, Fabien Bodard : > Public sub _New() dim i as integer > > dim hTextLabel as TextLabel > > For i = 0 to 100 > hTextLabel = new TextLabel(Me) as "MyText" > hTextLabel.Tag = i > next > end > > Public Sub MyText_Click() > > select case Last.Tag > Case 1 > 'Text1 > Case 2 > 'Text2 > 'etc > end > end > > > > 2011/6/28 M. Cs. : >> How can ? create a flying menu over a dinamically created control? >> I know how can I do it for static elements, but if I have an array of >> let say TextLabels, how can I attach a menu to each of the elements >> (in order to get and use X and Y coordinates of the controls) ? >> >> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >> I know it's a bit Javascriptish, but I don't know how to use one >> suboutine for multiple elements. >> >> It would be silly to have 100 predefined TextLabels and 100 subs >> >> PUBLIC SUB TextLabel[1]_Click() >> Action_Activate("mymenu") >> END >> >> PUBLIC SUB TextLabel[2]_Click() >> Action_Activate("mymenu") >> END >> ... >> >> >> I don't see how can Gambas manage this dinamic contents. >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 28 23:13:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 28 Jun 2011 23:13:51 +0200 Subject: [Gambas-user] gb3: Format$ In-Reply-To: <4E0A1B41.4040007@...2382...> References: <4E027904.1030400@...1887...> <201106281905.02702.gambas@...1...> <4E0A1B41.4040007@...2382...> Message-ID: <201106282313.51640.gambas@...1...> > El 28/06/11 19:05, Beno?t Minisini escribi?: > >> Well. what I'm missing here? > >> > >> I got the same results with rev.3906: > >> Print Format$(Now, "hh:nn") > >> Print Format$(Now, "hh:nn AM/PM") > >> > >> ---- > >> 18:36 > >> 06:36 > >> > >> Finally, shouldn't the last line show "AM" or "PM" at the end? > > > > "AM" or "PM" are actually displayed only if your language has support for > > it. Otherwise, nothing is displayed. Note that AM/PM may be something > > else on non- english languages. > > I don't know the internals of locales and formats, but IIRC in Spanish > the user can choose between 24h format or 12h format, which make sense > on the am/pm suffix. Personally I never use it, but I was interested to > see if it was a bug. > > Thanks anyway Apparently I can't decide that. I just ask the GNU C library to give me the AM/PM string for the current language. And for french and spanish, I get a null string. But maybe there is option somewhere I am not aware of! -- Beno?t Minisini From gambas at ...2524... Wed Jun 29 01:45:18 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 Jun 2011 23:45:18 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <3-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #4 on issue 1 by benoit.m... at ...626...: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 29 01:49:24 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 Jun 2011 23:49:24 +0000 Subject: [Gambas-user] Issue 68 in gambas: ./reconf-all error In-Reply-To: <1-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> <0-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11957316179264655820-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #2 on issue 68 by benoit.m... at ...626...: ./reconf-all error http://code.google.com/p/gambas/issues/detail?id=68 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 29 01:53:33 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 Jun 2011 23:53:33 +0000 Subject: [Gambas-user] Issue 69 in gambas: Application.ToolTip.Enable = False fails on gtk+ In-Reply-To: <0-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 69 by benoit.m... at ...626...: Application.ToolTip.Enable = False fails on gtk+ http://code.google.com/p/gambas/issues/detail?id=69 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 29 01:57:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 28 Jun 2011 23:57:10 +0000 Subject: [Gambas-user] Issue 70 in gambas: Package build wizard increments project version number of project being built In-Reply-To: <0-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17793397984591684499-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 70 by benoit.m... at ...626...: Package build wizard increments project version number of project being built http://code.google.com/p/gambas/issues/detail?id=70 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 29 02:01:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jun 2011 00:01:20 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <2-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-2.22.0 Comment #3 on issue 71 by benoit.m... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 (No comment was entered for this change.) From gambas at ...2524... Wed Jun 29 02:05:29 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jun 2011 00:05:29 +0000 Subject: [Gambas-user] Issue 69 in gambas: Application.ToolTip.Enable = False fails on gtk+ In-Reply-To: <1-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> <0-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Updates: Labels: -GUI-Any GUI-GTK Comment #2 on issue 69 by benoit.m... at ...626...: Application.ToolTip.Enable = False fails on gtk+ http://code.google.com/p/gambas/issues/detail?id=69 (No comment was entered for this change.) From kevinfishburne at ...1887... Wed Jun 29 03:43:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 28 Jun 2011 21:43:09 -0400 Subject: [Gambas-user] gb3: signal 11 on formatting a date In-Reply-To: <201106281234.32451.gambas@...1...> References: <4E0934C3.8080504@...1887...> <201106281234.32451.gambas@...1...> Message-ID: <4E0A832D.1030303@...1887...> On 06/28/2011 06:34 AM, Beno?t Minisini wrote: >> Dim DateCurrent as Float >> DateCurrent = -1.71063190910317E+10 >> Print Format$(CDate(DateCurrent), "mmmm d, yyyy, hh:nn:AM/PM") >> >> I was experimenting and randomly ran across this bug. It looks like the >> CDate function works, but that formatting it doesn't. > > Fixed in revision #3904. Confirmed, thanks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From mohareve at ...626... Wed Jun 29 09:20:28 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 09:20:28 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: Still I have a problem: If I create TextLabels as you told me, I can get their tags, so I can identify them, but cannot remove them. In other case if I create them as a TextLabel[], I can add and remove them, but cannot figure which one of them has been clicked. How to make both of the option usable? 2011/6/28, M. Cs. : > Merci Fabien! > > 2011/6/28, Fabien Bodard : >> Public sub _New() dim i as integer >> >> dim hTextLabel as TextLabel >> >> For i = 0 to 100 >> hTextLabel = new TextLabel(Me) as "MyText" >> hTextLabel.Tag = i >> next >> end >> >> Public Sub MyText_Click() >> >> select case Last.Tag >> Case 1 >> 'Text1 >> Case 2 >> 'Text2 >> 'etc >> end >> end >> >> >> >> 2011/6/28 M. Cs. : >>> How can ? create a flying menu over a dinamically created control? >>> I know how can I do it for static elements, but if I have an array of >>> let say TextLabels, how can I attach a menu to each of the elements >>> (in order to get and use X and Y coordinates of the controls) ? >>> >>> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >>> I know it's a bit Javascriptish, but I don't know how to use one >>> suboutine for multiple elements. >>> >>> It would be silly to have 100 predefined TextLabels and 100 subs >>> >>> PUBLIC SUB TextLabel[1]_Click() >>> Action_Activate("mymenu") >>> END >>> >>> PUBLIC SUB TextLabel[2]_Click() >>> Action_Activate("mymenu") >>> END >>> ... >>> >>> >>> I don't see how can Gambas manage this dinamic contents. >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, >>> security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously >> valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From mohareve at ...626... Wed Jun 29 09:55:03 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 09:55:03 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: Thaa,...I've managed to solve this problem, but ran into another: Menus. Once I had simply to create menu with: mymenu=New Menu(FMain) mysub1=New Menu(mymenu) mysub1.Text="Item1" mysub1.Action="Action1" mymenu.popup() And it worked like a charm. Now in G3 it says after the popup there's no return value(???) Really G3 is a new language! 2011/6/29, M. Cs. : > Still I have a problem: > > If I create TextLabels as you told me, I can get their tags, so I can > identify them, but cannot remove them. In other case if I create them > as a TextLabel[], I can add and remove them, but cannot figure which > one of them has been clicked. How to make both of the option usable? > > 2011/6/28, M. Cs. : >> Merci Fabien! >> >> 2011/6/28, Fabien Bodard : >>> Public sub _New() dim i as integer >>> >>> dim hTextLabel as TextLabel >>> >>> For i = 0 to 100 >>> hTextLabel = new TextLabel(Me) as "MyText" >>> hTextLabel.Tag = i >>> next >>> end >>> >>> Public Sub MyText_Click() >>> >>> select case Last.Tag >>> Case 1 >>> 'Text1 >>> Case 2 >>> 'Text2 >>> 'etc >>> end >>> end >>> >>> >>> >>> 2011/6/28 M. Cs. : >>>> How can ? create a flying menu over a dinamically created control? >>>> I know how can I do it for static elements, but if I have an array of >>>> let say TextLabels, how can I attach a menu to each of the elements >>>> (in order to get and use X and Y coordinates of the controls) ? >>>> >>>> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >>>> I know it's a bit Javascriptish, but I don't know how to use one >>>> suboutine for multiple elements. >>>> >>>> It would be silly to have 100 predefined TextLabels and 100 subs >>>> >>>> PUBLIC SUB TextLabel[1]_Click() >>>> Action_Activate("mymenu") >>>> END >>>> >>>> PUBLIC SUB TextLabel[2]_Click() >>>> Action_Activate("mymenu") >>>> END >>>> ... >>>> >>>> >>>> I don't see how can Gambas manage this dinamic contents. >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and >>>> makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, >>> security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From tobiasboe1 at ...20... Wed Jun 29 09:54:44 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 29 Jun 2011 09:54:44 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: <4E0ADA44.9010403@...20...> hi, > If I create TextLabels as you told me, I can get their tags, so I can > identify them, but cannot remove them. oh, of course, you can: LAST.Delete() > if I create them > as a TextLabel[], I can add and remove them, but cannot figure which > one of them has been clicked. How to make both of the option usable? if you didn't know of Control.Delete(), i suppose, you removed them only from the array using Array.Remove() but in this case, the TextLabel is still on the form. how do you create the array? in a similar way as you create the labels and add them to the action group: DIM lblLabel AS Label DIM aLabels AS NEW Object[] DIM i AS Integer FOR i = 0 TO 100 STEP 1 lblLabel = NEW Label(ME) 'AS "MyText" aLabels.Add(lblLabel) NEXT in this case, of course, you cannot figure out, which one is clicked, because they even haven't got a Click()-Event-Handler. add one just as fabien did (it's commented out in the source above) and your event handler would be like: PUBLIC SUB MyText_Click() LAST.Delete() END regards, tobi From eilert-sprachen at ...221... Wed Jun 29 10:02:23 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 29 Jun 2011 10:02:23 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: Message-ID: <4E0ADC0F.1080000@...221...> Yes, that would be a problem, but there is LAST to handle this: LAST.Tag would give you the tag of the object which was clicked last. You will identify the correct type of object by its name of origin "MyText". Now you can insert Public SUB MyText_Click() When you type LAST. you will get the list of options here and can be sure to react to the right object as it is defined by "MyText". Rolf Am 29.06.2011 09:20, schrieb M. Cs.: > Still I have a problem: > > If I create TextLabels as you told me, I can get their tags, so I can > identify them, but cannot remove them. In other case if I create them > as a TextLabel[], I can add and remove them, but cannot figure which > one of them has been clicked. How to make both of the option usable? > > 2011/6/28, M. Cs.: >> Merci Fabien! >> >> 2011/6/28, Fabien Bodard: >>> Public sub _New() dim i as integer >>> >>> dim hTextLabel as TextLabel >>> >>> For i = 0 to 100 >>> hTextLabel = new TextLabel(Me) as "MyText" >>> hTextLabel.Tag = i >>> next >>> end >>> >>> Public Sub MyText_Click() >>> >>> select case Last.Tag >>> Case 1 >>> 'Text1 >>> Case 2 >>> 'Text2 >>> 'etc >>> end >>> end >>> >>> >>> >>> 2011/6/28 M. Cs.: >>>> How can ? create a flying menu over a dinamically created control? >>>> I know how can I do it for static elements, but if I have an array of >>>> let say TextLabels, how can I attach a menu to each of the elements >>>> (in order to get and use X and Y coordinates of the controls) ? >>>> >>>> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >>>> I know it's a bit Javascriptish, but I don't know how to use one >>>> suboutine for multiple elements. >>>> >>>> It would be silly to have 100 predefined TextLabels and 100 subs >>>> >>>> PUBLIC SUB TextLabel[1]_Click() >>>> Action_Activate("mymenu") >>>> END >>>> >>>> PUBLIC SUB TextLabel[2]_Click() >>>> Action_Activate("mymenu") >>>> END >>>> ... >>>> >>>> >>>> I don't see how can Gambas manage this dinamic contents. >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Wed Jun 29 10:27:50 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 10:27:50 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: <4E0ADC0F.1080000@...221...> References: <4E0ADC0F.1080000@...221...> Message-ID: Can you give me a menu example for Gambas3, since the Gambas2 way of doing it doesn't work? Thanks 2011/6/29, Rolf-Werner Eilert : > Yes, that would be a problem, but there is LAST to handle this: > > LAST.Tag would give you the tag of the object which was clicked last. > You will identify the correct type of object by its name of origin "MyText". > > Now you can insert > > Public SUB MyText_Click() > > When you type LAST. you will get the list of options here and can be > sure to react to the right object as it is defined by "MyText". > > Rolf > > > Am 29.06.2011 09:20, schrieb M. Cs.: >> Still I have a problem: >> >> If I create TextLabels as you told me, I can get their tags, so I can >> identify them, but cannot remove them. In other case if I create them >> as a TextLabel[], I can add and remove them, but cannot figure which >> one of them has been clicked. How to make both of the option usable? >> >> 2011/6/28, M. Cs.: >>> Merci Fabien! >>> >>> 2011/6/28, Fabien Bodard: >>>> Public sub _New() dim i as integer >>>> >>>> dim hTextLabel as TextLabel >>>> >>>> For i = 0 to 100 >>>> hTextLabel = new TextLabel(Me) as "MyText" >>>> hTextLabel.Tag = i >>>> next >>>> end >>>> >>>> Public Sub MyText_Click() >>>> >>>> select case Last.Tag >>>> Case 1 >>>> 'Text1 >>>> Case 2 >>>> 'Text2 >>>> 'etc >>>> end >>>> end >>>> >>>> >>>> >>>> 2011/6/28 M. Cs.: >>>>> How can ? create a flying menu over a dinamically created control? >>>>> I know how can I do it for static elements, but if I have an array of >>>>> let say TextLabels, how can I attach a menu to each of the elements >>>>> (in order to get and use X and Y coordinates of the controls) ? >>>>> >>>>> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >>>>> I know it's a bit Javascriptish, but I don't know how to use one >>>>> suboutine for multiple elements. >>>>> >>>>> It would be silly to have 100 predefined TextLabels and 100 subs >>>>> >>>>> PUBLIC SUB TextLabel[1]_Click() >>>>> Action_Activate("mymenu") >>>>> END >>>>> >>>>> PUBLIC SUB TextLabel[2]_Click() >>>>> Action_Activate("mymenu") >>>>> END >>>>> ... >>>>> >>>>> >>>>> I don't see how can Gambas manage this dinamic contents. >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, >>>>> security >>>>> threats, fraudulent activity, and more. Splunk takes this data and >>>>> makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rolf.frogs at ...221... Wed Jun 29 10:29:07 2011 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Wed, 29 Jun 2011 10:29:07 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: <1309267872.3176.71.camel@...2150...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> Message-ID: <4E0AE253.70001@...2594...> Caveat: ODBC is not the problem. The problem is an odbc driver for mdb-files > The .mdb file has no password set on it. As far as I could see there is a very limited version of the driver available. Do you have "libmdbodbc" installed? Can you access your mdb file with the "MDB File Viewer" i.e. have you install the mdbtools (incl. mdbtools-gmdb - which has the MDB-File-Viewer). HTH Rolf From eilert-sprachen at ...221... Wed Jun 29 11:10:33 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 29 Jun 2011 11:10:33 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: References: <4E0ADC0F.1080000@...221...> Message-ID: <4E0AEC09.3050309@...221...> Due to technical reasons, I have not worked with Gambas3 yet. So I cannot give you a Gambas3 "real life" example. But I will read the answers of the other guys here to (hopefully) keep in mind once I'll start with it :-) Rolf Am 29.06.2011 10:27, schrieb M. Cs.: > Can you give me a menu example for Gambas3, since the Gambas2 way of > doing it doesn't work? > Thanks > > 2011/6/29, Rolf-Werner Eilert: >> Yes, that would be a problem, but there is LAST to handle this: >> >> LAST.Tag would give you the tag of the object which was clicked last. >> You will identify the correct type of object by its name of origin "MyText". >> >> Now you can insert >> >> Public SUB MyText_Click() >> >> When you type LAST. you will get the list of options here and can be >> sure to react to the right object as it is defined by "MyText". >> >> Rolf >> >> >> Am 29.06.2011 09:20, schrieb M. Cs.: >>> Still I have a problem: >>> >>> If I create TextLabels as you told me, I can get their tags, so I can >>> identify them, but cannot remove them. In other case if I create them >>> as a TextLabel[], I can add and remove them, but cannot figure which >>> one of them has been clicked. How to make both of the option usable? >>> >>> 2011/6/28, M. Cs.: >>>> Merci Fabien! >>>> >>>> 2011/6/28, Fabien Bodard: >>>>> Public sub _New() dim i as integer >>>>> >>>>> dim hTextLabel as TextLabel >>>>> >>>>> For i = 0 to 100 >>>>> hTextLabel = new TextLabel(Me) as "MyText" >>>>> hTextLabel.Tag = i >>>>> next >>>>> end >>>>> >>>>> Public Sub MyText_Click() >>>>> >>>>> select case Last.Tag >>>>> Case 1 >>>>> 'Text1 >>>>> Case 2 >>>>> 'Text2 >>>>> 'etc >>>>> end >>>>> end >>>>> >>>>> >>>>> >>>>> 2011/6/28 M. Cs.: >>>>>> How can ? create a flying menu over a dinamically created control? >>>>>> I know how can I do it for static elements, but if I have an array of >>>>>> let say TextLabels, how can I attach a menu to each of the elements >>>>>> (in order to get and use X and Y coordinates of the controls) ? >>>>>> >>>>>> Is It possible to use Object.Attach(Me,container,"ArrayClick("&i&")")? >>>>>> I know it's a bit Javascriptish, but I don't know how to use one >>>>>> suboutine for multiple elements. >>>>>> >>>>>> It would be silly to have 100 predefined TextLabels and 100 subs >>>>>> >>>>>> PUBLIC SUB TextLabel[1]_Click() >>>>>> Action_Activate("mymenu") >>>>>> END >>>>>> >>>>>> PUBLIC SUB TextLabel[2]_Click() >>>>>> Action_Activate("mymenu") >>>>>> END >>>>>> ... >>>>>> >>>>>> >>>>>> I don't see how can Gambas manage this dinamic contents. >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. >>>>>> Why? It contains a definitive record of application performance, >>>>>> security >>>>>> threats, fraudulent activity, and more. Splunk takes this data and >>>>>> makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, >>>>> security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Jun 29 11:24:08 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jun 2011 09:24:08 +0000 Subject: [Gambas-user] Issue 69 in gambas: Application.ToolTip.Enable = False fails on gtk+ In-Reply-To: <2-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> <0-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3490839156040570652-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 69 by benoit.m... at ...626...: Application.ToolTip.Enable = False fails on gtk+ http://code.google.com/p/gambas/issues/detail?id=69 The problem has been fixed in revision #3910. The Application.Tooltip property has been removed, because of the difference between GTK+ and QT4 about tooltips. It has been replaced by the Application.ShowTooltips property, that define if tooltips must be visible or not. From tobiasboe1 at ...20... Wed Jun 29 11:59:07 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 29 Jun 2011 11:59:07 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: <4E0AEC09.3050309@...221...> References: <4E0ADC0F.1080000@...221...> <4E0AEC09.3050309@...221...> Message-ID: <4E0AF76B.9010901@...20...> hi, i just installed kubuntu 11.04 yesterday, i couldn't compile gambas3 with my old ubuntu... i hope, i can figure it out at home, if your questions isn't answered then :) From mohareve at ...626... Wed Jun 29 13:09:46 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 13:09:46 +0200 Subject: [Gambas-user] Menu over a control In-Reply-To: <4E0AF76B.9010901@...20...> References: <4E0ADC0F.1080000@...221...> <4E0AEC09.3050309@...221...> <4E0AF76B.9010901@...20...> Message-ID: OK. I found that I have to put PUBLIC SUB Action_Activate(key as string) AS Boolean in order to get dinamical menus to work. The As Boolean wasn't present in G2. 2011/6/29, tobias : > hi, > > i just installed kubuntu 11.04 yesterday, i couldn't compile gambas3 > with my old ubuntu... > i hope, i can figure it out at home, if your questions isn't answered > then :) > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 07.rain at ...626... Wed Jun 29 14:55:03 2011 From: 07.rain at ...626... (Titan Rain) Date: Wed, 29 Jun 2011 08:55:03 -0400 Subject: [Gambas-user] Tabstrip - adding tabs with controls In-Reply-To: References: Message-ID: <20110629085503.113dd66d.07.rain@...626...> I'm trying to use a tabstrip to contain a textarea and other controls. So far I have the following which checks if a tab exists and if it doesn't it adds a new tab, and creates a textarea in that tab. But the textarea is not visible until another tab is created. Any suggestion as to why? PUBLIC SUB Button1_Click() DIM i AS Integer DIM ta AS TextArea FOR i = 0 TO TabStrip1.Count - 1 IF TabStrip1[i].Text = TextBox1.Text TabStrip1.Index = i RETURN ENDIF NEXT TabStrip1.Count += 1 TabStrip1[TabStrip1.Count - 1].Text = TextBox1.Text ta = NEW TextArea(TabStrip1) AS "TextArea" & CStr(TabStrip1.Count - 1) TabStrip1.Index = TabStrip1.Count - 1 END From gambas at ...1... Wed Jun 29 14:59:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jun 2011 14:59:36 +0200 Subject: [Gambas-user] Tabstrip - adding tabs with controls In-Reply-To: <20110629085503.113dd66d.07.rain@...626...> References: <20110629085503.113dd66d.07.rain@...626...> Message-ID: <201106291459.36195.gambas@...1...> > I'm trying to use a tabstrip to contain a textarea and other controls. > So far I have the following which checks if a tab exists and if it > doesn't it adds a new tab, and creates a textarea in that tab. > But the textarea is not visible until another tab is created. Any > suggestion as to why? > > PUBLIC SUB Button1_Click() > DIM i AS Integer > DIM ta AS TextArea > > FOR i = 0 TO TabStrip1.Count - 1 > IF TabStrip1[i].Text = TextBox1.Text > TabStrip1.Index = i > RETURN > ENDIF > NEXT > TabStrip1.Count += 1 > TabStrip1[TabStrip1.Count - 1].Text = TextBox1.Text > ta = NEW TextArea(TabStrip1) AS "TextArea" & CStr(TabStrip1.Count - 1) > TabStrip1.Index = TabStrip1.Count - 1 > END > 1) The TextArea is put into the current tab, not necessarily the last one. 2) If you don't give a size to your TextArea, you won't see it. Regards, -- Beno?t Minisini From Gambas at ...1950... Wed Jun 29 15:22:59 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 29 Jun 2011 15:22:59 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: <4E0AE253.70001@...2594...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> <4E0AE253.70001@...2594...> Message-ID: <1309353779.2901.7.camel@...2150...> Hi Rolf, Many thanks for the reply. Yes, I do have libmdbodbc installed, and the mdbtools. The Gnome MDB Viewer I mention is just a kind of GUI wrapper on top of the mdbtools MDB File Viewer, and that is all working fine. I see tables, reports, forms, and macros in the database. I have the mdb odbc driver installed (libmdbodbc.so.0) and an entry defined in odbc.ini as per my previous mail, but it seems Gambas3 can't even see that entry. So my question is intended as a kind of sanity-check... does someone else have odbc working with Gambas3? Thanks and regards, Caveat On Wed, 2011-06-29 at 10:29 +0200, Rolf Schmidt wrote: > Caveat: > > ODBC is not the problem. > The problem is an odbc driver for mdb-files > > > The .mdb file has no password set on it. > > As far as I could see there is a very limited version of the driver > available. > Do you have "libmdbodbc" installed? Can you access your mdb file with > the "MDB File Viewer" i.e. have you install the mdbtools (incl. > mdbtools-gmdb - which has the MDB-File-Viewer). > > HTH > Rolf From sotema at ...626... Wed Jun 29 15:46:25 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 29 Jun 2011 15:46:25 +0200 Subject: [Gambas-user] rev 3910: gb.sdl component is disable Message-ID: <1309355185.4660.5.camel@...2516...> Running configure -C on rev 3910 results in gb.sdl component disabled. In config.log i found : conftest.c:21:28: error: ac_nonexistent.h: No such file or directory SYSOP: Ubuntu 10.10 x86_64 DE : Gnome config.log attached for sdl component -------------- next part -------------- A non-text attachment was scrubbed... Name: sdl_config.log.gz Type: application/x-gzip Size: 7386 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Wed Jun 29 15:50:26 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 29 Jun 2011 15:50:26 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: <1309353779.2901.7.camel@...2150...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> <4E0AE253.70001@...2594...> <1309353779.2901.7.camel@...2150...> Message-ID: Hi Caveat, You can look for Ian Roper in this mailing list. I remember he was to be able to to. go http://sourceforge.net/mailarchive/message.php?msg_id=26630386 Regards, Ricardo D?az 2011/6/29 Caveat > Hi Rolf, > > Many thanks for the reply. Yes, I do have libmdbodbc installed, and the > mdbtools. The Gnome MDB Viewer I mention is just a kind of GUI wrapper > on top of the mdbtools MDB File Viewer, and that is all working fine. > > I see tables, reports, forms, and macros in the database. > > I have the mdb odbc driver installed (libmdbodbc.so.0) and an entry > defined in odbc.ini as per my previous mail, but it seems Gambas3 can't > even see that entry. > > So my question is intended as a kind of sanity-check... does someone > else have odbc working with Gambas3? > > Thanks and regards, > Caveat > > > On Wed, 2011-06-29 at 10:29 +0200, Rolf Schmidt wrote: > > Caveat: > > > > ODBC is not the problem. > > The problem is an odbc driver for mdb-files > > > > > The .mdb file has no password set on it. > > > > As far as I could see there is a very limited version of the driver > > available. > > Do you have "libmdbodbc" installed? Can you access your mdb file with > > the "MDB File Viewer" i.e. have you install the mdbtools (incl. > > mdbtools-gmdb - which has the MDB-File-Viewer). > > > > HTH > > Rolf > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 07.rain at ...626... Wed Jun 29 16:01:33 2011 From: 07.rain at ...626... (Titan Rain) Date: Wed, 29 Jun 2011 10:01:33 -0400 Subject: [Gambas-user] Tabstrip - adding tabs with controls In-Reply-To: References: Message-ID: <20110629100133.ff9191cb.07.rain@...626...> Thank you Benoit. I had set the arrangement property of the tabstrip to fill so I was expecting it to resize the textarea. By switching to the new tab first and assigning a size to the textarea everything works as intended. Thank you again. From gwalborn at ...626... Wed Jun 29 16:09:07 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Wed, 29 Jun 2011 10:09:07 -0400 Subject: [Gambas-user] _unknown method with properties Message-ID: Benoit (and all), Thank you very much for your reply. I installed Gambas3 and it does, indeed, handle properties properly with the _unknown method. I shall shift my development to Gambas3 in the hopes that it will be released before my project must be released. :-) As to my other question, I have a library that I need to use with Gambas that has global external variables that I must access. I don't see any way to declare a variable as external, only subroutines. Does such a facility exist in Gambas 3. What I need is something like: EXTERN intReturnCode AS Integer IN "mylibrary" Thanks again for your help! -- Gary D. Walborn gwalborn at ...626... From gambas at ...1... Wed Jun 29 16:17:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jun 2011 16:17:00 +0200 Subject: [Gambas-user] _unknown method with properties In-Reply-To: References: Message-ID: <201106291617.00912.gambas@...1...> > Benoit (and all), > > Thank you very much for your reply. I installed Gambas3 and it does, > indeed, handle properties properly with the _unknown method. I shall shift > my development to Gambas3 in the hopes that it will be released before my > project must be released. :-) > > As to my other question, I have a library that I need to use with Gambas > that has global external variables that I must access. I don't see any way > to declare a variable as external, only subroutines. Does such a facility > exist in Gambas 3. What I need is something like: > > EXTERN intReturnCode AS Integer IN "mylibrary" > > Thanks again for your help! That syntax has not been implemented yet (maybe in a future version), so you have to use the following method instead: System.GetExternSymbol("library", "symbol") Regards, -- Beno?t Minisini From gambas at ...2524... Wed Jun 29 16:21:12 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 29 Jun 2011 14:21:12 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <3-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #4 on issue 71 by islamph... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 still the error there...i upgarded to 2.23 but the error remains... From gwalborn at ...626... Wed Jun 29 16:30:10 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Wed, 29 Jun 2011 10:30:10 -0400 Subject: [Gambas-user] External library variable Message-ID: Benoit, You come through again! I really don't care about the syntax. I'm vary pleased that there is a mechanism to do this. I was afraid I'd have to write a wrapper to duplicate the original library calls and add accessor function for the variables. If the system call works, it will save me a ton of work! Thank you SO MUCH for all your help. -- Gary D. Walborn gwalborn at ...626... From mohareve at ...626... Wed Jun 29 17:03:09 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 17:03:09 +0200 Subject: [Gambas-user] External library variable In-Reply-To: References: Message-ID: "I really don't care about the syntax." But I do! I'm really appreciated with the work of the Gambas team, but I'd like to express that the synthax is a quite important thing: 1. Compatibility with G2 projects 2. Time, a lot of times to spend hunting to find the changes, and the solutions for the methods you've used just like that in G2 and now in G3 not. A simple example: in G2 there was enough to write a function in order to have things printed out, now in G3 there are at least 2-3 subroutines for the same task. IMHO this isn't as good a strategy. I don't care what lies behind the synthax, but it's not really efficient thing to learn the language over and over. Once again, Gambas is GREAT, but it would be better to leave the synthax unchanged. Csaba 2011/6/29, Gary D Walborn : > Benoit, > > You come through again! I really don't care about the syntax. I'm vary > pleased that there is a mechanism to do this. I was afraid I'd have to > write a wrapper to duplicate the original library calls and add accessor > function for the variables. If the system call works, it will save me a ton > of work! Thank you SO MUCH for all your help. > > -- > Gary D. Walborn > gwalborn at ...626... > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jun 29 17:11:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jun 2011 17:11:29 +0200 Subject: [Gambas-user] External library variable In-Reply-To: References: Message-ID: <201106291711.29465.gambas@...1...> > "I really don't care about the syntax." > But I do! I'm really appreciated with the work of the Gambas team, but > I'd like to express that the synthax is a quite important thing: > 1. Compatibility with G2 projects > 2. Time, a lot of times to spend hunting to find the changes, and the > solutions for the methods you've used just like that in G2 and now in > G3 not. > A simple example: in G2 there was enough to write a function in order > to have things printed out, now in G3 there are at least 2-3 > subroutines for the same task. > IMHO this isn't as good a strategy. I don't care what lies behind the > synthax, but it's not really efficient thing to learn the language > over and over. > Once again, Gambas is GREAT, but it would be better to leave the > synthax unchanged. > Csaba > I don't change the syntax just by fun. The old printer syntax was not event-loop friendly (i.e. it was blocking the GUI), so it was bad, and so I changed it. There is a page in the wiki that aims at listing all changes between Gambas 2 and Gambas 3. Some of them are automatically handled by the IDE when converting a project. If something is missing in that list, just tell me and I will fix it. Regards, -- Beno?t Minisini From Gambas at ...1950... Wed Jun 29 17:54:11 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 29 Jun 2011 17:54:11 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> <4E0AE253.70001@...2594...> <1309353779.2901.7.camel@...2150...> Message-ID: <1309362851.2399.3.camel@...2150...> Thanks Ricardo I just tried back in Gambas2 and got a sig11 I used PRIVATE myDB as NEW Connection ... WITH myDB .Type = "odbc" .Host = "localhost" .Login = "Admin" .Name = "E4Y" END WITH TRY myDB.Open I think it may be time to give up on Gambas (for *this* task) and look at Java. Regards, Caveat On Wed, 2011-06-29 at 15:50 +0200, Ricardo D?az Mart?n wrote: > Hi Caveat, > > You can look for Ian Roper in this mailing list. I remember he was to > be able to to. > > go http://sourceforge.net/mailarchive/message.php?msg_id=26630386 > > Regards, > Ricardo D?az > > 2011/6/29 Caveat > Hi Rolf, > > Many thanks for the reply. Yes, I do have libmdbodbc > installed, and the > mdbtools. The Gnome MDB Viewer I mention is just a kind of > GUI wrapper > on top of the mdbtools MDB File Viewer, and that is all > working fine. > > I see tables, reports, forms, and macros in the database. > > I have the mdb odbc driver installed (libmdbodbc.so.0) and an > entry > defined in odbc.ini as per my previous mail, but it seems > Gambas3 can't > even see that entry. > > So my question is intended as a kind of sanity-check... does > someone > else have odbc working with Gambas3? > > Thanks and regards, > Caveat > > > > On Wed, 2011-06-29 at 10:29 +0200, Rolf Schmidt wrote: > > Caveat: > > > > ODBC is not the problem. > > The problem is an odbc driver for mdb-files > > > > > The .mdb file has no password set on it. > > > > As far as I could see there is a very limited version of the > driver > > available. > > Do you have "libmdbodbc" installed? Can you access your mdb > file with > > the "MDB File Viewer" i.e. have you install the mdbtools > (incl. > > mdbtools-gmdb - which has the MDB-File-Viewer). > > > > HTH > > Rolf > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is > seriously valuable. > Why? It contains a definitive record of application > performance, security > threats, fraudulent activity, and more. Splunk takes this data > and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From lordheavym at ...626... Wed Jun 29 17:58:58 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 29 Jun 2011 17:58:58 +0200 Subject: [Gambas-user] rev 3910: gb.sdl component is disable In-Reply-To: <1309355185.4660.5.camel@...2516...> References: <1309355185.4660.5.camel@...2516...> Message-ID: <4439854.ENeuX6ryfG@...2592...> Le Wednesday 29 June 2011 15:46:25, Emanuele Sottocorno a ?crit : > Running configure -C on rev 3910 results in gb.sdl component disabled. > In config.log i found : > conftest.c:21:28: error: ac_nonexistent.h: No such file or directory > > SYSOP: Ubuntu 10.10 x86_64 > DE : Gnome > > config.log attached for sdl component You should try to do a ./reconf before, because configure.ac file was modified ++ From sotema at ...626... Wed Jun 29 21:03:48 2011 From: sotema at ...626... (sotema at ...626...) Date: Wed, 29 Jun 2011 19:03:48 +0000 Subject: [Gambas-user] rev 3910: gb.sdl component is disable Message-ID: <2015729546-1309374227-cardhu_decombobulator_blackberry.rim.net-822408696-@...2611...> Did you mean ./reconf-all at svn co? I did it Or what else Le mail ti raggiungono ovunque con BlackBerry? from Vodafone! From mohareve at ...626... Wed Jun 29 22:01:15 2011 From: mohareve at ...626... (M. Cs.) Date: Wed, 29 Jun 2011 22:01:15 +0200 Subject: [Gambas-user] Dinamic lines Message-ID: Hi, I need a clear explanation how does the printing in G3 works. All I want is to have a button clicked and afterwards a grid of changeable number of lines to be drawn over a picture, like some kind of guides implemented in Inkscape. I know in G3 there are some events during the printing regardless to the destination of the printing: Begin, Draw and End. The problem with included examples are that they are done with built-in components of printer, DrawArea etc. So I cannot discover how to do the things. There would be few bricks to discover which are badly missed in examples: How to draw a line How to draw a text How to do it on a printer How to do it on a canvas How to make lines removable I don't need complex projects with proportions, resizing etc., since I can do it alone. I need the synthax. I'm sorry, I'm a teacher, so take this as a complaint of a teacher who's thinking with the head of a student: the examples are difficult to analize. Thanks Csaba From gambas at ...1... Wed Jun 29 22:04:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jun 2011 22:04:53 +0200 Subject: [Gambas-user] Dinamic lines In-Reply-To: References: Message-ID: <201106292204.53459.gambas@...1...> > Hi, > I need a clear explanation how does the printing in G3 works. > All I want is to have a button clicked and afterwards a grid of > changeable number of lines to be drawn over a picture, like some kind > of guides implemented in Inkscape. I know in G3 there are some events > during the printing regardless to the destination of the printing: > Begin, Draw and End. The problem with included examples are that they > are done with built-in components of printer, DrawArea etc. So I > cannot discover how to do the things. There would be few bricks to > discover which are badly missed in examples: > How to draw a line > How to draw a text > How to do it on a printer > How to do it on a canvas > How to make lines removable > I don't need complex projects with proportions, resizing etc., since > I can do it alone. I need the synthax. I'm sorry, I'm a teacher, so > take this as a complaint of a teacher who's thinking with the head of > a student: the examples are difficult to analize. > Thanks > > Csaba > Did you read the Printing example source code? Did you find it too complex? -- Beno?t Minisini From fabianfloresvadell at ...626... Wed Jun 29 22:10:16 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Wed, 29 Jun 2011 17:10:16 -0300 Subject: [Gambas-user] a observer in a form can't catch an event from other class Message-ID: Hi everybody. I have this: 'Class A: Singleton Create Static Public Sub _new() If Object.Class(Me).Count > 1 Then Error.Raise("Just use my class name to get access to my members") End Event Change Static Public Sub Main() Me.doSomething End Public Sub doSomething() 'Do something else Raise Change End And I have a Form with this code: 'FormB $obsClassA As Observer Public Sub _new() 'Dim aux As ClassA = Object.Class(GameBoard).AutoCreate() 'Dim aux As ClassA = Object.Class(GameBoard).instance $obsClassA = New Observer(ClassA) As "obsClassA" End Public Sub obsClassA_Change() doSomething End The problem is that the event manager obsClassA_Change() is never executed Furthermore, I tried to catch the unique instance of ClassA by: $obsClassA = New Observer(Object.Class(ClassA).instance) As "obsClassA" and $obsClassA = New Observer(Object.Class(ClassA).Autocreate()) As "obsClassA" but the result is negative: $obsClassA.Object is NULL ($obsClassA is NULL too, obviously), allways. I chose to use events, because I want uncouple ClassA of FormB: ClassA shouldn't contain call to methods on FormB. (And there's no way to FormB knows when should call to a method in ClassA to do what I want) So, what could I do? What's wrong in my code? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From fabianfloresvadell at ...626... Wed Jun 29 22:16:28 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Wed, 29 Jun 2011 17:16:28 -0300 Subject: [Gambas-user] a observer in a form can't catch an event from other class In-Reply-To: References: Message-ID: misprint: 2011/6/29 Fabi?n Flores Vadell : 'Dim aux As ClassA = Object.Class(GameBoard).AutoCreate() 'Dim aux As ClassA = Object.Class(GameBoard).instance (aux is NULL too, obviously) > ?$obsClassA = New Observer(Object.Class(ClassA).instance) As "obsClassA" > > > and > > > ?$obsClassA = New Observer(Object.Class(ClassA).Autocreate()) As "obsClassA" > > > but the result is negative: $obsClassA.Object is NULL ($obsClassA is > NULL too, obviously), allways. -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Wed Jun 29 22:19:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 29 Jun 2011 22:19:17 +0200 Subject: [Gambas-user] a observer in a form can't catch an event from other class In-Reply-To: References: Message-ID: <201106292219.17303.gambas@...1...> > misprint: > > > > 2011/6/29 Fabi?n Flores Vadell : > > 'Dim aux As ClassA = Object.Class(GameBoard).AutoCreate() > 'Dim aux As ClassA = Object.Class(GameBoard).instance > > (aux is NULL too, obviously) > Can you make a little project for me so that I can test exactly your code? -- Beno?t Minisini From tobiasboe1 at ...20... Wed Jun 29 22:25:31 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 29 Jun 2011 22:25:31 +0200 Subject: [Gambas-user] Dinamic lines In-Reply-To: <201106292204.53459.gambas@...1...> References: <201106292204.53459.gambas@...1...> Message-ID: <4E0B8A3B.6080402@...20...> hi, >> How to draw a line >> How to draw a text >> How to do it on a printer >> How to do it on a canvas >> How to make lines removable imho, one should be able to figure some of these things out using the doc. i never worked with printer, but answers to 1 and 2 are just where everyone expects them: http://gambasdoc.org/help/comp/gb.qt4/draw?v3 i don't know what "canvas" is. i'm not a native english speaker and my dictionary gave me nothing programming related... i don't think that lines can be made "removable" because you would have to have an object for them, i think. this would be waste of ram in my opinion and if you draw with a pencil on a paper, you don't create new objects that you can remove if you want to, right? :) you have to use an eraser: you can implement that by yourself saving source and destination coords of every line and if requested draw another line over it with your background's color... just a thought. regards, tobi From math.eber at ...221... Thu Jun 30 00:23:12 2011 From: math.eber at ...221... (Matti) Date: Thu, 30 Jun 2011 00:23:12 +0200 Subject: [Gambas-user] Array of PictureBoxes In-Reply-To: References: Message-ID: <4E0BA5D0.8090703@...221...> Take a look at Gambas 3 - Examples - Image - Lighttable. There are arrays of PictureBoxes, Labels and so on. Maybe this could help you? Am 25.06.2011 11:22, schrieb M. Cs.: > I would like to have ability to create an array of PictureBoxes or > Labels, so that I could add and remove them dinamically using some id > or name. Something like path nodes in Gimp. Is it possible in Gambas? > From gwalborn at ...626... Thu Jun 30 02:58:37 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Wed, 29 Jun 2011 20:58:37 -0400 Subject: [Gambas-user] Problem with _unknown (probable bug) Message-ID: Benoit, I think I found a bug with the "_unknown" properties that we've been discussing. I have an object named CUSTOMER and am using the "_unknown" method to get at fields in the CUSTOMER object. Print Customer.Name works, but If Customer.Name = "Test" fails with a "Type Mismatch:". Any ideas? Thanks, gwalborn -- Gary D. Walborn gwalborn at ...626... From gambas at ...1... Thu Jun 30 03:00:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 03:00:19 +0200 Subject: [Gambas-user] Problem with _unknown (probable bug) In-Reply-To: References: Message-ID: <201106300300.19306.gambas@...1...> > Benoit, > > > I think I found a bug with the "_unknown" properties that we've been > discussing. I have an object named CUSTOMER and am using the "_unknown" > method to get at fields in the CUSTOMER object. > > Print Customer.Name > > works, but > > If Customer.Name = "Test" > > fails with a "Type Mismatch:". > > Any ideas? > > Thanks, > > gwalborn Please give more details: source code, full error message... -- Beno?t Minisini From kevinfishburne at ...1887... Thu Jun 30 06:10:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 30 Jun 2011 00:10:54 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DDBFAF7.7000801@...221...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> <4DDB116D.6020604@...1887...> <4DDB1675.8090109@...1887...> <4DDBFAF7.7000801@...221...> Message-ID: <4E0BF74E.8020206@...1887...> On 05/24/2011 02:37 PM, Matti wrote: > Hi Kevin, > > this sorting problem is (at least to me) still unsolved. > I gave up and used a lousy workaround, reading the 2-dim array into a 1-dim > string array like "field1/field2", then sorting this and reading the fields > backward again. > See Examples/Image/Lighttable, the sorting subs. > Works ok with a few hundred pictures (tested up to 1200), but for your amount of > data it sure will be not practicable. > > If somebody knows a solution, I would be glad, too. Sweet Jesus, this is the sort of thing that makes me want to blow up my house and run down the street naked looking for someone's ass to kick. Now that that's said, what's up with this (attachment)? I finally got around to trying to sort graphical objects by their y coordinate so they'd overlap properly, but it seems even with extensive jerry-rigging I still need to implement more of it. I think I need to offset the whole batch of numbers before I sort so they're either positive or negative, then offset them back after sorting to get the original values. Hacking is all good and well, but for a language as advanced and robust as gb there should be a better option. I know I'm looking a gift horse in the mouth by complaining, but sometimes when my hair catches fire I have to say something about it. Sorry. Now to hack together a solution so I can see if my new rendering method works. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: Holy Shit.jpg Type: image/jpeg Size: 102921 bytes Desc: not available URL: From gambas at ...2524... Thu Jun 30 06:32:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 30 Jun 2011 04:32:51 +0000 Subject: [Gambas-user] Issue 72 in gambas: Installation error with reconf Message-ID: <0-6813199134517018827-8426048733021506680-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 72 by SemiN... at ...626...: Installation error with reconf http://code.google.com/p/gambas/issues/detail?id=72 1) When using reconf and reconf-all, it occurred error at aclocal program. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.0 and 3.2 Operating system: Linux Distribution: CentOS5 Architecture: x86 GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome / KDE ... Attachments: output.txt 525 bytes From mohareve at ...626... Thu Jun 30 09:01:58 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 09:01:58 +0200 Subject: [Gambas-user] Dinamic lines In-Reply-To: <201106292204.53459.gambas@...1...> References: <201106292204.53459.gambas@...1...> Message-ID: Let me give a detailed explanation: In example Chart there are two forms. The first one is for collecting the chart data, so it isn't very interesting. I'll list you the second class, which is reponsible for the chart-drawing: Public total As Integer Public value As Float[] Public Sub btnClose_Click() Me.Close End Public Sub _new() Me.Center End Public Sub Form_Open() Draw_Chart End Public Sub Draw_Chart() Dim i As Integer Dim skala_1 As Integer Dim skala_2 As Integer Dim distance_x As Float Dim distance_y As Float Dim width_draw As Integer Dim tot As Integer Dim colors As Integer[] Dim bottom As Integer Dim sumdata As Integer colors = New Integer[] colors.Resize(total + 1) For i = 1 To total sumdata = sumdata + value[i] Next If sumdata = 0 Then sumdata = 1 For i = 1 To total value[i] = (value[i] / sumdata) * 10 Next drwchart.Clear draw.Begin(drwchart) skala_1 = drwchart.ClientH / 11 distance_y = drwchart.ClientH - skala_1 bottom = distance_y + 8 For i = 0 To 100 Step 10 draw.Foreground = color.black draw.Text(i, 0, distance_y) draw.Line(25, distance_y + 8, drwchart.clientw, distance_y + 8) distance_y = distance_y - skala_1 Next draw.Line(30, 0, 30, drwchart.ClientH) skala_2 = (drwchart.ClientW - 30) \ 10 distance_x = skala_2 + 30 width_draw = skala_2 / 2 For i = 1 To Total draw.LineWidth = 1 draw.Foreground = color.Black draw.Text(i, distance_x - (width_draw / 2) - 4, drwchart.ClientH - 20) draw.Line(distance_x - (width_draw / 2), 0, distance_x - (width_draw / 2), drwchart.ClientH - skala_1 + 8) draw.LineWidth = width_draw draw.Foreground = color.RGB(i * 100, i * 10, i * 50) colors[i] = draw.Foreground tot = skala_1 * value[i] + skala_1 - 8 draw.Line(distance_x - (width_draw / 2), bottom, distance_x - (width_draw / 2), drwchart.ClientH - tot) distance_x = distance_x + skala_2 Next DRAW.End End Public Sub btnAbout_Click() Dim i As String i = "

Example to make bar chart

\n" i = i & "This example has made by : " & Chr(10) i = i & " Yudi Astira" & Chr(10) i = i & " yudi at ...2612..." & Chr(10) i = i & " necrose #hdteam on Dal.Net" & Chr(10) i = i & "Thank You" message.Info(i, "&Close") End ----------------------------------------------- If you take a look to the structure of this, the first thing is that only the Draw_Chart() is interesting. If I would like to emphasize the real important things I'd shorten it to this: Public Sub Draw_Chart() drwchart.Clear draw.Begin(drwchart) draw.LineWidth = 1 draw.Foreground = color.Black draw.Line(30, 0, 30, drwchart.ClientH) draw.End End The other things can be done if you know the basic synthax. And here comes the first irregularity: if I try to implement these steps in a program where I'm creating new DrawingArea if I put the creation of this into the same function as the Begin method, I run into error "Drawing cannot be done outside the Draw event handler". But actually it works in this example! And this is the only available example for chart-drawing, and it isn't written in the spirit of the documents! I simply don't know how to write a working function for that task. A good example is made of usable, simple bricks: if I know how to draw a line, I'll know how to draw a circle, rectangle etc. too. So what's the structure of the printing process? If I define a printer: Public samsung AS Printer How to force it to print a line, a text or an image? At least in the documentation it should be clearly stated. Should I write a sub: PUBLIC SUB Printit() ??? what to put here, can I do it in one function??? END Or I will need: 1. PUBLIC SUB Printit() 2. PUBLIC SUB samsung_Begin() 3. PUBLIC SUB samsung_Draw() What is defined in 1,2 and 3 function? And the same stands for the DrawingArea task too. I don't know how to initiate the process! One task for 3 functions?! I hope I was clear. > Did you read the Printing example source code? Did you find it too complex? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Thu Jun 30 09:46:18 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 30 Jun 2011 09:46:18 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to... In-Reply-To: <1309362851.2399.3.camel@...2150...> References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> <4E0AE253.70001@...2594...> <1309353779.2901.7.camel@...2150...> <1309362851.2399.3.camel@...2150...> Message-ID: Caveat, After my last post, I was trying to connect to mdb file using ODBC in Ubuntu 11.04. I can connet using isql with no problems (connection is ok and I can exec some basics "select"). You got a mistake in the code above. Try: PRIVATE myDB as NEW Connection ... WITH myDB .Type = "odbc" .Host = "PutHereTheNameOfTheDatabaseDSN" '<- the name from /etc/odbc.ini whitout [ ]. In my obc.ini example, I have to put test .Login = "Admin" ' <- It's necesary. Don't be in blank .Name = "" '-> in odbc keep always in blank END WITH TRY myDB.Open An example of a odbc.ini to a mdb file [test] Description = TestDatabase Driver = /usr/lib/libmdbodbc.so.0 Database = /home/ricardo.diaz/Escritorio/EstudiosEconomicosAuxiliares.mdb I can connect to mdb file using ODBC from gambas3 but I get no data when I exec any sql sentences. I think it's some problem with libmdbodbc because from openoffice base I can connect but after I can't see any tables in the schema. More tests with other odbc databases drivers are necessary. Regards, 2011/6/29 Caveat > Thanks Ricardo > > I just tried back in Gambas2 and got a sig11 > > I used > PRIVATE myDB as NEW Connection > ... > WITH myDB > .Type = "odbc" > .Host = "localhost" > .Login = "Admin" > .Name = "E4Y" > END WITH > > TRY myDB.Open > > I think it may be time to give up on Gambas (for *this* task) and look > at Java. > > Regards, > Caveat > > On Wed, 2011-06-29 at 15:50 +0200, Ricardo D?az Mart?n wrote: > > Hi Caveat, > > > > You can look for Ian Roper in this mailing list. I remember he was to > > be able to to. > > > > go http://sourceforge.net/mailarchive/message.php?msg_id=26630386 > > > > Regards, > > Ricardo D?az > > > > 2011/6/29 Caveat > > Hi Rolf, > > > > Many thanks for the reply. Yes, I do have libmdbodbc > > installed, and the > > mdbtools. The Gnome MDB Viewer I mention is just a kind of > > GUI wrapper > > on top of the mdbtools MDB File Viewer, and that is all > > working fine. > > > > I see tables, reports, forms, and macros in the database. > > > > I have the mdb odbc driver installed (libmdbodbc.so.0) and an > > entry > > defined in odbc.ini as per my previous mail, but it seems > > Gambas3 can't > > even see that entry. > > > > So my question is intended as a kind of sanity-check... does > > someone > > else have odbc working with Gambas3? > > > > Thanks and regards, > > Caveat > > > > > > > > On Wed, 2011-06-29 at 10:29 +0200, Rolf Schmidt wrote: > > > Caveat: > > > > > > ODBC is not the problem. > > > The problem is an odbc driver for mdb-files > > > > > > > The .mdb file has no password set on it. > > > > > > As far as I could see there is a very limited version of the > > driver > > > available. > > > Do you have "libmdbodbc" installed? Can you access your mdb > > file with > > > the "MDB File Viewer" i.e. have you install the mdbtools > > (incl. > > > mdbtools-gmdb - which has the MDB-File-Viewer). > > > > > > HTH > > > Rolf > > > > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure is > > seriously valuable. > > Why? It contains a definitive record of application > > performance, security > > threats, fraudulent activity, and more. Splunk takes this data > > and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Thu Jun 30 09:52:19 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 30 Jun 2011 09:52:19 +0200 Subject: [Gambas-user] Seg fault, rev 3903, odbc db selecting... progress! In-Reply-To: References: <1309244998.9219.7.camel@...2150...> <201106281144.45284.gambas@...1...> <201106281409.44376.gambas@...1...> <1309267872.3176.71.camel@...2150...> <4E0AE253.70001@...2594...> <1309353779.2901.7.camel@...2150...> <1309362851.2399.3.camel@...2150...> Message-ID: <1309420339.2399.6.camel@...2150...> Thank you so much Ricardo... now I don't get the signal 11 any more... no time today as IRL I have to go out on an emergency fix job for a client, but I'll get back to it later. I'll keep you posted but it looks good for starting to get somewhere at last...the connect worked! Thanks again and best regards, Caveat On Thu, 2011-06-30 at 09:46 +0200, Ricardo D?az Mart?n wrote: > Caveat, > > After my last post, I was trying to connect to mdb file using ODBC in > Ubuntu 11.04. I can connet using isql with no problems (connection is > ok and I can exec some basics "select"). > > You got a mistake in the code above. Try: > > > PRIVATE myDB as NEW Connection > ... > WITH myDB > .Type = "odbc" > .Host = "PutHereTheNameOfTheDatabaseDSN" '<- the name > from /etc/odbc.ini whitout [ ]. In my obc.ini example, I have to put > test > .Login = "Admin" ' <- It's necesary. Don't be in blank > .Name = "" '-> in odbc keep always in blank > END WITH > > TRY myDB.Open > > > An example of a odbc.ini to a mdb file > > [test] > Description = TestDatabase > Driver = /usr/lib/libmdbodbc.so.0 > Database > = /home/ricardo.diaz/Escritorio/EstudiosEconomicosAuxiliares.mdb > > > I can connect to mdb file using ODBC from gambas3 but I get no data > when I exec any sql sentences. I think it's some problem with > libmdbodbc because from openoffice base I can connect but after I > can't see any tables in the schema. More tests with other odbc > databases drivers are necessary. > > Regards, > > > 2011/6/29 Caveat > Thanks Ricardo > > I just tried back in Gambas2 and got a sig11 > > I used > PRIVATE myDB as NEW Connection > ... > WITH myDB > .Type = "odbc" > .Host = "localhost" > .Login = "Admin" > .Name = "E4Y" > END WITH > > TRY myDB.Open > > I think it may be time to give up on Gambas (for *this* task) > and look > at Java. > > Regards, > Caveat > > > On Wed, 2011-06-29 at 15:50 +0200, Ricardo D?az Mart?n wrote: > > Hi Caveat, > > > > You can look for Ian Roper in this mailing list. I remember > he was to > > be able to to. > > > > go > http://sourceforge.net/mailarchive/message.php?msg_id=26630386 > > > > Regards, > > Ricardo D?az > > > > 2011/6/29 Caveat > > Hi Rolf, > > > > Many thanks for the reply. Yes, I do have > libmdbodbc > > installed, and the > > mdbtools. The Gnome MDB Viewer I mention is just a > kind of > > GUI wrapper > > on top of the mdbtools MDB File Viewer, and that is > all > > working fine. > > > > I see tables, reports, forms, and macros in the > database. > > > > I have the mdb odbc driver installed > (libmdbodbc.so.0) and an > > entry > > defined in odbc.ini as per my previous mail, but it > seems > > Gambas3 can't > > even see that entry. > > > > So my question is intended as a kind of > sanity-check... does > > someone > > else have odbc working with Gambas3? > > > > Thanks and regards, > > Caveat > > > > > > > > On Wed, 2011-06-29 at 10:29 +0200, Rolf Schmidt > wrote: > > > Caveat: > > > > > > ODBC is not the problem. > > > The problem is an odbc driver for mdb-files > > > > > > > The .mdb file has no password set on it. > > > > > > As far as I could see there is a very limited > version of the > > driver > > > available. > > > Do you have "libmdbodbc" installed? Can you access > your mdb > > file with > > > the "MDB File Viewer" i.e. have you install the > mdbtools > > (incl. > > > mdbtools-gmdb - which has the MDB-File-Viewer). > > > > > > HTH > > > Rolf > > > > > > > > > ------------------------------------------------------------------------------ > > All of the data generated in your IT infrastructure > is > > seriously valuable. > > Why? It contains a definitive record of application > > performance, security > > threats, fraudulent activity, and more. Splunk takes > this data > > and makes > > sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-d2d-c2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is > seriously valuable. > Why? It contains a definitive record of application > performance, security > threats, fraudulent activity, and more. Splunk takes this data > and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mohareve at ...626... Thu Jun 30 11:04:25 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 11:04:25 +0200 Subject: [Gambas-user] Modules not recognized Message-ID: I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, and when I try to invoke the module with PUBLIC SUB myButton_Click() Paper.DoPrint END from FMain, I'm getting error "Unknown identifier Paper on FMain..." Men, is this still Gambas??? This was the standard way of handling the modules in G2. :-( What's wrong? From mohareve at ...626... Thu Jun 30 11:09:44 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 11:09:44 +0200 Subject: [Gambas-user] Modules not recognized In-Reply-To: References: Message-ID: Hmmm, I see the examples have no modules. Does it mean that in G3 the modules are not working yet? 2011/6/30, M. Cs. : > I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, > and when I try to invoke the module with > > PUBLIC SUB myButton_Click() > Paper.DoPrint > END > > from FMain, I'm getting error "Unknown identifier Paper on FMain..." > > Men, is this still Gambas??? This was the standard way of handling the > modules in G2. :-( > > What's wrong? > From mohareve at ...626... Thu Jun 30 11:12:22 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 11:12:22 +0200 Subject: [Gambas-user] Modules not recognized In-Reply-To: References: Message-ID: O.K. I've discovered that the modules should be added to the sources branch of the project! 2011/6/30, M. Cs. : > Hmmm, I see the examples have no modules. Does it mean that in G3 the > modules are not working yet? > > > 2011/6/30, M. Cs. : >> I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, >> and when I try to invoke the module with >> >> PUBLIC SUB myButton_Click() >> Paper.DoPrint >> END >> >> from FMain, I'm getting error "Unknown identifier Paper on FMain..." >> >> Men, is this still Gambas??? This was the standard way of handling the >> modules in G2. :-( >> >> What's wrong? >> > From gambas at ...1... Thu Jun 30 11:42:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 11:42:04 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4E0BF74E.8020206@...1887...> References: <4DC220D9.7020309@...1887...> <4DDBFAF7.7000801@...221...> <4E0BF74E.8020206@...1887...> Message-ID: <201106301142.04511.gambas@...1...> > On 05/24/2011 02:37 PM, Matti wrote: > > Hi Kevin, > > > > this sorting problem is (at least to me) still unsolved. > > I gave up and used a lousy workaround, reading the 2-dim array into a > > 1-dim string array like "field1/field2", then sorting this and reading > > the fields backward again. > > See Examples/Image/Lighttable, the sorting subs. > > Works ok with a few hundred pictures (tested up to 1200), but for your > > amount of data it sure will be not practicable. > > > > If somebody knows a solution, I would be glad, too. > > Sweet Jesus, this is the sort of thing that makes me want to blow up my > house and run down the street naked looking for someone's ass to kick. > Now that that's said, what's up with this (attachment)? > > I finally got around to trying to sort graphical objects by their y > coordinate so they'd overlap properly, but it seems even with extensive > jerry-rigging I still need to implement more of it. I think I need to > offset the whole batch of numbers before I sort so they're either > positive or negative, then offset them back after sorting to get the > original values. Hacking is all good and well, but for a language as > advanced and robust as gb there should be a better option. I know I'm > looking a gift horse in the mouth by complaining, but sometimes when my > hair catches fire I have to say something about it. > > Sorry. Now to hack together a solution so I can see if my new rendering > method works. :) At the moment, the only clean way to sort objects through multiple fields is doing what I told in a previous mail: implementing the _compare() method. Once Gambas knows how to compare two objects with the _compare() method, it can sort them. Regards, -- Beno?t Minisini From gwalborn at ...626... Thu Jun 30 11:57:42 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Thu, 30 Jun 2011 05:57:42 -0400 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties Message-ID: Benoit, Here is more detail on the problem... What I'm attempting to do is read/write CISAM files from Gambas3. I am using the external VBISAM library "libvbisam.so". I have a VBISAM class and a driver program. Here is the VBISAM Class: ---------------------------------------------Begin VBISAM------------------------------------- Class VBISAM Const ISFIRST As Integer = 0 Const ISLAST As Integer = 1 Const ISNEXT As Integer = 2 Const ISPREV As Integer = 3 Const ISCURR As Integer = 4 Const ISEQUAL As Integer = 5 Const ISGREAT As Integer = 6 Const ISGTEQ As Integer = 7 Const ISLOCK As Integer = &H100& Const ISSKIPLOCK As Integer = &H200& Const ISWAIT As Integer = &H400& Const ISLCKW As Integer = &H500& Const ISKEEPLOCK As Integer = &H800& Const ISAUTOLOCK As Integer = &H200& Const ISMANULOCK As Integer = &H400& Const ISEXCLLOCK As Integer = &H800& Const ISINPUT As Integer = 0 Const ISOUTPUT As Integer = 1 Const ISINOUT As Integer = 2 Const ISTRANS As Integer = 4 Const ISNOLOG As Integer = 8 Const ISVARLEN As Integer = &H10& Const ISFIXLEN As Integer = 0 Extern isopen(FNAME As String, MODE As Integer) As Integer In "libvbisam" Extern isread(FD As Integer, BUFF As Pointer, MODE As Integer) As Integer In "libvbisam" Extern isclose(FD As Integer) As Integer In "libvbisam" Public RecLen As Integer = 768 Private FD As Integer Public ReturnCode As Integer Private BUFF As Pointer = Alloc(RecLen) Public DataRecord As String Private Dictionary As Collection Private Sub ReadDict(FName As String) Dim items As New String[30] Dim DictIn As File Dim TextLine As String Dim i As String Dim x As Integer Dim Dict As DictEntry DictIn = Open FNAME & ".dic" For Read ' Loop through each line until the end of file. ' Eof() returns true at the end of the file. Dictionary = New Collection While Not Eof(DictIn) Line Input #DictIn, TextLine ' Split each line into fields ' Note that we set the " char as an escape char items = Split(TextLine, ",", "\"") Dict = New DictEntry items[3] = Replace$(items[3], "-", "_") Dict.DataName = items[3] Dict.Pos = items[4] + 1 Dict.Len = items[5] Dict.Type = items[6] Dict.Occurs = items[8] Dict.Edit = items[12] Dict.SerialNo = items[19] Dictionary[items[3]] = Dict Wend Close #DictIn End Public Sub _new(FNAME As String, Optional MODE As Integer = ISINPUT + ISMANULOCK) FD = isopen(FNAME, MODE) ReadDict(FNAME) End Public Sub close() Dim ReturnCode As Integer ReturnCode = isclose(FD) Free(BUFF) End Public Sub first() As Integer Dim ch As Byte Dim tmp As Pointer = BUFF Dim I As Integer Dim BuffStream As Stream ReturnCode = isread(FD, BUFF, 0) If ReturnCode < 0 Then Return ReturnCode Endif BuffStream = Memory BUFF For Write DataRecord = Read #BuffStream As String Return ReturnCode End Public Sub _next() Dim ch As Byte Dim tmp As Pointer = BUFF Dim I As Integer Dim BuffStream As Stream BuffStream = Memory BUFF For Write ReturnCode = isread(FD, BUFF, ISNEXT) If ReturnCode < 0 Then Enum.Stop DataRecord = Read #BuffStream As String Return End Public Function _unknown(...) As Variant Dim Params As Integer = Param.Count Dim D As DictEntry = Dictionary[Upper$(Param.Name)] Dim Value As Variant If Param.Property If Params = 0 Then Return Mid$(DataRecord, D.Pos, D.Len) Else Value = Param[0] Mid$(DataRecord, D.Pos, D.Len) = Value Endif Endif End -----------------------------------------------End VBISAM------------------------------------- And here is the driver: ----------------------------------------------Begin MMain--------------------------------------- ' Gambas module file Public Sub Main() Dim CUSTOMER As VBISAM Dim RESULT As Integer Dim CustCount As Integer = 0 Dim Branch As String CUSTOMER = New VBISAM("/data/CUSTFILE") RESULT = CUSTOMER.first() For Each CUSTOMER Branch = CUSTOMER.Branch If CUSTOMER.Branch = "000" Then Goto ReadNext Print CUSTOMER.Key, CUSTOMER.Name, CUSTOMER.City, CUSTOMER.State, CUSTOMER.Zip_Code CustCount += 1 ReadNext: Next CUSTOMER.close() Print "Total Customers: " & CustCount End -------------------------------------------End MMain---------------------------------------- The error message I get in line 12 of MMain is: Type mismatch: Wanted Number, Date, or String, got Function instead in MMain:12. Without the "If CUSTOMER" statement, everything is fine (i.e., I can use a property as as string when I print or do other opeations). However, the "IF" statrement (line 12) doesn't like the unknown property at all! I set a breakpoint in the _unknown method of VBISAM and it gets there when using the unknown properties in print statements (or other expressions), but does not when using it in a conditional. Hope that helps, gwalborn -- Gary D. Walborn gwalborn at ...626... From gambas at ...1... Thu Jun 30 12:04:05 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 12:04:05 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: References: Message-ID: <201106301204.05650.gambas@...1...> > Benoit, > > Here is more detail on the problem... What I'm attempting to do is > read/write CISAM files from Gambas3. I am using the external VBISAM > library "libvbisam.so". I have a VBISAM class and a driver program. Here > is the VBISAM Class: > > ---------------------------------------------Begin > VBISAM------------------------------------- > Class VBISAM > > Const ISFIRST As Integer = 0 > Const ISLAST As Integer = 1 > Const ISNEXT As Integer = 2 > Const ISPREV As Integer = 3 > Const ISCURR As Integer = 4 > Const ISEQUAL As Integer = 5 > Const ISGREAT As Integer = 6 > Const ISGTEQ As Integer = 7 > > Const ISLOCK As Integer = &H100& > Const ISSKIPLOCK As Integer = &H200& > Const ISWAIT As Integer = &H400& > Const ISLCKW As Integer = &H500& > Const ISKEEPLOCK As Integer = &H800& > > Const ISAUTOLOCK As Integer = &H200& > Const ISMANULOCK As Integer = &H400& > Const ISEXCLLOCK As Integer = &H800& > > Const ISINPUT As Integer = 0 > Const ISOUTPUT As Integer = 1 > Const ISINOUT As Integer = 2 > Const ISTRANS As Integer = 4 > Const ISNOLOG As Integer = 8 > > Const ISVARLEN As Integer = &H10& > Const ISFIXLEN As Integer = 0 > > Extern isopen(FNAME As String, MODE As Integer) As Integer In "libvbisam" > Extern isread(FD As Integer, BUFF As Pointer, MODE As Integer) As Integer > In "libvbisam" > Extern isclose(FD As Integer) As Integer In "libvbisam" > > Public RecLen As Integer = 768 > Private FD As Integer > Public ReturnCode As Integer > Private BUFF As Pointer = Alloc(RecLen) > Public DataRecord As String > Private Dictionary As Collection > > Private Sub ReadDict(FName As String) > Dim items As New String[30] > Dim DictIn As File > Dim TextLine As String > Dim i As String > Dim x As Integer > Dim Dict As DictEntry > > DictIn = Open FNAME & ".dic" For Read > ' Loop through each line until the end of file. > ' Eof() returns true at the end of the file. > > Dictionary = New Collection > > While Not Eof(DictIn) > Line Input #DictIn, TextLine > ' Split each line into fields > ' Note that we set the " char as an escape char > > items = Split(TextLine, ",", "\"") > > Dict = New DictEntry > items[3] = Replace$(items[3], "-", "_") > Dict.DataName = items[3] > Dict.Pos = items[4] + 1 > Dict.Len = items[5] > Dict.Type = items[6] > Dict.Occurs = items[8] > Dict.Edit = items[12] > Dict.SerialNo = items[19] > Dictionary[items[3]] = Dict > > Wend > Close #DictIn > End > > Public Sub _new(FNAME As String, Optional MODE As Integer = ISINPUT + > ISMANULOCK) > FD = isopen(FNAME, MODE) > ReadDict(FNAME) > End > > Public Sub close() > Dim ReturnCode As Integer > ReturnCode = isclose(FD) > Free(BUFF) > End > > Public Sub first() As Integer > Dim ch As Byte > Dim tmp As Pointer = BUFF > Dim I As Integer > Dim BuffStream As Stream > ReturnCode = isread(FD, BUFF, 0) > If ReturnCode < 0 Then > Return ReturnCode > Endif > BuffStream = Memory BUFF For Write > DataRecord = Read #BuffStream As String > Return ReturnCode > End > > Public Sub _next() > Dim ch As Byte > Dim tmp As Pointer = BUFF > Dim I As Integer > Dim BuffStream As Stream > BuffStream = Memory BUFF For Write > ReturnCode = isread(FD, BUFF, ISNEXT) > If ReturnCode < 0 Then Enum.Stop > DataRecord = Read #BuffStream As String > Return > End > > Public Function _unknown(...) As Variant > Dim Params As Integer = Param.Count > Dim D As DictEntry = Dictionary[Upper$(Param.Name)] > Dim Value As Variant > If Param.Property > If Params = 0 Then > Return Mid$(DataRecord, D.Pos, D.Len) > Else > Value = Param[0] > Mid$(DataRecord, D.Pos, D.Len) = Value > Endif > Endif > End > > -----------------------------------------------End > VBISAM------------------------------------- > > And here is the driver: > ----------------------------------------------Begin > MMain--------------------------------------- > ' Gambas module file > > Public Sub Main() > Dim CUSTOMER As VBISAM > Dim RESULT As Integer > Dim CustCount As Integer = 0 > Dim Branch As String > CUSTOMER = New VBISAM("/data/CUSTFILE") > RESULT = CUSTOMER.first() > For Each CUSTOMER > Branch = CUSTOMER.Branch > If CUSTOMER.Branch = "000" Then Goto ReadNext > Print CUSTOMER.Key, CUSTOMER.Name, CUSTOMER.City, CUSTOMER.State, > CUSTOMER.Zip_Code > CustCount += 1 > ReadNext: > Next > CUSTOMER.close() > Print "Total Customers: " & CustCount > End > -------------------------------------------End > MMain---------------------------------------- > > The error message I get in line 12 of MMain is: > Type mismatch: Wanted Number, Date, or String, got Function instead in > MMain:12. > > > Without the "If CUSTOMER" statement, everything is fine (i.e., I can use a > property as as string when I print or do other opeations). However, the > "IF" statrement (line 12) doesn't like the unknown property at all! I set > a breakpoint in the _unknown method of VBISAM and it gets there when using > the unknown properties in print statements (or other expressions), but > does not when using it in a conditional. > > Hope that helps, > > gwalborn Can you provide a project with the previous code so that I can debug? -- Beno?t Minisini From mohareve at ...626... Thu Jun 30 13:29:35 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 13:29:35 +0200 Subject: [Gambas-user] Please help me! Message-ID: Public samsung As Printer Public Sub PrintID() samsung = New Printer If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim tagok As String[] tagok = Split(datae[curr], ";")' gets data from a csv sheet For i = 0 To tagok.Count - 1 Paint.Font = Font["Lucida Sans"] Paint.Font.Size = lett[i]'array of font sizes Paint.Color = Color.Black Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) Next End Still it prints blank pages. From gambas at ...1... Thu Jun 30 13:35:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 13:35:00 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: Message-ID: <201106301335.00758.gambas@...1...> > Public samsung As Printer > > Public Sub PrintID() > samsung = New Printer --> samsung = New Printer As "samsung" In Gambas, if you don't specify an event name, you don't get events. Regards, -- Beno?t Minisini From mohareve at ...626... Thu Jun 30 13:54:56 2011 From: mohareve at ...626... (M. Cs.) Date: Thu, 30 Jun 2011 13:54:56 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: <201106301335.00758.gambas@...1...> References: <201106301335.00758.gambas@...1...> Message-ID: Yes, Benoit, still even if change the synthax to: Public Sub PrintID() Dim i As Integer Dim tagok As String[] samsung = New Printer As "samsung" If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim tagok As String[] tagok = Split(datae[curr], ";") For i = 0 To tagok.Count - 1 Paint.Font = Font["Lucida Sans"] Paint.Font.Size = lett[i] Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) Next End It prints blank pages only, while the Printer example works O.K. I don't understand this at all. I'm wrestling with this since 3 days. 2011/6/30, Beno?t Minisini : >> Public samsung As Printer >> >> Public Sub PrintID() >> samsung = New Printer > > --> samsung = New Printer As "samsung" > > In Gambas, if you don't specify an event name, you don't get events. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jun 30 14:00:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 14:00:19 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: References: <201106301335.00758.gambas@...1...> Message-ID: <201106301400.19229.gambas@...1...> > Yes, Benoit, > still even if change the synthax to: > > Public Sub PrintID() > Dim i As Integer > Dim tagok As String[] > samsung = New Printer As "samsung" > If samsung.Configure() Then Return > samsung.Count = 1 > samsung.Print > > End > > Public Sub samsung_Begin() > > End > > Public Sub samsung_Draw() > Dim i As Integer > Dim tagok As String[] > tagok = Split(datae[curr], ";") > For i = 0 To tagok.Count - 1 > Paint.Font = Font["Lucida Sans"] > Paint.Font.Size = lett[i] > Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) > Next > End > > It prints blank pages only, while the Printer example works O.K. > I don't understand this at all. I'm wrestling with this since 3 days. > If you send me a project, I will be able to look deeper in your problem! -- Beno?t Minisini From sbungay at ...981... Thu Jun 30 14:59:23 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 30 Jun 2011 08:59:23 -0400 Subject: [Gambas-user] Try Catch fail when using mkdir.... Message-ID: <4E0C732B.2090208@...981...> Hi folks! Gambas 2.99 Fedora 14 Using mkdir with "catch" and "finally" to create a recursive SUB to build a directory structure. The harness consists of FormMain with one big-friendly button on it, pretty simple. Here is all of the code; ' Gambas class file Public Sub _new() End Public Sub Form_Open() End Private Sub CreateNewOutputFolder(psFolderSpecification As String) Dim sFolderSpec As String sFolderSpec = psFolderSpecification Mkdir sFolderSpec Finally Mkdir sFolderSpec Catch sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, ".") - 1) CreateNewOutputFolder(sFolderSpec) End Public Sub Button1_Click() CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") End What I THINK should happen is the initial mkdir should fail, the code in "catch" should execute and copy the passed in parameter from position 1 to the charcter just prior to the last "/" and then call itself passing in the new result as the parameter. When/if that call fails (and it should as this folder specification doesn't exist in my home dir) it again recurses. This should go on until it reaches the left-most node in the directory structure (AFTER the "/home/user"), and THAT one ("/home/user/Rumple) should be the first to succeed in being created. The call stack should then unwind, and as it does, the previous SUBS on the stack should execute their "Finally" section. When the stack has completely unwound the directory structure should exist.... only that is not what is happening. The first Catch doesn't execute (although the directory does not get created.. meaning an error did indeed occur) and it skips directly to the "finally". When the mkdir in the "finally" is executed (same parameter string because we have not yet recursed) the error "File or Directory does not exist" pops up on the screen. Well there's the error that I expected from the initial mkdir, but the "catch" didn't execute, anybody got ideas? From gambas.fr at ...626... Thu Jun 30 15:53:06 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jun 2011 15:53:06 +0200 Subject: [Gambas-user] Please help me! In-Reply-To: <201106301400.19229.gambas@...1...> References: <201106301335.00758.gambas@...1...> <201106301400.19229.gambas@...1...> Message-ID: Le 30 juin 2011 14:00, Beno?t Minisini a ?crit : >> Yes, Benoit, >> still even if change the synthax to: >> >> Public Sub PrintID() >> Dim i As Integer >> Dim tagok As String[] >> samsung = New Printer As "samsung" >> If samsung.Configure() Then Return >> samsung.Count = 1 >> samsung.Print >> >> End >> >> Public Sub samsung_Begin() >> >> End >> >> Public Sub samsung_Draw() >> Dim i As Integer >> Dim tagok As String[] >> tagok = Split(datae[curr], ";") >> For i = 0 To tagok.Count - 1 >> Paint.Font = Font["Lucida Sans"] >> Paint.Font.Size = lett[i] >> Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) 'hey tou forgot that !! Paint.fill >> Next >> End >> >> It prints blank pages only, while the Printer example works O.K. >> I don't understand this at all. I'm wrestling with this since 3 days. >> > > If you send me a project, I will be able to look deeper in your problem! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > when you are using paint it have 2 time : creating the path filling or trace it To fill it : Paint.fill To trace the border : Paint.Stroke You can do the both : Paint.Fill(true) Paint.Stroke If you want to have a letter With a border Red and the middle yellow Paint.Font.Size = 16 Paint.Text("a",1,1) Paint.Brush = Paint.Color(color.yellow) Paint.Fill(true) Paint.Brush = paint.Color(Color.red) Paint.Fill So now your code will be -- Fabien Bodard Public Sub samsung_Draw() Dim i As Integer Dim tagok As String[] tagok = Split(datae[curr], ";") For i = 0 To tagok.Count - 1 Paint.Font = Font["Lucida Sans"] Paint.Font.Size = lett[i] Paint.DrawText(tagok[i], CFloat(xcor[i]), CFloat(ycor[i])) Paint.Fill next end If you forgot the fill statement ... the printer draw nothing Paint class work like cairo, and is really different of the draw class. Take a look at the painting example. -- Fabien Bodard From tobiasboe1 at ...20... Thu Jun 30 15:57:53 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 30 Jun 2011 15:57:53 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0C732B.2090208@...981...> References: <4E0C732B.2090208@...981...> Message-ID: <4E0C80E1.8060703@...20...> hi, > Hi folks! > > Gambas 2.99 > Fedora 14 > > Using mkdir with "catch" and "finally" to create a recursive SUB to > build a directory structure. > The harness consists of FormMain with one big-friendly button on it, > pretty simple. Here is all of the code; > > ' Gambas class file > > Public Sub _new() > > End > > Public Sub Form_Open() > > End > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > Dim sFolderSpec As String > > sFolderSpec = psFolderSpecification > > Mkdir sFolderSpec > > Finally > Mkdir sFolderSpec > > Catch > sFolderSpec = Mid$(psFolderSpecification, 1, > RInStr(psFolderSpecification, ".") - 1) > CreateNewOutputFolder(sFolderSpec) > End > > Public Sub Button1_Click() > > CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") > > End > > > What I THINK should happen is the initial mkdir should fail, the code > in "catch" should execute and copy the passed in parameter from position > 1 to the charcter just prior to the last "/" and then call itself > passing in the new result as the parameter. When/if that call fails (and > it should as this folder specification doesn't exist in my home dir) it > again recurses. This should go on until it reaches the left-most node in > the directory structure (AFTER the "/home/user"), and THAT one > ("/home/user/Rumple) should be the first to succeed in being created. > The call stack should then unwind, and as it does, the previous SUBS on > the stack should execute their "Finally" section. When the stack has > completely unwound the directory structure should exist.... only that is > not what is happening. > The first Catch doesn't execute (although the directory does not get > created.. meaning an error did indeed occur) and it skips directly to > the "finally". When the mkdir in the "finally" is executed (same > parameter string because we have not yet recursed) the error "File or > Directory does not exist" pops up on the screen. Well there's the error > that I expected from the initial mkdir, but the "catch" didn't execute, > anybody got ideas? > first of all, i wouldn't use CATCH and FINALLY. for me, these are in my code only to handle errors. also calling the function recursively pushes unneccessary stackframes onto the stack because you can do this in a loop, too. last, i can't figure out the meaning of this line: sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, ".") - 1) why do you search for "." as your given string doesn't even contain one and you say that this code will copy the path until the prior char of the last "/"? well, this is what i would have used: PUBLIC SUB Button1_Click() BuildDirTree("////home/user/This/../This//Is/.//../Not/../A/Tree") END PUBLIC SUB BuildDirTree(sPath AS String) DIM sCreate AS String = "/" 'Will contain the next path to create 'make the path end with a "/" sPath &/= "/" 'finish when we built the tree WHILE NOT (sCreate = sPath) OR NOT Exist(sPath) IF NOT Exist(sCreate) THEN MKDIR sCreate PRINT "[*] Creating "; sCreate ENDIF sCreate = Mid$(sPath, 1, InStr(sPath, "/", Len(sCreate) + 1)) IF sCreate = "" THEN BREAK 'this will be the last part WEND PRINT "[*] Built successfully" CATCH Message.Info("Error: " & Error.Text) END which works just fine for me and i was suprised that it also handles this weird path i give... regards, tobi From gambas.fr at ...626... Thu Jun 30 16:00:07 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jun 2011 16:00:07 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: <4E0C732B.2090208@...981...> References: <4E0C732B.2090208@...981...> Message-ID: The FINALLY part is not mandatory. If there is a catch part in the function, the FINALLY part must precede it. http://gambasdoc.org/help/lang/finally The second call will be in the catch part not in finally. 2011/6/30 Stephen Bungay : > Hi folks! > > Gambas 2.99 > Fedora 14 > > ? Using mkdir with "catch" and "finally" to create a recursive SUB to > build a directory structure. > ? The harness consists of FormMain with one big-friendly button on it, > pretty simple. Here is all of the code; > > ' Gambas class file > > Public Sub _new() > > End > > Public Sub Form_Open() > > End > > Private Sub CreateNewOutputFolder(psFolderSpecification As String) > ? Dim sFolderSpec As String > > ? sFolderSpec = psFolderSpecification > > ? Mkdir sFolderSpec > > ? Finally > ? ? Mkdir sFolderSpec > > ? Catch > ? ? sFolderSpec = Mid$(psFolderSpecification, 1, > RInStr(psFolderSpecification, ".") - 1) > ? ? CreateNewOutputFolder(sFolderSpec) > End > > Public Sub Button1_Click() > > ? CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") > > End > > > ? What I THINK should happen is the initial mkdir should fail, the code > in "catch" should execute and copy the passed in parameter from position > 1 to the charcter just prior to the last "/" and then call itself > passing in the new result as the parameter. When/if that call fails (and > it should as this folder specification doesn't exist in my home dir) it > again recurses. This should go on until it reaches the left-most node in > the directory structure (AFTER the "/home/user"), and THAT one > ("/home/user/Rumple) should be the first to succeed in being created. > The call stack should then unwind, and as it does, the previous SUBS on > the stack should execute their "Finally" section. When the stack has > completely unwound the directory structure should exist.... only that is > not what is happening. > ? The first Catch doesn't execute (although the directory does not get > created.. meaning an error did indeed occur) and it skips directly to > the "finally". When the mkdir in the "finally" is executed ?(same > parameter string because we have not yet recursed) the error "File or > Directory does not exist" pops up on the screen. Well there's the error > that I expected from the initial mkdir, but the "catch" didn't execute, > anybody got ideas? > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gwalborn at ...626... Thu Jun 30 16:05:46 2011 From: gwalborn at ...626... (Gary D Walborn) Date: Thu, 30 Jun 2011 10:05:46 -0400 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties Message-ID: Benoit, I'd be happy to provide you with the project, but I don't think it will do much good without the data files (which are not small). Is it permissible to send a 4MB attachment thru the mailing list? gwalborn -- Gary D. Walborn gwalborn at ...626... From gambas.fr at ...626... Thu Jun 30 16:09:14 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jun 2011 16:09:14 +0200 Subject: [Gambas-user] Try Catch fail when using mkdir.... In-Reply-To: References: <4E0C732B.2090208@...981...> Message-ID: private sub CreateDirTree(sDir as string) dim s as string dim stmpDir as string = "/" if sdir begins "/" then sdir = right(sdir,-1) For each s in split(sDir, "/") stmpDir &= s if exist(stmpdir) then continue mkdir stmpdir next catch Print "The directory " & stmpdir & "can't be created" end 2011/6/30 Fabien Bodard : > The FINALLY part is not mandatory. If there is a catch part in the > function, the FINALLY part must precede it. > > http://gambasdoc.org/help/lang/finally > > The second call will be in the catch part not in finally. > > 2011/6/30 Stephen Bungay : >> Hi folks! >> >> Gambas 2.99 >> Fedora 14 >> >> ? Using mkdir with "catch" and "finally" to create a recursive SUB to >> build a directory structure. >> ? The harness consists of FormMain with one big-friendly button on it, >> pretty simple. Here is all of the code; >> >> ' Gambas class file >> >> Public Sub _new() >> >> End >> >> Public Sub Form_Open() >> >> End >> >> Private Sub CreateNewOutputFolder(psFolderSpecification As String) >> ? Dim sFolderSpec As String >> >> ? sFolderSpec = psFolderSpecification >> >> ? Mkdir sFolderSpec >> >> ? Finally >> ? ? Mkdir sFolderSpec >> >> ? Catch >> ? ? sFolderSpec = Mid$(psFolderSpecification, 1, >> RInStr(psFolderSpecification, ".") - 1) >> ? ? CreateNewOutputFolder(sFolderSpec) >> End >> >> Public Sub Button1_Click() >> >> ? CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here") >> >> End >> >> >> ? What I THINK should happen is the initial mkdir should fail, the code >> in "catch" should execute and copy the passed in parameter from position >> 1 to the charcter just prior to the last "/" and then call itself >> passing in the new result as the parameter. When/if that call fails (and >> it should as this folder specification doesn't exist in my home dir) it >> again recurses. This should go on until it reaches the left-most node in >> the directory structure (AFTER the "/home/user"), and THAT one >> ("/home/user/Rumple) should be the first to succeed in being created. >> The call stack should then unwind, and as it does, the previous SUBS on >> the stack should execute their "Finally" section. When the stack has >> completely unwound the directory structure should exist.... only that is >> not what is happening. >> ? The first Catch doesn't execute (although the directory does not get >> created.. meaning an error did indeed occur) and it skips directly to >> the "finally". When the mkdir in the "finally" is executed ?(same >> parameter string because we have not yet recursed) the error "File or >> Directory does not exist" pops up on the screen. Well there's the error >> that I expected from the initial mkdir, but the "catch" didn't execute, >> anybody got ideas? >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From gambas at ...1... Thu Jun 30 16:10:40 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 30 Jun 2011 16:10:40 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: References: Message-ID: <201106301610.40645.gambas@...1...> > Benoit, > > I'd be happy to provide you with the project, but I don't think it will > do much good without the data files (which are not small). Is it > permissible to send a 4MB attachment thru the mailing list? > > gwalborn If you can, just create a small project that reproduce the problem, so that I can fix it. -- Beno?t Minisini From gambas.fr at ...626... Thu Jun 30 16:11:31 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jun 2011 16:11:31 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: References: Message-ID: 2011/6/30 Gary D Walborn : > Benoit, > > ? I'd be happy to provide you with the project, but I don't think it will > do much good without the data files (which are not small). ?Is it > permissible to send a 4MB attachment thru the mailing list? > > gwalborn hum no ! we're currently working on a sharing site (in french for the time) > > -- > Gary D. Walborn > gwalborn at ...626... > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Thu Jun 30 16:11:59 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 30 Jun 2011 16:11:59 +0200 Subject: [Gambas-user] Probable bug with "_unknown" method when used for properties In-Reply-To: <201106301610.40645.gambas@...1...> References: <201106301610.40645.gambas@...1...> Message-ID: Le 30 juin 2011 16:10, Beno?t Minisini a ?crit : >> Benoit, >> >> ? ?I'd be happy to provide you with the project, but I don't think it will >> do much good without the data files (which are not small). ?Is it >> permissible to send a 4MB attachment thru the mailing list? >> >> gwalborn > > If you can, just create a small project that reproduce the problem, so that I > can fix it. :P > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard