! Error in lua documentation (nwcut.askbox) ! 10 years ago 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 – 10 years ago 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 – 10 years ago Quote from: Opagust – 10 years agoI 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 – 10 years ago Quote from: NoteWorthy Online – 10 years agoThanks 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 – 10 years ago Are you looking at a cached copy? Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #5 – 10 years ago Quote from: Opagust – 10 years agoI don't see any correction yetI do. Quote Selected
Re: ! Error in lua documentation (nwcut.askbox) ! Reply #6 – 10 years ago Quote from: NoteWorthy Online – 10 years agoAre 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