Skip to main content
Topic: ! Error in lua documentation (nwcut.askbox) ! (Read 6593 times) previous topic - next topic

! Error in lua documentation (nwcut.askbox) !

I discovered an error in the lua documentation for nwwcut.askbox:

http://lua.noteworthycomposer.com/nwcut.html##(nwcut).askbox

The return value seems to be 1 for Yes and 0 for No
The flags work as mentioned : 1 for Yes (default), and 2 for No
Always look on the bright side of life!

Re: ! Error in lua documentation (nwcut.askbox) !

Reply #1
Confirmed. No returns zero
Sample User Tool:
Code: (Lua) [Select · Download]
nwcut.warn(nwcut.askbox('','',2))
Registered user since 1996


Re: ! Error in lua documentation (nwcut.askbox) !

Reply #3
Thanks for the report. This has been updated with correct info.

I don't see any correction yet
Quote
nwcut.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.
Parameters

msg : the message text to issue to the user
msgtitle : the title for the message box (optional)
#number flags : assigns the default action, 1 for Yes (default), and 2 for No
Return value

#number: the answer, 1 for Yes, and 2 for No
Always look on the bright side of life!

Re: ! Error in lua documentation (nwcut.askbox) !

Reply #4
Are you looking at a cached copy?


 

Re: ! Error in lua documentation (nwcut.askbox) !

Reply #6
Indeed I was. After erasing the cashed copies I got
Quote
Return value
#number: the answer, 1 for Yes, and 0 for No

Thanks, I should erase my cache more often...
Always look on the bright side of life!