How would I detect if any string is in text1? so then it adds the text to text2???
Printable View
How would I detect if any string is in text1? so then it adds the text to text2???
I'm not really sure what you're trying to acheive here.
If you want to look for a particular string in text1 then use the instr function
ie.
if instr(1,text1.text,"mystring") then
text2.text="mystring"
end if
if you just want to make sure that text1 contains something then do the following
if trim(text1.text)<>"" then
text2.text=text1.text
end if
hope this answers your question
here is the code to check for string in text1
If Text1.Text <> "" then Text2 = Text2 + Text1