Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the recno
Message
From
26/03/1998 04:53:58
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087226
Message ID:
00087232
Views:
31
> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform