Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DbGetProp
Message
From
24/08/1999 12:30:12
 
 
To
24/08/1999 10:28:01
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00257049
Message ID:
00257151
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform