changing text in a label

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

changing text in a label

Postby mathias » Thu Oct 27, 2011 12:46 pm

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 3362 times
code.JPG
code.JPG (33.87 KiB) Viewed 3362 times

User avatar
admin
Site Admin
Posts: 322
Joined: Tue Nov 17, 2009 1:18 pm

Re: changing text in a label

Postby admin » Fri Oct 28, 2011 8:09 am

Hi,
use Status Bar Object, donwload and test this demo: http://www.winlog.it/forum/download/Demo_Change_Unit.zip


Best Regards


Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest