Starcraft
February 3rd, 2000, 10:42 AM
How would I detect if any string is in text1? so then it adds the text to text2???
|
Click to See Complete Forum and Search --> : Strings Starcraft February 3rd, 2000, 10:42 AM How would I detect if any string is in text1? so then it adds the text to text2??? February 3rd, 2000, 10:50 AM 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 AndyK February 3rd, 2000, 01:51 PM here is the code to check for string in text1 If Text1.Text <> "" then Text2 = Text2 + Text1 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |