>>>Hi,
>>>
>>>I need to change the title of one of the reports so it has a different name for one customer. I can set up a "flag" to indicate that the program is being executed for this particular customer. But how do I change the title-caption in code? For example:
>>>
>>>"Customers with blablabla Report"
>>>
>>>would become:
>>>
>>>"Clients with blablabla Report"
>>>
>>>TIA
>>
>>Turn the title of the report into a field, instead of a label. The field contents would then be an expression, that is, "code", that you can assign as you see fit.
>
>I am very sorry for confusing you and Tore with my kludgy description. What I refer to as the "report title" is actually the "caption/prompt" of a menu item of the VFP menu. And I set the menu items at design time. So I need to change the Prompt of the menu on-the-fly, in code.
>Thank you.
In our application a few menu prompts look like this &gcScheduleMenuSchedule. I assume that variable is being set in code. Not sure it's the best method, but it works fine.
If it's not broken, fix it until it is.
My Blog