>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