Xbasic

FIELD.BLANK_PUT Function

Syntax

V Blank_Put()

Description

Blanks the field contents.

Discussion

The .BLANK_PUT() method places a blank value in the specified field. The field can be specified either by using the field object pointer, or by a table object pointer and a field name using ..BLANK_PUT(). The field type can be character, date, logical, or numeric. All fields are blank before data is entered into them.

 Example

This script is attached to a button on a form. It changes the current record so that all of its fields are blank.

dim tbl as P
dim fld as P
tbl = tbl.current()
tbl.change_begin()
for i = 1 to tbl.fields_get()
    fld = tbl.field_get(i)
    fld.blank_put()
next i
tbl.change_end(.T.)
parent.resynch()

See Also