Announcement

Collapse
No announcement yet.

Template Wizard script syntax question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Template Wizard script syntax question

    Hi all,

    Wondering how to make a series of controls that are named sequential load text from a combobox or listbox items by number. (as part of a loop)

    I've tried several different ways but can't find the right one.

    Would appreciate any help with this!

    Thanks

  • #2
    try to use the FindComponent

    Code:
    Sub TWUniListBox1Click(Sender)
    
    ' It will run when the listobx is clicked. Change it as you please
    
    textarray = Split(TWUniListBox1.UTF8Items, vbCrLf,-1,1)
    
    ' n is the number of controls you have
    n = 5
    
    for i=0 to (n-1)
            FindComponent("TWUniEdit" & (i+1)).UTF8Text = textarray(i)
    next
    
    End sub

    Comment


    • #3
      Thanks for your reply. I'll try that out.

      Comment


      • #4
        mabulazm
        Active Forum user
        mabulazm is this what you were looking for?

        Comment

        Working...
        X