The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 delete "unknown" number of workbooks
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

OndrejMM

Australia
81 Posts

Posted - 11/09/2008 :  11:02:29 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi Guys,

can you please help me with deleting "unknown" number of workbooks in the OPJ project,... I've tried the following (below) but it always delete only one workbook with an error message,... Many Thanks, Ondrej

// loop over all worksheets
doc -e W
{
if( "%[%H,5]"=="book" ) // if worksheet name starts with Book
{
win -cd %H;
};
};

Deanna

China
Posts

Posted - 11/10/2008 :  12:06:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I tried your code in Origin 8 SR4 and Origin 7.5 SR6. It works. All books with names that starts with "book" are deleted. Would you please try again? If you are using Origin 8 but have not upgraded to SR4, please select Help: Check for Updates to get SR4.

Deanna
OriginLab Technical Services
Go to Top of Page

OndrejMM

Australia
81 Posts

Posted - 11/10/2008 :  12:47:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Deanna,
yep, the update was the problem,...
works great now! thanks, ondrej
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000