Label Text

Author: satheesh.balu.m@gmail.com (Satheesh)

Hello All,

 

How to change the text of the label in run time? I have created a label D_XXXXX.ENTITY

For example,

if (A = "Apple")

then label text should be Apple.

elseif(A="Ant")

then label text should be Ant

endif

 

How can I do this? Can anybody help on this?

Thanks

Satheesh.B

 

 

 

2 Comments

  1. Hi,

     

    there is a $labelproperties:

     

    $labelproperties
    Get and set the text of an attached label.

    Syntax
    $labelproperties ( FieldName ) = "text= LabelText "
     

    Regards,

    Michael.


    Author: roesch (mroesch@arz-emmendingen.de)
  2. Hello Micheal

    Thanks foryour reply. It works fine.

     

    For example:

     

    show
    $labelproperties (FIELDNAME1.ENTITY1) = "text=One"
    $labelproperties (FIELDNAME2.ENTITY1) = "text=Two"

     

    Thanks

    Satheesh.B


    Author: Satheesh (satheesh.balu.m@gmail.com)