Message 1 of 7

Not applicable
05-23-2014
08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got a simpleUI here that passes a string from a edit text box to a function.
-- put everything in brackets ( local printIt rollout moveItRollout "" width:230 height:70 ( label lbl1 "Enter secret code" pos:[10,10] width:200 height:20 editText edStr "" pos:[10,40] width:160 height:20 button btnOK "Okay" pos:[180,40] width:40 height:20 on btnOK pressed do ( myString = edStr.text as string printIt myString ) function printIt str = ( print str ) ) -- end rollout createDialog MoveItRollout "" width:230 height:70 )
Only it keeps the error : >> MAXScript Rollout Handler Exception: -- Type error: Call needs function or class, got: undefined
I don't know why? Any pointers please?
To get around this I've removed the function and but that part of the code within the on button pressed segment.
Solved! Go to Solution.