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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program Stuck in Loop

Status
Not open for further replies.

rstitzel

MIS
Apr 24, 2002
286
US
I have an interactive program that gets stuck in a loop if I enter a customer number with leading zeros.

The first screen contains the following fields:

CustNum 5 0 Numeric Only
Block 1 0 Numeric Only
Type 1 Alphanumeric
InvNum 3 0 Numeric Only

The user fills in all of the fields listed above and hits enter.

In the program I chain to the customer file to make sure it's a valid customer. In the customer file we have customer numbers that range from 00001 - 99999.

I created a KLIST to use for the chain operation using the fields from the screen.

custnumblck klist
kfld CustNum
kfld Block

The program works without a problem when the user enters a customer number that DOESN'T have LEADING zeros.

Does anyone have any ideas as to why this would be happening?

Thanks in advance for any and all help.

 
NEVERMIND......WAS SOMETHING ELSE CAUSING THE LOOP......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top