Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
tantiger
Posted - 10/04/2002 : 06:02:32 AM I have a big problem here. I used a script to import many ascii files at one time, it works fine. However, when I check the OPJ file size, I reallized that all the closed windows are still saved as the file is quite large. I can use "list s" to see all of them and after I delete them, the OPJ file size decreased dramatically.
Is there any way of delete those temporary worksheets during importing?
the scripts as follows: %L="F:\Data\DSC"; win -t wks Origin; %W=%H; %W!wks.joinmode=0; // Set %W worksheet to append mode delete %(%W,2); delete %(%W,1);
FDLOG.DlgName$="Import DSC/DTA Files (TA Format)"; // Title Bar text FDLog.CheckName$="DTA Files (Please Uncheck for DSC files!)"; //FDLog.Message$="DTA"; // Comment text FDLog.CheckStatus=0; FDLog.ShowComment=0; FDLog.path$= %L; FDLog.numtypes=3; FDLog.type1$=[TXT files]*.TXT; FDLog.type2$=[DAT files]*.DAT; FDLog.type3$=[All files]*.*; FDLog.defType=1; FDLog.multiOpen.sort=1; // Sort only Groups selected!
Posted - 10/04/2002 : 11:13:25 AM In Origin 6.1 and 7.0 use 'win -cd %T' in place of 'win -c %T'. That will delete the datasets (columns) along with the worksheet window.