Plex 2E

 View Only
  • 1.  How to change label of a field at runtime ?

    Posted Dec 15, 2015 08:45 AM

    How to change label of a field at runtime ?



  • 2.  Re: How to change label of a field at runtime ?

    Posted Dec 15, 2015 09:25 AM

    some people use states on the text property

    some people use visibility property of separate labels

     

    I prefer to use WINAPI/SetControlText



  • 3.  Re: How to change label of a field at runtime ?

    Posted Dec 15, 2015 10:16 AM

    Thanks for the reply.

     

    Actual requirement is to get some text from database or from some place and put on the panel at runtime.



  • 4.  Re: How to change label of a field at runtime ?
    Best Answer

    Posted Dec 18, 2015 05:47 PM

    "Label of the field " is it detail (Left label) or in Grid (Top Label) ?

     

    WINAPI/SetControlText  works for left label (text property of  control).

     

    Parameter 1 : Set the control name for the left label in panel properties and pass the same to the source code(SetControlText).

     

    Parameter 2 : Pass the text from the database.



  • 5.  Re: How to change label of a field at runtime ?

    Posted Dec 21, 2015 06:39 AM

    Hi Ashfaq,

     

    Thanks for your help. It worked !!!

     

    Regards,

    Bhargav Mangavalli