PC Review


Reply
Thread Tools Rate Thread

Cutting 3 characters from a string

 
 
=?Utf-8?B?R2VtX21hbg==?=
Guest
Posts: n/a
 
      17th Apr 2006
Hi

I am wanting take the first three characters from an input text box. Can
anyone tell me if JavaScript has a function to do this?

Thank you for your assistance

Also I am great difficulty in trying to figure the code to test if an input
text box is empty.
Again if someone has something they could share I would be grateful

Gem_man
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      17th Apr 2006
See http://www.w3schools.com/js/default.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Gem_man" <(E-Mail Removed)> wrote in message newsE2FB297-1CF5-49F1-A7F9-(E-Mail Removed)...
| Hi
|
| I am wanting take the first three characters from an input text box. Can
| anyone tell me if JavaScript has a function to do this?
|
| Thank you for your assistance
|
| Also I am great difficulty in trying to figure the code to test if an input
| text box is empty.
| Again if someone has something they could share I would be grateful
|
| Gem_man


 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      18th Apr 2006
In particular
http://www.w3schools.com/jsref/jsref_substr.asp
What you need is stringObject.substr(start,length)Or to be specific
stringObject.substr(0,3)Stefan B Rusynko wrote:> See
http://www.w3schools.com/js/default.asp> > --> >
_____________________________________________> SBR @ ENJOY (-:
[ Microsoft MVP - FrontPage ]> "Warning - Using the F1 Key will not break
anything!" (-;> To find the best Newsgroup for FrontPage support see:>
http://www.net-sites.com/sitebuilder/newsgroups.asp>
_____________________________________________> > > "Gem_man"
<(E-Mail Removed)> wrote in message>
newsE2FB297-1CF5-49F1-A7F9-(E-Mail Removed)... >> Hi>> >> I am
wanting take the first three characters from an input text box.>> Can anyone
tell me if JavaScript has a function to do this?>> >> Thank you for your
assistance>> >> Also I am great difficulty in trying to figure the code to
test if>> an input text box is empty.>> Again if someone has something they
could share I would be grateful>> >> Gem_man-- Cheers,Trevor L.Website:
http://tandcl.homemail.com.au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
More on cutting characters from one cell and pasting into another Abay Microsoft Excel Discussion 10 14th May 2007 11:06 AM
Re: cutting characters from a cell RagDyer Microsoft Excel Worksheet Functions 0 6th Jan 2007 02:46 AM
Re: cutting characters from a cell Alan Microsoft Excel Worksheet Functions 0 5th Jan 2007 08:43 PM
Pull a set number of characters from a cell without cutting off a =?Utf-8?B?bm1w?= Microsoft Excel Programming 16 18th Oct 2006 03:27 AM
Printing to far to the left cutting off some characters. Paul Microsoft Outlook Printing 8 28th Jul 2004 06:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.