Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA with native database and DEFAULT values
Message
De
27/03/2007 23:38:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01208992
Message ID:
01209084
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform