Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generate a Primary Key
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00207245
Message ID:
00207250
Views:
11
>>Does VFP have a function that will automatically generate a primary key? If not, wher would I get an example of a good genkey program?
>>/Steve Raddigan

Another important bit of code missed:

LOCAL lnSelect - goes with other local

lnSelect=SELECT() - goes at top of function

... rest of code

SELECT (lnSelect) - just before the return.

I normally forget this until after I've finished the function code, I'll have to write myself a template for functions.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform