Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden authored Oct 8, 2018
1 parent 6a5b083 commit 8aad38a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions OriginC/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ printf("[%s]%s",workBookName,workSheetName);
```

```c
void BooksClear(){
// delete every workbook in the project
void BooksClear(bool inActiveFolder = true){
// delete every workbook in the active folder or project
foreach(WorksheetPage wksPage in Project.WorksheetPages){
if (inActiveFolder){
string folderPathActive = FolderFullPath(FolderActive());
string folderPathThisBook = FolderFullPath(wksPage.GetFolder());
if (folderPathActive != folderPathThisBook)
continue;
}
wksPage.Destroy();
}
}
Expand Down

0 comments on commit 8aad38a

Please sign in to comment.