Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbgetprop Converts
Message
 
 
À
27/04/2004 21:31:05
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00898789
Message ID:
00898805
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform