! Error in lua documentation (nwcut.askbox) ! 2015-02-26 07:52 am I discovered an error in the lua documentation for nwwcut.askbox:http://lua.noteworthycomposer.com/nwcut.html##(nwcut).askboxThe return value seems to be 1 for Yes and 0 for NoThe flags work as mentioned : 1 for Yes (default), and 2 for No Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #1 – 2015-02-26 08:39 am Confirmed. No returns zeroSample User Tool:Code: (Lua) [Select · Download]nwcut.warn(nwcut.askbox('','',2)) Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #2 – 2015-03-07 05:52 am Quote from: Opagust – 2015-02-26 07:52 amI discovered an error in the lua documentation for nwwcut.askbox:http://lua.noteworthycomposer.com/nwcut.html##(nwcut).askboxThanks for the report. This has been updated with correct info. Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #3 – 2015-03-07 07:46 am Quote from: NoteWorthy Online – 2015-03-07 05:52 amThanks for the report. This has been updated with correct info.I don't see any correction yetQuotenwcut.askbox(msg, msgtitle, flags)nwcut question box.Prompts the user with a standard message box. The user is given the opportunity to answer the question, or cancel the user tool.Parametersmsg : the message text to issue to the usermsgtitle : the title for the message box (optional)#number flags : assigns the default action, 1 for Yes (default), and 2 for NoReturn value#number: the answer, 1 for Yes, and 2 for No Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #4 – 2015-03-07 07:50 am Are you looking at a cached copy? Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #5 – 2015-03-07 07:59 am Quote from: Opagust – 2015-03-07 07:46 amI don't see any correction yetI do. Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #6 – 2015-03-07 08:54 am Quote from: NoteWorthy Online – 2015-03-07 07:50 amAre you looking at a cached copy?Indeed I was. After erasing the cashed copies I gotQuoteReturn value#number: the answer, 1 for Yes, and 0 for NoThanks, I should erase my cache more often... Quote Selected