Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text found, action
#1
Hello,

How can i search for text, when it is found i want a listbox with several options, when an option has selected, the found text should be replaced by it.

Is this possible?

Grz

Sonic
#2
Yes it is possible, but can you precise where the text is to be found? Is it in a file? a web page? Smile
#3
Hello,

The text is extracted and placed in a string. From there this should take place.
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)