Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of index is violated
Message
De
28/10/2003 11:41:56
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
28/10/2003 11:03:28
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00680212
Message ID:
00843600
Vues:
31
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!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform