Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Set Near/recno(0) won't work
Message
From
11/01/2001 13:15:39
 
 
To
11/01/2001 12:15:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00462328
Message ID:
00462399
Views:
12
Hello, Wesley.

Check for the lenght of the string. If you'are using SET NEAR, and look for the string "WES" you can find "WESLEY", but if you look for "WES ", and there is no record begining with these exact characters, you'll end at EOF.

Hope this helps. Tell me if the problem persist.

>I have been searching the archives here for a while now and find several threads that seem on point, yet a solution is eluding me. I am simply trying to do a seek on an indexed table, which is bound to a grid on a form. I need the pointer to stop where it would as in SET NEAR ON. It's going to EOF.
>
>Pertinent info:
>-no dataenvironment is being used.
>-in the .init of the form, I SET NEAR ON, open the table, set the index order, set rowsourcetype=1 and rowsource='mytable'
>-form launches and displays the content of 'mytable' in the grid
>-I put the search string in a memory variable, and then conduct the search (SEEK) with a command button and then call grid.setfocus
>-the pointer keeps coming out at EOF.
>
>I know I'm probably missing something simple. Any help would be appreciated. Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform