Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stay in a Row in Grid?
Message
From
25/01/1999 14:26:49
 
 
To
25/01/1999 14:20:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00179756
Message ID:
00179949
Views:
30
>It does work, as long as I have selected a record without scrolling through the grid. As soon as I select a record more down the cursor, i.e. I scrolled some records down, set the focus on a particular record, and press on an option button, which changes a value for that record (the option button is not in the grid, but on the form), I make a new SELECT after changing the value in the Table. To find the changed record, I store its KeyValue into a variable:
>mControl = CursorResult.KeyVal
>
>after all the action, I Locate for this KeyValue:
>
>Locate for CursorResult.KeyVal = mControl
>
>But it does not find the record, instead the selection jumps to the first record on the grid.
>Nevertheless, it finds the record, if I did not scroll further down the grid.
>This is amazing.

Do you mean that FOUND() after LOCATE would return .F.? Check it, it may show you the way to fix.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform