02-11-2013, 01:21 AM
Do you really want to stop? or Pause? i am thinking you mean pause. But if u just want to stop don't use rep.I think your asking how do u perform actions with each time it is found. You will need to make a sel case syntax.
e.g.,
sel i
case 0
statements go here
case 1
statements go here
case 2
statements go here
etc, etc etc........
or
if u want to do different action on first time and the same for the rest after
sel i
case o
statements go here
case else
statements go here
example:
Function Function127
also are you sure your delimiters are correct in your findw statement?
e.g.,
sel i
case 0
statements go here
case 1
statements go here
case 2
statements go here
etc, etc etc........
or
if u want to do different action on first time and the same for the rest after
sel i
case o
statements go here
case else
statements go here
example:
Function Function127
out
str s=" aaaaa <<**>> bbbbbb bbbbb1 <<**>> cccccc ccccccc1 <<**>> aaaaaaaaaa2 <<**>> bbbbbbbbbb2 <<**>> cccccccc2 <<**>>"
str sFind="<<**>>"
str d sss ss=s
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
,,out 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
,,out 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