Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the field name by a description
Message
De
24/07/2000 18:49:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00396185
Message ID:
00396391
Vues:
11
Hi Matineau


dbgetprop('customer.invoice','field','comment')

should do the trick provided you have populated your field comments for the table concerned.

you could even write a simple wrapper for it as follows


param cFldname,lusedesc
lusedesc=iif(param()=1,.t.,lusedesc)
return iif(lusedesc,eval(cFldname),dbgetprop(cFldname,'field','comment'))


The second parameter will allow you to switch the function on or off using a variable you set before you run the report.

That way you can provide the client with a switch thats allows him to view the report both ways.

However you may find you need to use some long thin fields on some reports.

Hope this helps
















>Hi
>I's it possibel to change tjhe field name in a repport with a description of it.
>Mi client can modify the reports and he wants to see a description of the field instade of is name.
>
>Is it possibel to do it
>
>Benoit
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform