This issue was resolved in PowerBASIC For Windows 9.03.

For PBWin 9.03 and newer the starting row needs to be one (1) as described in help file.

This information below is only valid for PBWin 9.02 and earlier.

The starting row for a LISTVIEW FIND and LISTVIEW FIND EXACT to search starting at the first row, the row& parameter needs to be zero (0) and not one (1) as currently described in the help file.


LISTVIEW FIND hDlg, id&, row&, StrExpr TO datav&
Strings in the first column of a LISTVIEW are searched to find the first string which begins with the data in StrExpr, regardless of any characters which follow. Comparisons are not case-sensitive. Strings are searched beginning with the string specified by row&, and ending with the last string in the LISTVIEW. Searching does not wrap to the beginning of the list. The row number (row&) is indexed to 1 (1=first, 2=second, etc.). To search the entire LISTVIEW starting with the first string, row& should be set to zero (0). If a matching string is found, the index value of the match is assigned to the variable specified by datav&. If no match is found, the value zero (0) is assigned to it.


LISTVIEW FIND EXACT hDlg, id&, row&, StrExpr TO datav&
Strings in the first column of a LISTVIEW are searched to find the first string which exactly matches the data in StrExpr. Comparisons are not case-sensitive. Strings are searched beginning with the string specified by row&, and ending with the last string in the LISTVIEW. Searching does not wrap to the beginning of the list. The row number (row&) is indexed to 1 (1=first, 2=second, etc.). To search the entire LISTVIEW starting with the first string, row& should be set to zero (0). If a matching string is found, the index value of the match is assigned to the variable specified by datav&. If no match is found, the value zero (0) is assigned to it.