Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default field values and CA
Message
From
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:
01051994
Views:
8
This message has been marked as the solution to the initial question of the thread.
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).
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform