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:
01474252
Views:
46
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform