T O P I C R E V I E W |
rmfleming |
Posted - 10/17/2006 : 10:58:09 AM Origin Version (Select Help-->About Origin): 7.5 SR6 Operating System:XP
I want to add a column named "Nd" to a worksheet if it doesn't already exist. The labtalk script below works most of the time, but sometimes it doesn't recognize that column(Nd) is already there and adds another column Nd1, Nd2 ...
if(!colnum(Nd)) {wks.addCol(Nd);}; # Add Nd column to worksheet;
Is there a more robust way to do this? Robert
|
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 10/17/2006 : 11:04:08 AM Hi Robert,
The worksheet -v colName command is designed to do exactly what you want... add the named column if it doesn't exist, do nothing if it does.
wo -v Nd;
Mike Buess Origin WebRing Member |
|
|