Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for Suggestion how to handle

Status
Not open for further replies.

CoolDudeeh

IS-IT--Management
Oct 21, 2003
21
US
I am importing a stream(instr) from a flat file that might look like this.

A*12*2*3*4
B*1*22*3*4
C*1*2*3
D*11*2*33*4

Record A,B,D all process fine.
Record C does not seem to do the if or else.

I am looking for a way to handle.
Any suggestions? (index?)

In my program I have something like

if entry(5,instr,"*") = "4" then
do:
blah blah blah
end.
else
do:
blah blah blah
end.
 
From the Progress HELP entry for the ENTRY function (ELEMENT is the first parameter for the function):

"If the value of ELEMENT does not correspond to an entry in the list, Progress raises the ERROR condition
 
My second thought: use the NUM-ENTRIES function to count the number of elements, if it is >= 5, do your [entry(5,] test, if not do your [else do:] stuff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top