|
-
Jun 30th, 2004, 07:14 AM
#1
Thread Starter
New Member
Scan until character found?
Hi folks.
I need some code done for this problem.
Instead of;
element would be; DM016A_RF_LIMS
element=formName.LIMIT_lb.options[i].text
compare=element.substr(0,5);
I need;
element=formName.LIMIT_lb.options[i].text
compare=element (string up until the first underscore, NOT THE 1st FIVE CHARACTERS as above)
?
Cheers
Home is where the heart is.
-
Jun 30th, 2004, 08:55 AM
#2
Try the indexOf method of String.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 1st, 2004, 08:49 AM
#3
Frenzied Member
Originally posted by CornedBee
Try the indexOf method of String.
... Look it up on www.w3schools.com ...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|