|
-
February 3rd, 2000, 11:42 AM
#1
Strings
How would I detect if any string is in text1? so then it adds the text to text2???
-
February 3rd, 2000, 11:50 AM
#2
Re: Strings
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
-
February 3rd, 2000, 02:51 PM
#3
Re: Strings
here is the code to check for string in text1
If Text1.Text <> "" then Text2 = Text2 + Text1
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
|