Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   It is possible to define default values to assign to a variable during
   data entry. The default expression can be set to a constant value, like
   "John Doe", or to a Clipper function or to a memory variable.

   It is very important that the expression entered is of the same type
   (Character, numeric, logical, etc.) as the symbol to which the default
   value refers.

   Examples:

     Field    Type  Length  Default value
     _________________________________________________
     
     cName     C      30    PADR( "John Doe", 30 )
     nPrice    N       6    10.000
     dDate     D       8    DATE()
     lLog      L       1    .T.
     _________________________________________________
     

   The PADR( "John Doe", 30 ) expression will pad "John Doe" with spaces
   to a length of 30 characters.

   The DATE() function returns the current date.

   Using keys Alt-1, it is possible to paste, from the Data Dictionary,
   the names of files, fields, symbols, and library functions.

   Default values set in this environment will be implemented in each data
   entry form where the symbol is utilised. If this behaviour is not desired,
   a custom code injection must be made in the selected data entry form,
   re-initialising the symbol to an empty value.

   Additional information about the kind of controls that can be performed
   on the fields can be found in the Field controls chapter.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson