Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created the following simple code
When I run this, I get an error.
Since the testB function is defined before the testA function, the testA function cannot be called inside the testB function. Is there a solution to these problems?
fn testB =
(
testA()
)
fn testA =
(
messagebox "test!" title:"OK"
)
testB()
The error message is as follows
-- Error occurred in anonymous codeblock; filename: ; position: 25; line: 3
-- Type error: Call needs function or class, got: undefined
-- MAXScript callstack:
-- thread data: threadID:35944
-- ------------------------------------------------------
-- [stack level: 0]
-- In testB(); filename: ; position: 26; line: 3
-- Locals:
-- testA: undefined
-- Externals:
-- owner: undefined
-- ------------------------------------------------------
-- [stack level: 1]
-- called from top-level
Solved! Go to Solution.