can you call a function from a method?

BlitzMax Forums/BlitzMax Beginners Area/can you call a function from a method?

mudcat(Posted 2005) [#1]
type rock

function create(size)
..use size
end function

method dosomething( )
create(25)      'I've tried self.create(25) and rock.create(25)
end method

end type



how do you do it?Please.

thanks,
mudcat


Warren(Posted 2005) [#2]
rock.create(25) should work. What does it say when you try that?


mudcat(Posted 2005) [#3]
it says
Unhandled Memory Exception Error


mudcat(Posted 2005) [#4]
WarrenM,
Thanks for the help,it worked.
mudcat