Posts: 97
Threads: 48
Joined: Sep 2010
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
Posts: 97
Threads: 25
Joined: Jan 2013
Yes it is possible, but can you precise where the text is to be found? Is it in a file? a web page?
Posts: 97
Threads: 48
Joined: Sep 2010
Hello,
The text is extracted and placed in a string. From there this should take place.
Posts: 1,335
Threads: 61
Joined: Jul 2006
without knowing more here is a basic example
Function
Function5
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