Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbgetprop Converts
Message
 
 
To
27/04/2004 21:31:05
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00898789
Message ID:
00898805
Views:
11
John,

You will get that error if the tablename part of TableField is not an actual table name inside the dbc.

FWIW you can also use juststem() and justext() to simplify things.
? justext( "tablename.fieldname" ) && gives you back "fieldname"
? juststem( "tablename.fieldname" ) && gives you back "tablename"
>The first four lines of a function in stored procs are as follows:
> function WhatEver
> parameters TableField
> FName = proper(substr(TableField, at(".", OldF) + 1))
> FText = dbgetprop(TableField, "Field", "Caption")
>
>I know that the TableField parameter is TableName.FieldName because line 3 returns the fieldname.
>However, line 4 produces an error (Invalid function argument type)
>TableName.Fieldname is an integer field but, I'm not sending the contents, just the name.
>It appears that dbgetprop is evaluating the contents.
>
>How can I get the desired "Caption"?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform