changing text in a label

Discussion about Code Builder Builder and Winlog language support.
Post Reply
mathias
Posts: 18
Joined: Thu Oct 06, 2011 9:40 am

changing text in a label

Post by mathias »

I want to change the text in a label, depending of the value of gate” Vunit”.
If Vunit = 0 >> text in label:m³/h
If Vunit = 1 >> text in label: l/h

I tried with some code but it doesn’t work.
Attachments
label.JPG
label.JPG (65.93 KiB) Viewed 5512 times
code.JPG
code.JPG (33.87 KiB) Viewed 5512 times
User avatar
admin
Site Admin
Posts: 373
Joined: Tue Nov 17, 2009 1:18 pm

Re: changing text in a label

Post by admin »

Hi,
use Status Bar Object, donwload and test this demo: download/Demo_Change_Unit.zip


Best Regards
Post Reply