Page 1 of 1

Deleting Field Data in a script

PostPosted: Thu Jul 03, 2003 2:50 am
by kickerks80
Im not having much luck trying to script the deleting of a colmn of data.

//loop to delete all amount numbers
var totalCount = controller.getMaxRecordIndex(); // == currentFoundCount
for(var i=1; i<=totalCount; i++)
{
controller.recordIndex = i;
amount = "";

};

the amount column is an int. I would like to just empty to NULL or blank if posible. Any suggestions?

PostPosted: Fri Jul 04, 2003 8:28 am
by Jan Aleman
try amount = null

thanks

PostPosted: Mon Jul 07, 2003 6:52 pm
by kickerks80
that worked perfectly. thanks a bunch.