ItemFind (ViP Specific)
At 06 JAN 1998 03:15:06AM Mike Edkins wrote:
I have found, when using ItemFind, that if the search is unsuccessful the result you get is 0 and not -1 as described in Help. Is this the case in all situations?
In the situation I am using this method I am using 0 as the start position and I am seaching a listbox.
At 06 JAN 1998 02:02PM John Averell Revelation wrote:
You have uncovered a porting bug. When ViP went from 16-bit to 32-bit, a return value should have been re-typed as long integer instead of short.
So, the bottom line is, instead of testing for failure if=-1, test for failure if <1. (You will never get a valid return <1 in any case.) Sorry for this problem.