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

2010-12-01 Thread Ron
Yes we did apparently... >>> >>> Look at the attached screenshot.. >>> I marked -with my mouse- all the full lines of text you see in there >>> except the last one "Main.ControlLed("EIB", "On") >>> >>> The last letters of "byte" are not back colored purple, even though I >>> have selected them. >>>

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

2010-11-30 Thread Ron
On 30-11-2010 15:07, Benoît Minisini wrote: >> 2010/11/30 Benoît Minisini: Don't want to bash, but why are CLng and CSng removed/replaced by CLong and CSingle and CStr is still there / not replaced by CString? >>> They were not replaced, I just removed some abbreviations. But I admit it >

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

2010-11-30 Thread Benoît Minisini
> 2010/11/30 Benoît Minisini : > >> Don't want to bash, but why are CLng and CSng removed/replaced by > >> CLong and CSingle and CStr is still there / not replaced by CString? > > > > They were not replaced, I just removed some abbreviations. But I admit it > > maye be stupid, as it just takes mem

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

2010-11-30 Thread Ron
2010/11/30 Benoît Minisini : >> Don't want to bash, but why are CLng and CSng removed/replaced by >> CLong and CSingle and CStr is still there / not replaced by CString? >> > > They were not replaced, I just removed some abbreviations. But I admit it maye > be stupid, as it just takes memory in the

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

2010-11-30 Thread Benoît Minisini
> Don't want to bash, but why are CLng and CSng removed/replaced by > CLong and CSingle and CStr is still there / not replaced by CString? > They were not replaced, I just removed some abbreviations. But I admit it maye be stupid, as it just takes memory in the compiler. The interpreter does not

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

2010-11-30 Thread Ron
Don't want to bash, but why are CLng and CSng removed/replaced by CLong and CSingle and CStr is still there / not replaced by CString? I see some "vb logics" creeping in... same as marking text in insert and normal mode in IDE i wrote about... Back in the Gambas2 version it was so logical and coo

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

2010-11-30 Thread Benoît Minisini
> Perhaps GAMBAS needs something like Python's y=repr( x) to > guarantee y is a string representation of x > The name of the function is CStr() - or Str$() if you need localization. Regards, -- Benoît Minisini -- Inc

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

2010-11-30 Thread Benoît Minisini
> >>> Mail.module:IF IsString(Main.GlobalVar["Minute"]) THEN > >>> Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"]) > >> > >> Just seems to be checks to see if the variant value from that collection > >> isn't empty, to prevent errors. > > > > So use 'Not IsNull()' instead. > > I get

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

2010-11-30 Thread B. Jack
Perhaps GAMBAS needs something like Python's y=repr( x) to guarantee y is a string representation of x > Date: Tue, 30 Nov 2010 09:04:58 +0100 > From: r...@cyberjunky.nl > To: gambas-user@lists.sourceforge.net > Subject: Re: [Gambas-user] Removing / Modifying IsXXXX() fun

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

2010-11-30 Thread Ron
>>> Mail.module:IF IsString(Main.GlobalVar["Minute"]) THEN >>> Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"]) >> Just seems to be checks to see if the variant value from that collection >> isn't empty, to prevent errors. > So use 'Not IsNull()' instead. > I get when I do If Not IsN

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

2010-11-29 Thread Benoît Minisini
> > > > When you do IsNumber(Val(...)), you actually want the new behaviour I > > want to implement: checking if a string can be safely converted to what > > you want. In the new syntax, you will directly do IsNumber(...). > > > > The IsDigit(), IsLetter()... functions are not concerned by the ch

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] 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] 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() 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 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] 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 > >