Parsing?? 
Author Message
 Parsing??

I am posting a form with multiple text boxes in it. The value of each text
box contains 2 values that are delimited by a"|". I am not sure how to pull
them apart. example...
<input type="text" name="newsPriority1" size="2" maxlength="2" value="1|53">
<input type="text" name="newsPriority2" size="2" maxlength="2" value="2|54">

How do I parse the number before the "|" and the number after?



Fri, 16 Jul 2004 21:50:18 GMT  
 Parsing??
Use split function. e.g.,

s=split(VALUE,"|")
msgbox s(0)
msgbox s(1)


Quote:
> I am posting a form with multiple text boxes in it. The value of each text
> box contains 2 values that are delimited by a"|". I am not sure how to
pull
> them apart. example...
> <input type="text" name="newsPriority1" size="2" maxlength="2"
value="1|53">
> <input type="text" name="newsPriority2" size="2" maxlength="2"
value="2|54">

> How do I parse the number before the "|" and the number after?



Fri, 16 Jul 2004 22:22:17 GMT  
 Parsing??
try using split.

output=Split(value, "|",-1 1)
msgbox output

...i think

Quote:
> I am posting a form with multiple text boxes in it. The value of each text
> box contains 2 values that are delimited by a"|". I am not sure how to
pull
> them apart. example...
> <input type="text" name="newsPriority1" size="2" maxlength="2"
value="1|53">
> <input type="text" name="newsPriority2" size="2" maxlength="2"
value="2|54">

> How do I parse the number before the "|" and the number after?



Fri, 16 Jul 2004 22:30:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Parsing Dates to Functions in Acc2000 - Bug??

2. Stripping/Parsing data

3. Parse via a parameter-table (repost)

4. Parsing a field for illegal text

5. Run Query based on Listbox results - text parsing?

6. Parse txt file into A2K

7. Parsing a file

8. Need help parsing Memo Fld

9. parsing name fields debug code

10. parsing name field into first and last discarding middle initial

11. parse data into flat file structure

12. Parse Seq. file

 

 
Powered by phpBB® Forum Software