Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Dimitris Anogiatis
I use INC Application.Busy and DEC Application.Busy in my applications on Debian Lenny (with LXDE) and Gambas 2.21 and it works just fine. Regards, Dimitris On Wed, Nov 24, 2010 at 9:23 PM, vikram wrote: > > Setting FMain.Mouse and calling WAIT is useless. Application.Busy should > > alrea

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread vikram
> Setting FMain.Mouse and calling WAIT is useless. Application.Busy should > already set the busy cursor for every widget in the application. Otherwise > this is a bug. Application.Busy alone is not showing a busy pointer on Debian Squeeze, with Gambas 2.21. Regards, Vikram --

Re: [Gambas-user] Result object, again

2010-11-24 Thread Ian Haywood
2010/11/25 Benoît Minisini : >> good evening all, >> i have another question about my eternal punishment: the result object :-) >> >> caveat answered to a former question about results in general: >>  >If you got into the habit of reading all the >>  >records you've selected into memory (or even if

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
> Benoit, > The IsXXX functions confused me because when testing IsNumber("123") I > got an error similar to "Expected number got a string". It seems you > needed to know the type before testing for it. Yes. Not really useful, except with variants. > I therefore do not use > it. However I believ

Re: [Gambas-user] isNull()

2010-11-24 Thread Benoît Minisini
> I use IsNull extensively, is that going to be removed? > > richard > No. I use it extensively too. Here is the result of my thought: - You can know the datatype of a variant with the TypeOf() function. You don't have to use the current Is() functions. - But you often need to know if a

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Michael
Benoit, The IsXXX functions confused me because when testing IsNumber("123") I got an error similar to "Expected number got a string". It seems you needed to know the type before testing for it. I therefore do not use it. However I believe new versions of software should be backward compatible

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Benoît Minisini
>If I understand you right, > If Not IsDigit(TextBox.Text) Then... >wouldn't be changed? No. All IsXXX() functions that just test characters won't be changed. -- Benoît Minisini -- Increase Visibility of Y

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
> On Wednesday 24 November 2010 22:32:26 Benoît Minisini wrote: > > > On Wednesday 24 November 2010 22:08:34 Benoît Minisini wrote: > > > > > > Hi Benoit I use isDate() quite a lot, isNumber I think once > > > > > > Regards > > > richard > > > > In which context exactly? > > When I've got textb

Re: [Gambas-user] Result object, again

2010-11-24 Thread Benoît Minisini
> good evening all, > i have another question about my eternal punishment: the result object :-) > > caveat answered to a former question about results in general: > >If you got into the habit of reading all the > >records you've selected into memory (or even if the Result object > >worked > >

[Gambas-user] Type Mismatch error with max neg long int as constant

2010-11-24 Thread nando
In Gambas2, I get a type mismatch error...but no error if ends in a 7 PUBLIC CONST LOWESTLONG AS Long = -9223372036854775808 'from wiki: -9.223.372.036.854.775.808 -Fernando -- Increase Visibility of Your 3D Game App &

[Gambas-user] isNull()

2010-11-24 Thread richard terry
I use IsNull extensively, is that going to be removed? richard -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread richard terry
On Wednesday 24 November 2010 22:32:26 Benoît Minisini wrote: > > On Wednesday 24 November 2010 22:08:34 Benoît Minisini wrote: > > > > Hi Benoit I use isDate() quite a lot, isNumber I think once > > > > Regards > > richard > > In which context exactly? > When I've got textboxes and user has ente

Re: [Gambas-user] Removing / Modifying IsXXXX() functio ns in Gambas 3

2010-11-24 Thread math.e...@t-online.de
If I understand you right, If Not IsDigit(TextBox.Text) Then... wouldn't be changed? -Original-Nachricht- Subject: [Gambas-user] Removing / Modifying Is() functions in Gambas 3 Date: Wed, 24 Nov 2010 12:08:34 +0100 From: Benoît Minisini To: gambas-user@lists

Re: [Gambas-user] To the wish list: FHelpBrowser

2010-11-24 Thread math.e...@t-online.de
Thanks, Benoît. The "make" error has gone, the help browser behaves like any other window, and I even learned how to copy from help. Fine! -Original-Nachricht- Subject: Re: [Gambas-user] To the wish list: FHelpBrowser Date: Tue, 23 Nov 2010 18:57:25 +0100 From: Benoît

Re: [Gambas-user] Print html direct?

2010-11-24 Thread Jorge Carrión
Hi: Try wkhtmltopdf, in ubuntu repositories too... If you html code carry on the Utf-8 esecification it works... Goog Luck 2010/11/24 charlesg > > > Dimitris Anogiatis wrote: > > > > Hey guys, > > > > Does htmldoc have any UTF-8 support? > > > > Looking at www.htmldoc.org I don't think there is

[Gambas-user] Result object, again

2010-11-24 Thread tobias
good evening all, i have another question about my eternal punishment: the result object :-) caveat answered to a former question about results in general: >If you got into the habit of reading all the >records you've selected into memory (or even if the Result object >worked >that way behind

Re: [Gambas-user] Print html direct?

2010-11-24 Thread charlesg
Dimitris Anogiatis wrote: > > Hey guys, > > Does htmldoc have any UTF-8 support? > Looking at www.htmldoc.org I don't think there is UTF-8 support. I just use it for formatting tables. It is in the Ubuntu repository (sudo apt-get install htmldoc) but I don't know about other distros. rgds -

Re: [Gambas-user] Fwd: Re: Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Fabien Bodard
nevertheless some shortcut functions to analyse the text in function of the localization will be useful and a isPrintable ... to say if all the characters in the string can be displayed (not special characters) -- Increa

[Gambas-user] Fwd: Re: Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
On Wed, 24 Nov 2010 11:53:20 pm you wrote: > > Benoît, > > > > MAJOR PANIC! I use IsNumber extensively to do quick checks on field > > parsing across heterogeneous databases. Using the 80-20 rule I can > > parse text fields for junk appendices to an expected numeric. > > Code such as > > > >

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Rolf-Werner Eilert
Am 24.11.2010 12:08, schrieb Benoît Minisini: > Hi, > > I'm currently thinking about modifying/removing all Is() functions in > Gambas 3. > > They mainly test the datatype of their expression. So, either the datatype is > known at compile time, and there should be no need of testing it ; either

Re: [Gambas-user] Print html direct?

2010-11-24 Thread Dimitris Anogiatis
Hey guys, Does htmldoc have any UTF-8 support? Regards, Dimitrios On Wed, Nov 24, 2010 at 7:36 AM, Rolf-Werner Eilert < eilert-sprac...@t-online.de> wrote: > Am 24.11.2010 13:54, schrieb charlesg: > > > > Hi > > > > > > Gregor Burck wrote: > >> > >> Can I direct print html? > >> > > > > I shel

Re: [Gambas-user] Print html direct?

2010-11-24 Thread Rolf-Werner Eilert
Am 24.11.2010 13:54, schrieb charlesg: > > Hi > > > Gregor Burck wrote: >> >> Can I direct print html? >> > > I shell to htmldoc to turn the html to pdf. > e.g. > shll = "htmldoc --bodyfont Sans --fontsize 6.0 --outfile "& > Application.path& "/tfc.pdf --webpage "& Application.path& "/tfc.htm" >

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
> > Benoît, > > MAJOR PANIC! I use IsNumber extensively to do quick checks on field > parsing across heterogeneous databases. Using the 80-20 rule I can parse > text fields for junk appendices to an expected numeric. > Code such as > > vItem=split(result!note," ",NULL,TRUE)[0] >I

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Bruce Bruen
On Wed, 24 Nov 2010 09:38:34 pm Benoît Minisini wrote: > Hi, > > I'm currently thinking about modifying/removing all Is() functions in > Gambas 3. > > They mainly test the datatype of their expression. So, either the datatype > is known at compile time, and there should be no need of testing

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
On Wed, 2010-11-24 at 21:57 +1030, Bruce Bruen wrote: > I really don't see a problem here. > Directly from the help: > "IsObject > Returns TRUE if the vRef is an object or a null reference. > IsObject(NULL) doesn't refer to the NULL constant being an object, it is > answering correctly that a

Re: [Gambas-user] Print html direct?

2010-11-24 Thread charlesg
Hi Gregor Burck wrote: > > Can I direct print html? > I shell to htmldoc to turn the html to pdf. e.g. shll = "htmldoc --bodyfont Sans --fontsize 6.0 --outfile " & Application.path & "/tfc.pdf --webpage " & Application.path & "/tfc.htm" SHELL shll WAIT then: shll = "lpr " & Application.pat

