Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract Classes
Message
From
29/03/1997 10:59:13
 
 
To
29/03/1997 06:54:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00026135
Message ID:
00026143
Views:
32
> I am trying to follow the advice from an article I read in FoxPro Advisor > and need some help. I am trying to create a library for my business rules > (BUSINESS.VCX). The first class I want to create is PrimaryKey, a simple > routine to generate a random number to serve as a primary key for any > table. I created a custom class PrimaryKey with a property called > PrimaryKey and a method called GenerateKey. GenerateKey is as follows: I don't think that using random is a the best way to get a primary key I prefer to get the next available key from a table that holds al the primary keys btw, I put stuff like this (including the class defenitions) into the stored procedures where IMHO they belong Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform