PDA

View Full Version : For loop in DotNetControls


easyfrog
07-06-2011, 08:48 AM
Hello :

I have a DotNetControl Panel ,and Creat some Buttons on it . so have can i Enumerate it ??

I know the C# code like this:
foreach(Control c in Panel.Controls){...}


But I use the maxscript code :
for c in panel.controls do (...)
get a Error :
>> MAXScript Rollout Handler Exception: -- No "map" function for dotNetObject:System.Windows.Forms.Control+ControlCollection << :banghead:

lo
07-06-2011, 09:09 AM
for c = 1 to panel.controls.count do panel.controls.item[c-1] ...

CGTalk Moderation
07-06-2011, 09:09 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.