Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to populate default values for a new record?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474230
Message ID:
01474240
Vues:
64
>Hi everybody,
>
>When we invoke an form for editing information in the "Add" mode, we create a blank record in the updatable cursor with Append Blank command. I'm wondering how can we bring table's defaults into this record?
>
>Thanks in advance.


Is this a CA?
If so in CursorSchema you could add DEFAULT clause:
TEXT TO this.CursorSchema NOSHOW PRETEXT 15
     SomeField1 C(20) DEFAULT "Test1",
     SomeField2 I     DEFAULT 1000
ENDTEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform