Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text found, action
#4
without knowing more here is a basic example

Function Function5
Code:
Copy      Help
str s="string i am **** checking"
int i=findw(s "****")
if i!=-1
,sel(list("option 1[]option 2[]option 3"))
,,case 1
,,out "this is option 1"
,,s.findreplace("****" "option 1" 2"")
,,case 2
,,out "this is option 2"
,,s.findreplace("****" "option 2" 2"")
,,case 3
,,s.findreplace("****" "option 3" 2"")
,,case else ret
out s

can use other functions to search string as well


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)