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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 delete "unknown" number of workbooks

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
OndrejMM Posted - 11/09/2008 : 11:02:29 PM
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;
};
};
2   L A T E S T    R E P L I E S    (Newest First)
OndrejMM Posted - 11/10/2008 : 12:47:50 AM
Hi Deanna,
yep, the update was the problem,...
works great now! thanks, ondrej
Deanna Posted - 11/10/2008 : 12:06:19 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000