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
 bypass pop-up
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 12/05/2012 :  05:23:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8.6 Operating System:win7

I am using the function wclear to automatically clear the contents of several worksheets.

It works beautifully but a long pop-up appears asking confirmation and I have to confirm many times my decision, is there a way to avoid the pop-ups to appear?

Thanks a lot, julio

greg

USA
1378 Posts

Posted - 12/05/2012 :  5:09:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The X-Function that is used for the Worksheet : Clear Worksheet menu option is wclear. This function has an option to display the Attention! message or not.

You cannot modify the behavior of the built-in menu, but you could create a Custom menu with an entry that uses the function with the message turned off using this script:

wclear msg:=0;

Select Tools : Custom Menu Organizer
On the Add Custom Menu tab, right-click in the gray box and choose "New Main Popup". You can edit the Popup Text. This is what will appear on the Origin menu.
Right-click on the added menu and choose "Add Item"
Item text could be changed to Clear Worksheet (no prompt) and paste the above script.
Uncheck the Graph and Matrix boxes so the menu is disabled when those windows are active. (wclear only works for worksheets)
Click Close and respond Yes to save your changes.

When a worksheet is active, you should see a new main menu option with a popup option that clears worksheets without prompting.
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 12/06/2012 :  07:40:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
dear Greg,
adding your simple msg:=0 script to each of the wclear w:= number of sheets, worked just fine!. No more confirmation messages appeared!!!!

I just wanted the msgs do not appear after the clearing of each of the many worksheets, although it was interesting to know how to remake the menus!

THANK YOU VERY MUCH!, julio
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