Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to populate default values for a new record?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01474230
Message ID:
01474240
Views:
65
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform