Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and record pointer
Message
 
À
05/09/2000 21:57:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00412743
Message ID:
00412746
Vues:
23
>Once again I have no doubt the solution is simple but……
>
>I have a grid whose control source is one table. I have several indexes in a CDX. I have placed the code:
set order to <FieldName>
>thisform.refresh( )
in the header.click The order gets set alright but the record pointer doesn’t necessarily stay on the current record when CLICKing on the various headers. Why is that and how should I address this issue?

Just save the record pointer before you SET ORDER TO, and GOTO it afterwards:
lnCurRecNo = recno()
set order to <FieldName>
if lnCurRecNo <= reccount()
   goto lnCurRecNo
endif
thisform.refresh()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform