Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Charles Lei — — source: Informix-list mailing list archive (1991-1998)
The problem is with your while logic.
Your while loop should read
while (!sqlca.sqlcode)
since the value of sqlca.sqlcode is zero if it finds the row, and
sqlca.sqlcode == 100 if no more rows are found.
By the way, you better be careful and check for sqlca.sqlcode < 0
for error conditions, especially after the $open statement.
I hope this helps.
Charles Lei
lei@mediatech.com
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.