[Gambas-user] Trim$
Bruce Steers
bsteers4 at gmail.com
Sun Jan 24 23:14:35 CET 2021
32 or less
Easier 😉
I think its funny to think that the ascii code for a space had been
overlooked in the comman.
On Sun, 24 Jan 2021, 22:04 Shane, <buster6seven at gmail.com> wrote:
> A white space is any character whose ASCII code is lower or equal than 32.
>
> should be
>
> A white space is any character whose ASCII code is lower or equal to 32.
>
> or
>
> A white space is any character whose ASCII code is lower than or equal
> to 32.
>
> I do not have perfect grammar just saying
>
>
> On 25/1/21 8:41 am, Benoît Minisini wrote:
> > Le 24/01/2021 à 22:34, Shane a écrit :
> >> Morning all
> >>
> >> I was in the need to remove spaces from a string today so I looked at
> >> the docs for the answer
> >>
> >> and found Trim$
> >>
> >> _Strip white spaces from the left and from the right of the string
> >> __Expr__._
> >>
> >> __
> >>
> >> _A white space is any character whose ASCII code is strictly lower
> >> than 32_.
> >>
> >> yep thats what I need but it did not work so I looked up ascii
> >> character for Space and found it was 32
> >>
> >> so yes this would not work! My question, is this by design? or should
> >> ascii 32 be included?
> >>
> >>
> >> Cheers Shane
> >>
> >>
> >
> > No, it's "lower or equal than 32".
> >
> > I have just fixed the documentation.
> >
> > Regards,
> >
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210124/069635df/attachment.htm>
More information about the User
mailing list