Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a New Dialog
#29
Thanks for explanation

I can not make the following work:
out
key Ca ;; Ctrl+A
g_sA.getsel
key X ;; Delete
str+ g_sA g_sB g_sC
str s=g_sA
str g_sB=g_sA
str sFind="<<**>>"
str d sss ss=s
str news="email"
str news1="name"
int i t tt x
rep
,int u=find(s sFind u)
,if(u<0) break
,sel i;;i is is a counter that u can use to have case statements to handle each instance of <<**>> found
,,case 0;;first instance of <<**>> found
,,sss.get(ss 0 u)
,,t=sss.len+6
,,outp news
,,outp sss
,,key Y
,,case 1;;second instance of <<**>> found
,,sss.get(ss 1 u)
,,t=u+6
,,outp news1
,,outp sss
,,
,,;To Do
,,;insert code here to do after after first instanceof <<**>> is found and text has been extracted
,,;note this will not stop the rep. just allows you to do something with the data
,,
,,
,,
,,case else;;any other time <<**>> is found accept first time
,,x=u-t
,,sss.get(ss t x)
,,t=u+6
,,outp sss
,,,,;To Do
,,;insert code here to do after after 2nd or > instance of <<**>> is found and text has been extracted
,,
,,
,,
,u+sFind.len
,i+1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)