View previous topic :: View next topic
|
Author |
Message |
Raje1002
New User
Joined: 21 Feb 2009 Posts: 11 Location: India
|
|
|
|
Hi all,
I want to see whether the word "COPY" is present in a line or not.
Currently I have a line which will tells if the "COPY" is present in the 3rd word of that line.
"IF WORD(CBLLINE,3) ¬= 'COPY' THEN ITERATE"
I want to perform a task if the word "COPY" is present in that line.
How to achecive this? |
|
Back to top |
|
|
Guest
|
|
|
|
Hi Raje1002,
The following can be used to find the presence of copy:
Code: |
if Pos('copy',cblline) = 0 then
say 'no copy found'
|
devil13
There is always a better solution. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I would go for WORDPOS...
O. |
|
Back to top |
|
|
|