Reply To: String problem

Home Forums General Programming String problem Reply To: String problem

#23918
zeoka
Participant
    • Topics: 73
    • Replies: 466
    • Total: 539
    • ★★★

    I get it !

    
    label = function(mod, value)
    
    updlbl = panel:getComponent("TrigSel")
    lb1 = panel:getComponent("01SoundLabel"):getComponentText()
    panel:getComponent("modulator-5"):setText(lb1)
    
    lb2 = panel:getComponent("02SoundLabel"):getComponentText()
    panel:getComponent("modulator-7"):setText(lb2)
    
    lb3 = panel:getComponent("03SoundLabel"):getComponentText()
    panel:getComponent("modulator-8"):setText(lb3)
    
    lb4 = panel:getComponent("04SoundLabel"):getComponentText()
    panel:getComponent("modulator-9"):setText(lb4)
    
    z1 = panel:getComponent("modulator-5"):getProperty("uiLabelText")
    z2 = panel:getComponent("modulator-7"):getProperty("uiLabelText")
    z3 = panel:getComponent("modulator-8"):getProperty("uiLabelText")
    z4 = panel:getComponent("modulator-9"):getProperty("uiLabelText")
     
    i = "\n"
    lbl = string.format("01: %s%s02: %s%s03: %s%s04: %s",z1,i,z2,i,z3,i,z4) 
    updlbl:setPropertyString("uiListBoxContent",string.format("%s",lbl)) 
    

    I need to check inside the label cpp if I see magic formula inside
    “Called when the contents of a Label are changed” or in the component
    Atom ?

    Ctrlr