Extract strings from textfield

aiikahn

Registered User.
Local time
Today, 15:51
Joined
Nov 13, 2006
Messages
18
I was hoping if anyone could help extract strings from a textfield. In a textfield(textfield1) I would like to be able to extract words separated by delimiters and put in a separate textfield (textfield2) without the delimiter.

For example:

textfield1.value = "Apple, Orange, Tomatoes"

After extracted, textfield2 would hold the values:

textfield2.value = "Tomatoes Orange Apple"

I would really appreciate any help. Thank you so much!
 
If you don't need them reversed, the simplest solution would be to use the Replace() function to get rid of the delimiter.
 
Code:
textfield2 = Replace(textfield1, ",", "")

Regards,
Tim
 
I'll try that. Thank you so much. Now, how would do this using the split function?
 
Why don't you post your effort that failed and we'll try to fix it? I can't recall offhand how Split handles an expression with one value and no delimiter. You may have to force one in.
 

Users who are viewing this thread

Back
Top Bottom