Groups > dBase > dBase Internet > Re: JavaScript LTrim function?




JavaScript LTrim function?

JavaScript LTrim function?
Tue, 1 Apr 2008 12:58:16 -0500
Hi all,

Is there a function in JavaScript like the dBase ltrim function?  I have to 
make sure that there are no leading spaces placed into a field.

Thanks
Dan Barbaria 

Post Reply
Re: JavaScript LTrim function?
Tue, 1 Apr 2008 17:19:37 -0700
"Dan Barbaria" <daniel.barbaria at ops.org> wrote in message 
news:NNdNFTClIHA.644@news-server...
> Hi all,
>
> Is there a function in JavaScript like the dBase ltrim function?  I have 
> to make sure that there are no leading spaces placed into a field.

Not that I am aware of.
You have to resort to Regular Expression.

The following link will help:

http://www.somacon.com/p355.php


Greg Hill

Post Reply
Re: JavaScript LTrim function?
Tue, 1 Apr 2008 20:57:50 -0400
Hi Dan

Oddly enough, my first choice came up blank. I went to w3schools.com,
which has a good JavaScript section, but it did not have anything for
trimming.
So I went to the Google and got thousands of choices to wade through.
This one has a good explanation, and a bunch of comments, etc.

http://www.delphifaq.com/faq/f1031.shtml

Good luck
David Ball
www.ChelseaData.ca


"Dan Barbaria" <daniel.barbaria at ops.org> wrote in message
news:NNdNFTClIHA.644@news-server...
> Hi all,
>
> Is there a function in JavaScript like the dBase ltrim function?  I
have to
> make sure that there are no leading spaces placed into a field.
>
> Thanks
> Dan Barbaria
>
>

Post Reply
Re: JavaScript LTrim function?
Wed, 2 Apr 2008 09:28:51 -0500
Thanks Greg

For some reason the internet filter where I work is blocking me from getting 
to the site.  I will check it out at home tonight.

Dan Barbaria

"Greg Hill" <ghill123@hotmail.com> wrote in message 
news:%233i4KoFlIHA.1688@news-server...
>
> "Dan Barbaria" <daniel.barbaria at ops.org> wrote in
message 
> news:NNdNFTClIHA.644@news-server...
>> Hi all,
>>
>> Is there a function in JavaScript like the dBase ltrim function?  I
have 
>> to make sure that there are no leading spaces placed into a field.
>
> Not that I am aware of.
> You have to resort to Regular Expression.
>
> The following link will help:
>
> http://www.somacon.com/p355.php
>
>
> Greg Hill
>
> 

Post Reply
Re: JavaScript LTrim function?
Wed, 2 Apr 2008 09:33:27 -0500
Hi David,

"David Ball" <Thanks.But@NoSpam.4.me> wrote in message 
news:fzvqg9FlIHA.1684@news-server...
> Hi Dan
>
> Oddly enough, my first choice came up blank. I went to w3schools.com,
> which has a good JavaScript section, but it did not have anything for
> trimming.

w3schools is always my first choice as well.
> So I went to the Google and got thousands of choices to wade through.
> This one has a good explanation, and a bunch of comments, etc.
>
> http://www.delphifaq.com/faq/f1031.shtml

Thanks for the link I'll check it out.
>
> Good luck

Thanks I need it. :-)

Dan Barbaria 

Post Reply
about | contact