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.
>>>
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
>
> 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
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
> 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
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
> 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
> >>> 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
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
>>> 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
> >
> > 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
> 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
> 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
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
>
> 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
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
> 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
> 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
> >
18 matches
Mail list logo