Deleting Field Data in a script

Questions, tips and tricks and techniques for scripting in Servoy

Deleting Field Data in a script

Postby kickerks80 » Thu Jul 03, 2003 2:50 am

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?
-Ariel
kickerks80
 
Posts: 4
Joined: Sat Jun 28, 2003 3:29 am
Location: Berkeley CA

Postby Jan Aleman » Fri Jul 04, 2003 8:28 am

try amount = null
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

thanks

Postby kickerks80 » Mon Jul 07, 2003 6:52 pm

that worked perfectly. thanks a bunch.
-Ariel
kickerks80
 
Posts: 4
Joined: Sat Jun 28, 2003 3:29 am
Location: Berkeley CA


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests

cron