View previous topic :: View next topic
|
Author |
Message |
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Code: |
Inspect ws-var converting E-info to A-info.
|
If I get a character in ws-var which is not defined in the variable
E-info then that value is not converted.
I need to trap this condition.
Is there any specific return-code that the Inspect statement will give upon such a condition? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
answer to your question, NO:
but if you
PERFORM varying subscript from 1 by 1 until subscript = length of ws-var
initialize tally-counter
INSPECT e-info tallying tally-counter for ws-var(subscript:1)
if tally-counter = 0
then ws-var(subscript:1) not in e-info
trap condition
end-if
end-perform |
|
Back to top |
|
|
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Hey thanks for the information.
It working perfectly |
|
Back to top |
|
|
|