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:
01474252
Vues:
45
>>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
>
No. It's a result of SQLEXEC command.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform