Prev Previous Post   Next Post Next
Old 05-21-2019, 06:32 AM   #11
Human being with feelings
Lokasenna's Avatar
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,251

Originally Posted by woodslanding View Post
Wow, this is just rockin along!!

question: I want to create a bunch of similar items that each address a different track... I can create unique names for them by concatenating a string, but then I don't know how to access them.
- Accessing array elements with variables is just a matter of using []s and concatenating a string the same way.

- You can use self inside any method that will be called with the : syntax.

for i = 0, 10 do
  local ctl = GUI.elms["ns_ctl"..i]
  ctl.onmouseup = function(self)
    setNoteSource(self.trk, self:val())
Lokasenna is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 07:48 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.