Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the recno
Message
De
26/03/1998 04:53:58
Steve Camsell
Windmill Associates
Bath, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00087226
Message ID:
00087232
Vues:
32
> I need to pass an index number to a form and I want it positioned at the RECNO of that index. Which event and functions work best?

The simplest way of doing this is to pass the record number to the form with a

DO FORM [formname] WITH [nRecordNumber, cTableAlias]

Then in the Init() of the form add the following:

LPARAMETERS lnRecNo, lcAlias
IF PCOUNT() = 2 AND USED(lcAlias)
GO lnRecNo IN (lcAlias)
ENDIF

However, using the record number isn't a particularly good approach, unless you have a specific reason for doing so, I would a key field and a SEEK()
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform