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

DefVal=DbGetProp("Client.Sex","Field","DefaultValue")
&& Returns the default value for the sex field.

I need to use the alias name when referencing the field. Any suggestions????


Thanks alot,

Jolene Dicks
Next
Reply
Map
View

Click here to load this message in the networking platform