Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA with native database and DEFAULT values
Message
From
27/03/2007 23:38:07
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01208992
Message ID:
01209084
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
Naomi,

>I've specified DEFAULT for one of my fields as cEntered_by C(10) DEFAULT GetUserID()
>However, when I try APPEND BLANK, my field is not getting populated.

It works for me in VFP9. How about putting a WAIT WINDOW or SET STEP ON at the top of your GetUserID() function, then try it and see if it gets called at all? If so, step through it and be sure it's returning something.

When you say you specified the default, I assume you mean that you included
cEntered_by C(10) DEFAULT GetUserID()
in the CursorSchema property? Are you sure the CursorSchema is being used? Are you including the parameter on the CursorFill call that specifies that CursorSchema is to be used?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform