Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uniqueness of index is violated
Message
From
28/10/2003 11:41:56
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
28/10/2003 11:03:28
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00680212
Message ID:
00843600
Views:
30
Scott,

When the framework moves the record pointer (after requery or upon adding new record) it keeps the grid's highlight bar in sync with the "current" record.

When you move the record pointer yourself, you also need to sync them. This is from the "Programmatically Moving a Grid Record Pointer" section in the Developer's Guide...
*Of course, you'll have to substitute your cGridList object reference for the one below.
cGridList.SetHighlightBar()
cGridList.RefreshAll()
Hope that helps,
---J

>Jason,
>
>Thank you! I used the first method, RECALL and it works fine. No problem with saving the users input because the table only has a primary key field and a candidate key field. I was checking the candidate key field for duplicates.
>
>I do have one dilemna though...how do I position the grid to the correct record when I return to the calling form from the edit form? I wrote a little DO WHILE NOT EOF() loop to find the correct record in the grid's view, but when it returns to the calling form it is still positioned on the record it was positioned on when I pressed the ADD button.
>
>Any ideas here?
>
>Thanks again!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform