lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>function l_error (s)
>  MsgInfo(s)   
>end
>
>_ERRORMESSAGE = l_error
>
>MsgInfo just displays a MessageBox.
>When I put this code in the main Lua file, it works, but when it is 
>defined in a file called via "dofile", it doesn't works!

I'm not sure what you mean. The example below works.

 function _ERRORMESSAGE(x)
	 print(">>>>>",x)
 end

 a=a+1

Perhaps MsgInfo is not defined?
--lhf