Set Label of form control on run time

geri79geri79 Member Posts: 105
Hi,

I have a "background" form which displays the current company, database and company specific information, which is launched on open company.

This info is hardcoded in the caption of a label on the form. Would be much nicer to use code to give this information. The code is not the problem, but I can't figure out how variable captions work.

I tried caption class as explained by kriki

viewtopic.php?t=6746

Works fine for table fields but I can't transfer this for form controls.

Any ideas??

PS:
I placed a simple message box on trigger 15 in CU1. It appears when used caption classes on table fields, but on on form control. I guess there is the problem. The CU1 - CaptionClassTranslate Function does'nt run in my case. Why? :-k
geri

Answers

  • krikikriki Member, Moderator Posts: 9,112
    You have to create a textbox with a label attached to it. In the caption class of the textbox, you have to put the code to show the caption you want.

    But I think that in your case (if I understood correctly what you want to do) it would be better to put a textbox and in the source-expression, you put a variable with the information you want to show.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • geri79geri79 Member Posts: 105
    Ciao,

    thx. That worked. How can I mark my topic as [Solved]?
    ---

    Grazie per l'aiuto. Ci leggiamo...

    geri79
    geri
  • krikikriki Member, Moderator Posts: 9,112
    geri79 wrote:
    How can I mark my topic as [Solved]?
    If I remember correctly : you just have to edit your original post of the topic.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.