get User Input

Parent Previous Next

"(3) Input dialogs: there are also four simple input dialogs:
 TW.getInt( parent, title, label [, value [, min [, max [, step ] ] ] ] )
 TW.getDouble( parent, title, label [, value [, min [, max [, decimals ] ] ] ] )
 TW.getItem( parent, title, label, items [, currentIndex [, editable? ] ] )
 TW.getText( parent, title, label [, initialText ] )


Again, parent must be null or a TW window; and title may or may not be displayed. Label should be used as the primary prompt string. All will return null (which is distinct from zero or an empty string) if the user cancels the dialog.


http://code.google.com/p/texworks/issues/detail?id=221



I've found the undefined object being returned on Cancel - Paul

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites