virtualranger
Technical User
I have two different strings stored in variables. Var1 only occurs once in the memo field, var2 can occur more than once and could be postioned both before and after var1.
I need to count how many times var2 occurs AFTER the occurance of var1 in the memo.
I can use ATLINE() to return the line number of var1 but I'm not sure how to count the occurences of var2 thereafter. As far as I know ATLINE() only looks for the first instance of a string so I'm not sure how to procede or even if it's possible.
Any help greatly appreciated.
Thanks,
Jamie
I need to count how many times var2 occurs AFTER the occurance of var1 in the memo.
I can use ATLINE() to return the line number of var1 but I'm not sure how to count the occurences of var2 thereafter. As far as I know ATLINE() only looks for the first instance of a string so I'm not sure how to procede or even if it's possible.
Any help greatly appreciated.
Thanks,
Jamie