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 --

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 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 document

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 wrote: > You need to use "And If", not only "And". > http://gambasdoc.org/help/lang/andif?v3 > > /Emil > > 2012/3/17 Randall Morgan > > > Hi Benoit, > > > > I tried the code below and I get errors. If

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 > 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

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 a

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 di

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 > wrote: > > > > > Gambas 3,

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

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 repl

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 wrote: > > Gambas 3, Ubuntu 12.04, kde > Is there a way to check if my wlan is connected? > I want

[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: http://old.nabble.

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 u

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

2012-03-17 Thread nando
How about this... Let's say you want the Frame to render not less than 0.5 seconds after reading UDP stuff...but only if there is no UDP stuff to read. So, make a Timer that is solely for Frame render/updating. When UDP_Read triggers, store your data to render/update, but don't render it yet. A

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, >>

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 proce

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 trig