Skip to main content

Uniface 9: Label Text

  • November 19, 2018
  • 2 replies
  • 0 views

Jan Cees Boogaard

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 replies

Jan Cees Boogaard

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

 

 

 

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)

Jan Cees Boogaard

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

 

 

 

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)