[Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Kevin Fishburne
Is there a way to check if an event is going to trigger in advance? My startup procedure (GUI.Main) allows two event procedures to trigger, Render.Screen_Draw (SDL) and Network.UDP_Read (UDP socket). When Screen_Draw triggers I need to know if there are pending UDP packets so I can avoid

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Bruce Bruen
On Sat, 2012-03-17 at 02:04 -0400, Kevin Fishburne wrote: Is there a way to check if an event is going to trigger in advance? Not in the known universe. It would be nice though, Lotto numbers, stock price changes etc etc :-) My startup procedure (GUI.Main) allows two event procedures to

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Kevin Fishburne
On 03/17/2012 03:05 AM, Bruce Bruen wrote: On Sat, 2012-03-17 at 02:04 -0400, Kevin Fishburne wrote: Is there a way to check if an event is going to trigger in advance? Not in the known universe. It would be nice though, Lotto numbers, stock price changes etc etc :-) My startup procedure

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Benoît Minisini
Le 17/03/2012 08:46, Kevin Fishburne a écrit : On 03/17/2012 03:05 AM, Bruce Bruen wrote: On Sat, 2012-03-17 at 02:04 -0400, Kevin Fishburne wrote: Is there a way to check if an event is going to trigger in advance? Not in the known universe. It would be nice though, Lotto numbers, stock

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Kevin Fishburne
On 03/17/2012 04:37 AM, Benoît Minisini wrote: Le 17/03/2012 08:46, Kevin Fishburne a écrit : On 03/17/2012 03:05 AM, Bruce Bruen wrote: On Sat, 2012-03-17 at 02:04 -0400, Kevin Fishburne wrote: Is there a way to check if an event is going to trigger in advance? Not in the known universe. It

[Gambas-user] wlan ready?

2012-03-17 Thread Bill-Lancaster
Gambas 3, Ubuntu 12.04, kde Is there a way to check if my wlan is connected? I want to run a project at startup that needs the wlan which sometime takes a little while to connect. I could use delay() but that is not very elegant! Bill Lancaster -- View this message in context:

Re: [Gambas-user] wlan ready?

2012-03-17 Thread Randall Morgan
You could call ping on a know external server and then examine the results... Or simply loop trying to use curl to connect to an external server. On Sat, Mar 17, 2012 at 5:05 AM, Bill-Lancaster bill-lancas...@lineone.netwrote: Gambas 3, Ubuntu 12.04, kde Is there a way to check if my

Re: [Gambas-user] Keyboard input help requested

2012-03-17 Thread Cogier
Benoît, Thanks for the reply. I don't seem to understand how to use your advice. Can you please provide a working example. Thanks for any assistance. Charlie Ogier Les îles Anglo-Normandes Benoît Minisini wrote: Le 15/03/2012 14:21, Cogier a écrit : Rolf, Thanks for the reply. Yes it

Re: [Gambas-user] Keyboard input help requested

2012-03-17 Thread Benoît Minisini
Le 17/03/2012 13:18, Cogier a écrit : Benoît, Thanks for the reply. I don't seem to understand how to use your advice. Can you please provide a working example. Thanks for any assistance. Charlie Ogier Les îles Anglo-Normandes Let's suppose that your startup class is a module named

Re: [Gambas-user] wlan ready?

2012-03-17 Thread tobi
hi, On Sat, 17 Mar 2012, Randall Morgan wrote: You could call ping on a know external server and then examine the results... Or simply loop trying to use curl to connect to an external server. On Sat, Mar 17, 2012 at 5:05 AM, Bill-Lancaster bill-lancas...@lineone.netwrote:

Re: [Gambas-user] Picture/Image with correct aspect ratio (G2)

2012-03-17 Thread Matti
Hi Rolf, sorry - what I remembered was how I worked with thumbnails. But they have a fixed size, and so I could use a square PictureBox of the same size. When I have larger images and/or don't know the dimensions, I use 'stretched' PictureBoxes and calculate their widht/height, just like you

Re: [Gambas-user] How to test if result is an array

2012-03-17 Thread Randall Morgan
Hi Benoit, I tried the code below and I get errors. If I use: if result Is Array Then I get a type error. If I use: if IsObject(result) And result Is Array Then I get an identifier error IsObject unknown identifier. I just updated my code base and recompiled and still have these errors. I

Re: [Gambas-user] How to test if result is an array

2012-03-17 Thread Emil Lenngren
You need to use And If, not only And. http://gambasdoc.org/help/lang/andif?v3 /Emil 2012/3/17 Randall Morgan rmorga...@gmail.com Hi Benoit, I tried the code below and I get errors. If I use: if result Is Array Then I get a type error. If I use: if IsObject(result) And result Is Array

Re: [Gambas-user] How to test if result is an array

2012-03-17 Thread Randall Morgan
Tried that, didn't work. I got the same errors On Sat, Mar 17, 2012 at 10:45 AM, Emil Lenngren emil.lenng...@gmail.comwrote: You need to use And If, not only And. http://gambasdoc.org/help/lang/andif?v3 /Emil 2012/3/17 Randall Morgan rmorga...@gmail.com Hi Benoit, I tried the code

Re: [Gambas-user] Official port to FreeBSD.

2012-03-17 Thread Alonso Cárdenas Márquez
El día 16 de marzo de 2012 18:01, François Gallo basic.gam...@gmail.com escribió: Le 16/03/2012 22:54, François Gallo a écrit : Le 16/03/2012 21:40, Randall Morgan a écrit : Would be nice if you could add this info to the install doc or wiki Good idea. I'm going to do that right now. The

Re: [Gambas-user] How to test if result is an array

2012-03-17 Thread Benoît Minisini
Le 17/03/2012 18:48, Randall Morgan a écrit : Tried that, didn't work. I got the same errors Sorry, I gave you the Gambas 2 syntax. You must do: If TypeOf(Result) = gb.Object And If Result Is Array Then ... But why didn't you try the second solution? -- Benoît Minisini