Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the field name by a description
Message
From
24/07/2000 18:49:53
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00396185
Message ID:
00396391
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform