N

(newButton Able Dst Args)
This function makes a button used to create a new object. The following code comes from the demo app supplied with the PicoLisp distribution, in gui.l, and makes a button that when clicked creates a new object of the class +CuSu. The new object is initialised with the values used in a search for an existing one, if any such terms have been entered.

    (newButton T Dst '(+CuSu)
       '(nr genKey 'nr '+CuSu)
       'nm *CuSuNm
       'plz *CuSuPlz
       'ort *CuSuOrt
       'tel *CuSuTel
       'mob *CuSuMob )
    
See also +Rid, +Able, +Close, +Tip, +Button.
(newUrl @)
newUrl is used to create a new DB object. In this example, it is used as action code for a button. Pressing the button will create a new object of the class "+Bkng" and take the user to the page where such an object can be edited.

    .
    .
    (gui 6 '(+Able +Button) T ,"Book"
       '(newUrl '(+Bkng)
          '(nr genKey 'nr '+Bkng)
          'pos (curr)
          'depd (: home obj depd)
          'dept (: home obj dept)
          'retd (: home obj retd)
          'rett (: home obj rett)
          'trsp (if (: home obj trf) ,"Yes" ,"No")
          'htl (if (: home obj htl) ,"Yes" ,"No") ) )
    .
    .
    
(noButton 'Exe)
A 'no' button. See also +Close, +Button and gui.
(note Str Lst)
An alert where Str is displayed as heading and the content of Lst is shown with each item on a separate row. An 'Ok' button concludes the note. See also alert, okButton and Alerts and dialogs.
+NumField
+NumField accepts a number and returns a number. An error message is issued if a value that is not a number or cannot be converted to a number is entered. Large numbers are displayed with a thousands-separator, as determined by the current locale.

    (gui '(+NumField) 10)
    
See also +TextField and Input fields.