Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default field values and CA
Message
 
 
To
22/09/2005 11:05:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01051951
Message ID:
01052024
Views:
12
David,

Thanks a lot.

>Naomi,
>
>>How can we specify default field values to be carried over using CA? We're using CA Builder from Mark McCasland.
>
>You can add a DEFAULT clause (and also CHECK constraint if needed) to the .CursorSchema property cursor definition. This can be useful to avoid NULL values if you APPEND BLANK into the cursor or to pre-populate certain fields:
CursorSchema = "cstate C(2) DEFAULT 'FL', ccounty C(20) DEFAULT ''"
The syntax for DEFAULT and CHECK are the same that you would use in the CREATE CURSOR command, although you cannot specify NULL or NOT NULL in the CursorSchema (it automatically gets that setting from the SQL backend).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform