label.text()



  • Hi !
    I think we always use label to show value or information all the time,
    Is it a good idea if we can use

    label.text("Hello World");
    

    maybe it more handy then

    label.set("text",Hello World");
    
    

    What do you think?



  • .set is a general command that is used to set the properties of all components, since text is a property of a label it makes sense to use set. Although an additional shortcut command wouldn't be a bad thing.

    You can also use setValue e.g. Label1.setValue("Hello World");



  • @d-healey Oh , I didn't know we can use that Label1.setValue("Hello World");
    Thank you


Log in to reply
 

13
Online

884
Users

3.2k
Topics

26.8k
Posts