Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DbGetprop - Invalid function type or count
Message
From
15/10/1998 10:23:48
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00147053
Message ID:
00147138
Views:
35
Pete --

Cetin had it right....all three parts of the DBGETPROP command require quotes. An easy mistake to make is to not have quotes around alias.fieldname so the actual correct syntax is:

=DBGETPROP("alias.fieldname","Field","Caption")

Note that in your original post, no quotes around alias.fieldname.


>>>Using DbGetprop to retrieve the "Caption" property I receive the above error, my code is as follows Dbgetprop(alias.fieldname,'Field',Caption')
>>>TIA
>>>Pete Kane
>>Pete,
>>Seems you only missed the quotes.Dbgetprop("alias.fieldname",'Field',"Caption").
>>Cetin
>
>Cetin,
>sorry I forgot the quotes in my message but not in my code, this is a real puzzler
>Pete
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform