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" )
? juststem( "tablename.fieldname" )
>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"?