Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save command
Message
From
07/03/2006 13:10:08
 
 
To
07/03/2006 01:02:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101936
Message ID:
01102131
Views:
22
If you prefer to have character PKs instead of AutoInc you could use a routine like this one:
http://www.feldstein.net/newid.asp

Primary Keys should be numbers that do not have any relation to the actual data (e.g. not know or devised by the users). They should be unique across the table.


>after change to AutoInc, i got error message Function argument value, type, or count is invalid
>at this line,
>
>but i need to insert it by hand (it must be character type),
>
>cAlias = THISFORM.DATAENVIRONMENT.INITIALSELECTEDALIAS
>SELECT (cAlias)
>if act_flag="1"
>LOCATE FOR UPPER(shipno) =ALLTRIM(thisform.text1.Value)&& error message
>IF FOUND()
>=MESSAGEBOX("DUPLICATED")
>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform