14.1 Bug SRT/END Mismatch Warning & Block Comments

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

14.1 Bug SRT/END Mismatch Warning & Block Comments

Post by jpuziano » Wed Mar 19, 2014 10:17 pm

Hi Marcus,
Macro Scheduler when saving the macro wrote:---------------------------
Subroutine mismatch
---------------------------
There is a mismatch between the number of SRT> and END> statements.
Check that all your subroutines are closed and you haven't missed out an END> statement.
---------------------------
OK
---------------------------
Thanks for adding that check in MS 14.1 however I think it needs a bit of fine tuning.

Code: Select all

/*

//SRT>TEST
END>TEST

*/

SRT>TEST
END>TEST
The above should not warn because it should not be looking at lines inside Block Comment /* */ tags.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Mar 24, 2014 2:14 pm

Thanks, noted.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Mon Mar 31, 2014 5:29 pm

Hi Marcus,
---------------------------
Subroutine mismatch
---------------------------
There is a mismatch between the number of SRT> and END> statements.
Check that all your subroutines are closed and you haven't missed out an END> statement.
---------------------------
OK
---------------------------

☐ Don't show this dialog again
At the bottom of the warning dialog above... if I were to check the "Don't show this dialog again" checkbox... and later I wanted to turn Subroutine Mismatch Checking back on... how would I do that?

I looked under the Tools menu in the Script Editor for a way to turn this checking on/off... similar to:

Show Builder Pane

All we have to do is check or uncheck to turn that on/off. Maybe we could also have...

Subroutine Mismatch Check

...under the Tools menu as well? Just a thought... unless there is already some other way to turn it on again?

Thanks for listening...
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Apr 01, 2014 8:48 am

Hi,

Only way at present is to remove a setting from the registry. Run this code:

RegistryDelVal>HKEY_CURRENT_USER,Software\MJTNET\MSched14,WarnSRTEND
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts