lua-users home
lua-l archive

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


>   local Nc_GUI_InfoBox("ERROR: The program's focus must be in the Note
> Pane when executing this action. Terminating prematurely.", 1,
> "ERROR", nDlgWidth, nDlgHeight)
> 
> Dumb coding error (my specialty), but the resulting error message from
> Lua was that it expected a ")"
> near "," (which doesn't have much to do with the actual problem).

Lua sees this as
	local Nc_GUI_InfoBox
	("ERROR: The program's focus must be in the Note Pane when executing this action. Terminating prematurely.", 1, "ERROR", nDlgWidth, nDlgHeight)

and so is complaining that the expression in parentheses is malformed because
a comma cannot be part of an expression). It is expecting a function call
after the parentheses are closed, though it hasn't reached that part yet.