[Gambas-user] Print html direct?

2010-11-24 Thread Gregor Burck
Hi, I'm still experimenting with printing, the scale method was a good hint for me. But now a other question: Can I direct print html? The background: I try to improve a application, and I wonder if it is esyer to generate html instead of print direkt, cause there are elements for layout. In thi

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
On Wed, 2010-11-24 at 12:21 +0100, Fabien Bodard wrote: > For exemple > dim o as object > > isobject(o) will return true even if o is null... o can only be an object > > but > dim v as variant > > is object(v) will return false if it is null ... it can be anything hm... i checked this in Gamba

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Ron
On 24-11-2010 12:28, Benoît Minisini wrote: >> On 24-11-2010 12:08, Benoît Minisini wrote: >>> Hi, >>> >>> I'm currently thinking about modifying/removing all Is() functions in >>> Gambas 3. >>> >>> They mainly test the datatype of their expression. So, either the >>> datatype is known at compi

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
On Wed, 2010-11-24 at 21:57 +1030, Bruce Bruen wrote: > Returns TRUE if the vRef is an object or a null reference. > IsObject(NULL) doesn't refer to the NULL constant being an object, it is > answering correctly that a vRef=NULL is a null reference! > yes i saw now the help about NULL reference

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Benoît Minisini
> i will describe my thoughts about that, > > i read the > > http://gambasdoc.org/help/cat/constants > > and i saw that a TRUE or FALSE value is a Language constant. > Also NULL is a Language constant! > > So i expected from IsObject() to return FALSE when it is feed with > constants as argumen

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
i will describe my thoughts about that, i read the http://gambasdoc.org/help/cat/constants and i saw that a TRUE or FALSE value is a Language constant. Also NULL is a Language constant! So i expected from IsObject() to return FALSE when it is feed with constants as argument. So PRINT IsObject(

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
> On Wednesday 24 November 2010 22:08:34 Benoît Minisini wrote: > > Hi Benoit I use isDate() quite a lot, isNumber I think once > > Regards > richard > In which context exactly? -- Benoît Minisini -- Increase Visibil

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Benoît Minisini
> On 24-11-2010 12:08, Benoît Minisini wrote: > > Hi, > > > > I'm currently thinking about modifying/removing all Is() functions in > > Gambas 3. > > > > They mainly test the datatype of their expression. So, either the > > datatype is known at compile time, and there should be no need of > >

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Bruce Bruen
On Wed, 24 Nov 2010 06:51:50 pm Demosthenes Koptsis wrote: > hi, > > PRINT IsObject(NULL) > > returns > TRUE > > The NULL constant is an object? I really don't see a problem here. Directly from the help: "IsObject Syntax bRes = IsObject ( vRef ) AS Booelan bRes = Object? ( vRef ) AS Boolean

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread richard terry
On Wednesday 24 November 2010 22:08:34 Benoît Minisini wrote: Hi Benoit I use isDate() quite a lot, isNumber I think once Regards richard > Hi, > > I'm currently thinking about modifying/removing all Is() functions in > Gambas 3. > > They mainly test the datatype of their expression. So, e

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Ron
On 24-11-2010 12:09, Benoît Minisini wrote: >> Hi, >> >> Heres how i "fixed" it, hope it is the right way to display a "wait" cursor >> while a process executes. >> >> - >> FMain.Mouse = Mouse.Wait >> WAIT >> Application.Busy = 1 >> >> SHELL "sha512sum lenny.iso" TO actualSU

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Fabien Bodard
Le 24 novembre 2010 11:59, Benoît Minisini a écrit : >> hi, >> >> PRINT IsObject(NULL) >> >> returns >> TRUE >> >> The NULL constant is an object? > > NULL is almost everything. So IsObject(Null) and IsString(Null) returns TRUE. > But IsDate(Null) returns FALSE, whereas Null can be a date. > > So

Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Ron
On 24-11-2010 12:08, Benoît Minisini wrote: > Hi, > > I'm currently thinking about modifying/removing all Is() functions in > Gambas 3. > > They mainly test the datatype of their expression. So, either the datatype is > known at compile time, and there should be no need of testing it ; either y

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
sorry... i ll be more careful next time. On Wed, 2010-11-24 at 11:53 +0100, Fabien Bodard wrote: > 2010/11/24 Demosthenes Koptsis : > > > > hi, > > > > PRINT IsObject(NULL) > > > > returns > > TRUE > > > > The NULL constant is an object? > > nead the help please ! > > http://gambasdoc.org/help/

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Benoît Minisini
> Hi, > > Heres how i "fixed" it, hope it is the right way to display a "wait" cursor > while a process executes. > > - > FMain.Mouse = Mouse.Wait > WAIT > Application.Busy = 1 > > SHELL "sha512sum lenny.iso" TO actualSUM > > Application.Busy = 0 > FMain.Mouse = Mouse.De

