third_party_content:community:commentary:forums_nonworks:6483ac3db1ef640685256584002d5411

Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/6483ac3db1ef640685256584002d5411.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1