[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error message issue in Lua 5.2 -- "local" prepended to application API call
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 15 Dec 2012 15:37:06 -0200
> 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.