pauleffect Member Licensed User Longtime User Jan 21, 2014 #1 Guys, i have a newbie question. If I have something like ( Code: Copy (...) For i = 0 to 666 Dim cW as panel cw.Initialize Desiredview.Panel.AddView(parameters, go, here) Next (...) If I have to work with those panels again, how do I do that? I mean call something like cW(2) the third panel. Thanks.
Guys, i have a newbie question. If I have something like ( Code: Copy (...) For i = 0 to 666 Dim cW as panel cw.Initialize Desiredview.Panel.AddView(parameters, go, here) Next (...) If I have to work with those panels again, how do I do that? I mean call something like cW(2) the third panel. Thanks.
stevel05 Expert Licensed User Longtime User Jan 21, 2014 #2 You'd need to maintain an index array such as: Code: Copy Dim Panels(667) As Panel For i = 0 to 666 Dim cw as Panel cw.Initialize("") Panels(i) = cw Desiredview.Panel.AddView(cw,Left,Top,Width,Height) Next The you can access them as: Code: Copy Panels(2) Last edited: Jan 21, 2014 Upvote 0
You'd need to maintain an index array such as: Code: Copy Dim Panels(667) As Panel For i = 0 to 666 Dim cw as Panel cw.Initialize("") Panels(i) = cw Desiredview.Panel.AddView(cw,Left,Top,Width,Height) Next The you can access them as: Code: Copy Panels(2)
canalrun Well-Known Member Licensed User Longtime User Jan 21, 2014 #3 pauleffect said: Guys, i have a newbie question. If I have something like ... I mean call something like cW(2) the third panel. Thanks. Click to expand... Code: Copy (...) Dim cwList as List cwList.initialize For i = 0 to 666 Dim cW as panel cw.Initialize cwList.Add(cW) Desiredview.Panel.AddView(cW, other, parameters, go, here) Next (...) I would create a list to hold each instance of CW. For some reason I like to use lists. Barry. Upvote 0
pauleffect said: Guys, i have a newbie question. If I have something like ... I mean call something like cW(2) the third panel. Thanks. Click to expand... Code: Copy (...) Dim cwList as List cwList.initialize For i = 0 to 666 Dim cW as panel cw.Initialize cwList.Add(cW) Desiredview.Panel.AddView(cW, other, parameters, go, here) Next (...) I would create a list to hold each instance of CW. For some reason I like to use lists. Barry.
pauleffect Member Licensed User Longtime User Jan 21, 2014 #4 Thank you both for shedding some light on this matter! Upvote 0