Re: [Gambas-user] About arrays

2010-11-24 Thread Demosthenes Koptsis
i expected a FALSE than all this code show up in console. On Wed, 2010-11-24 at 11:53 +0100, Benoît Minisini wrote: > > Good morning to all, > > > > write this code to see something strange > > > > DIM aInt2[1] AS String > > > > PRINT IsObject(aInt2) > > > > Gambas2-2.21 rev3300 > > Ubuntu 10

[Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Benoît Minisini
Hi, I'm currently thinking about modifying/removing all Is() functions in Gambas 3. They mainly test the datatype of their expression. So, either the datatype is known at compile time, and there should be no need of testing it ; either you are using a Variant, and you can use TypeOf() to g

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread vikram
Hi, Heres how i "fixed" it, hope it is the right way to display a "wait" cursor while a process executes. - FMain.Mouse = Mouse.Wait WAIT Application.Busy = 1 SHELL "sha512sum lenny.iso" TO actualSUM Application.Busy = 0 FMain.Mouse = Mouse.Default

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Benoît Minisini
> hi, > > PRINT IsObject(NULL) > > returns > TRUE > > The NULL constant is an object? NULL is almost everything. So IsObject(Null) and IsString(Null) returns TRUE. But IsDate(Null) returns FALSE, whereas Null can be a date. So things are not very logical there. -- Benoît Minisini -

Re: [Gambas-user] About arrays

2010-11-24 Thread Benoît Minisini
> > > Good morning to all, > > > > > > write this code to see something strange > > > > > > DIM aInt2[1] AS String > > > > > > PRINT IsObject(aInt2) > > > > > > Gambas2-2.21 rev3300 > > > Ubuntu 10.04, AMD64 > > > > I see nothing strange. > > Ah yes, I got the "double free" error. Mmm. I'm n

Re: [Gambas-user] About arrays

2010-11-24 Thread Benoît Minisini
> > Good morning to all, > > > > write this code to see something strange > > > > DIM aInt2[1] AS String > > > > PRINT IsObject(aInt2) > > > > Gambas2-2.21 rev3300 > > Ubuntu 10.04, AMD64 > > I see nothing strange. Ah yes, I got the "double free" error. -- Benoît Minisini -

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Fabien Bodard
2010/11/24 Demosthenes Koptsis : > > hi, > > PRINT IsObject(NULL) > > returns > TRUE > > The NULL constant is an object? nead the help please ! http://gambasdoc.org/help/lang/isobject > > -- > Regards, > Demosthenes Koptsis. > > > -

Re: [Gambas-user] About arrays

2010-11-24 Thread Benoît Minisini
> Good morning to all, > > write this code to see something strange > > DIM aInt2[1] AS String > > PRINT IsObject(aInt2) > > Gambas2-2.21 rev3300 > Ubuntu 10.04, AMD64 > I see nothing strange. -- Benoît Minisini --

Re: [Gambas-user] About arrays

2010-11-24 Thread Fabien Bodard
2010/11/24 Demosthenes Koptsis : > Good morning to all, > > write this code to see something strange > > DIM aInt2[1] AS String > > PRINT IsObject(aInt2) > > Gambas2-2.21 rev3300 > Ubuntu 10.04, AMD64 > that ? False *** glibc detected *** menudyn: double free or corruption (fasttop): 0x02

[Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
hi, PRINT IsObject(NULL) returns TRUE The NULL constant is an object? -- Regards, Demosthenes Koptsis. -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base &

Re: [Gambas-user] About arrays

2010-11-24 Thread Demosthenes Koptsis
Good morning to all, write this code to see something strange DIM aInt2[1] AS String PRINT IsObject(aInt2) Gambas2-2.21 rev3300 Ubuntu 10.04, AMD64 -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $5