Reply To: String problem

Home Forums General Programming String problem Reply To: String problem

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

no
A new panel checked the modulator list names ,vst indexes …

updlbl = panel:getComponent("TrigSel")
lb1 = panel:getComponent("01SoundLabel"):getComponentText()
panel:getComponent("modulator-5"):setText(lb1)
console(lb1)
lb2 = panel:getComponent("02SoundLabel"):getComponentText()
panel:getComponent("modulator-7"):setText(lb2)
console(lb2)
lb3 = panel:getComponent("03SoundLabel"):getComponentText()
panel:getComponent("modulator-8"):setText(lb3)
console(lb3)
lb4 = panel:getComponent("04SoundLabel"):getComponentText()
panel:getComponent("modulator-9"):setText(lb4)
console(lb4)
z1 = panel:getComponent("modulator-5"):getText()
--w1 = string.format("%q",z1)
z2 = panel:getComponent("modulator-7"):getText()
--w2 = string.format("%q",z2)
z3 = panel:getComponent("modulator-8"):getText()
--w3 = string.format("%q",z3)
z4 = panel:getComponent("modulator-9"):getText()
--w4 = string.format("%q",z4)
     --string.gsub(panel:getComponent("modulator-5"):getText(), "(%w+)", print) tried to print :) 
lbl = string.gsub("z1,z2,z3,z4",",","\n") 
i = "\n"
     --lbl = string.format("%q%s%q%s%q%s%q",lb1,i,lb2,i,lb3,i,lb4) no
updlbl:setPropertyString("uiListBoxContent",string.format("%s",lbl)) 
     -- i get row 1:z1  row2:z2 etc.. texts :( but it's a start . how to convert a function to string ? 
     --  string.format ?? :D   
--updlbl:setPropertyString("uiListBoxContent",lb1)

nothing to do ..

Ctrlr