Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default field values and CA
Message
De
22/09/2005 11:05:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01051951
Message ID:
01051994
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform