Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rule lost when making candidate index.
Message
From
04/10/2001 07:04:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00563763
Message ID:
00564023
Views:
25
>With vfp6 you could create a rule for a field on a table:
>ALTER TABLE (lcfilename) ALTER COLUMN &lcFieldName SET CHECK &lcFieldCheck
>followed by an index command:
>ALTER TABLE (lcfilename) ALTER COLUMN &lcFieldAndDataType UNIQUE
>
>With vfp7 you must make the index first or you will lose the rule? Anyone else notice this?

Yes,
Right you lose it. This works however :

ALTER TABLE (lcfilename) ;
ALTER COLUMN &lcFieldAndDataType ;
CHECK &lcFieldCheck ;
UNIQUE

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform