Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SuperLib 3.50 - function blankfield() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION BLANKFIELD()

  Short:
  ------
  BLANKFIELD() Returns a blank value corresponding to a field

  Returns:
  --------
  <expBlank> => blank value, corresponding to a field

  Syntax:
  -------
  BLANKFIELD(cField)

  Description:
  ------------
  <cField> is the name of the field. Can also include
  the alias

  A blank value is returned:

  For: Character           Spaces the length of the field
       Numeric             Zero
       Logical             .f.
       Date                Blank date
       Memo                ""

  Examples:
  ---------
   // fill an array with matching blanks for the record - good
   // for an ADD routine

   aAdds := array(fcount())
   for i = 1 to fcount()
     aAdds[i] := BLANKFIELD(field(i))
   next

  Source:
  -------
  S_BLANKS.PRG


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