T O P I C R E V I E W |
alex_eagle |
Posted - 11/14/2002 : 04:35:27 AM I have a script where I use the doc -e W command with an if statement and two loops. When I execute the script from the script window it works well. When started from a toolbar button, the doc -e W commands seems not to be executed. Whats wrong here ? Is there a problem with line by line execution in Origin 6.1 ?
Alex
|
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 11/15/2002 : 5:55:08 PM Hi Alex,
User-defined toolbar buttons are only active in certain contexts (as you found out), so you need to choose all of the available contexts. View... Toolbars... Button Groups tab... find your button group... highlight your button... click the Settings button. Select the Windows radio button in the Context section and check all of the window types. That won't help you in an empty project or if a notes window (not one of the choices) is active, but it's the best you can do with toolbar buttons in Origin 6.1. (Origin 7 has an "Always" context which makes a button active at all times.)
Mike Buess Origin WebRing Member |
alex_eagle |
Posted - 11/15/2002 : 02:15:27 AM Hi Mike,
I found the problem. The doc -e script makes some changes in worksheets, which doesnt work with empty ones. But before you can click a button in the toolbar, a worksheet hast to be opened. How can you highlight buttons in the toolbar without an active worksheet ?
Alex
|
Mike Buess |
Posted - 11/14/2002 : 11:46:21 AM Hi Alex,
Does the toolbar button call for the correct script file and section? Insert the command
type -b OK;
at the top of the script section it's supposed to run and look for a message box that says "OK" when you click the button. If you don't see it then the button settings are wrong.
Other things you should look for are missing brackets and semicolons.
Mike Buess Origin WebRing Member |