Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how Set a decimal to NULL

Status
Not open for further replies.

karl0x

Programmer
Feb 6, 2009
1
0
0
I tested with string and no problems, but when I do with numbers get error.

Example:

string ls_foo
SetNull(ls_foo)
dw_1.object.datecolumn[row]=ls_foo

OK

decimal ln_foo
SetNull(ln_foo)
dw_1.object.datecolumn[row]=ln_foo

error

Help me....
 
Try using the SetItem function instead of a DataWindow data object reference to set the value.

Example:

decimal ln_foo
SetNull(ln_foo)
dw_1.SetItem(row,columnname,ln_foo)

If the column has an Edit Style of Edit you may also need to make sure the "Empty String is NULL" Edit property is checked on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top