Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DbGetProp
Message
De
24/08/1999 12:30:12
 
 
À
24/08/1999 10:28:01
Jolene Dicks
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00257049
Message ID:
00257151
Vues:
14
>Hi,
>
>
>I am using the DbGetProp function to return the default value of a particular field. I assign an alias name to the table and when I try to reference the field with the alias name, the dbgetprop funtion returns a 'Function arguement value, type, or count is invalid' error. However, if I use the actual table name when referencing the field, it works fine.
>
>Use (Path+"Client") in 0 Alias DataFile
>Select DataFile
>
>DefVal=DbGetProp("DataFile.Sex","Field","DefaultValue")
>&& Returns error
>
>I need to use the alias name when referencing the field. Any suggestions????

try this:

lcField = DBF("DataFile") + ".Sex"
DefVal=DbGetProp(lcField,"Field","DefaultValue")
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform