New VB Scripting for v3.8

Post Reply
randomguy
Frequent User
Frequent User
Posts: 49
Joined: Thu Jan 30, 2014 8:43 pm

New VB Scripting for v3.8

Post by randomguy » Thu Aug 16, 2018 8:49 am

So I see that v3.8 has been released and there seems to be quite a bit mentioned about a new VB Script engine. I'm very much a hack at VB Scripting and have no formal training. As such, is there any documentation out there that provides some examples of old way vs. new way, or that lays out some of the changes?

Almost all the scripting I've done consists of simple Yes/No prompts and basic If/Then scenarios, so I don't expect a lot of impact, but I'd like to know a little more before I jump into the upgrade.

Thanks!

User avatar
CrashN8
Site Admin
Site Admin
Posts: 260
Joined: Thu Feb 09, 2017 4:07 pm

Re: New VB Scripting for v3.8

Post by CrashN8 » Thu Aug 16, 2018 11:12 am

I would suggest installing 3.8 first and request 30 day trial license. Then make copy(s) of your programs from previous version and try running in 3.8. You will find several forum topics that have been updated recently with info about VB Script.

I'll try to list all changes in VB Script Engine that I am aware of:
You can also find some new information in the Function Reference - VB Script.PDF file located in the Help Folder here - C:\Program Files\Nikon\CMM-Manager 3.8\Help
You do not have the required permissions to view the files attached to this post.

randomguy
Frequent User
Frequent User
Posts: 49
Joined: Thu Jan 30, 2014 8:43 pm

Re: New VB Scripting for v3.8

Post by randomguy » Fri Aug 17, 2018 10:41 am

Thanks Nate. Is the licensing handled differently with 3.8? I guess I don't follow as to why I want a trial license when I've got a current license and maintenance agreement. What am I missing?

Thanks!

User avatar
medupriest
Moderator
Moderator
Posts: 346
Joined: Fri Mar 13, 2015 11:59 am

Re: New VB Scripting for v3.8

Post by medupriest » Mon Aug 27, 2018 10:25 am

If you are in contract, You can just upgrade, but Nate's advice to back up programs before migrating them to 3.8 stands.

The licensing i not handled differently in 3.8.

With your if/then statements are followed by a "GoTo", those will no longer work. The following link has instructions on how to change your GoTo's - viewtopic.php?f=63&t=1648

bkorn
User
User
Posts: 14
Joined: Wed Mar 21, 2018 3:41 pm

Re: New VB Scripting for v3.8

Post by bkorn » Mon Feb 04, 2019 7:39 pm

I'm trying to stop execution of my program from within my VB script if a certain condition is not met. In version 3.7 I used "Exit Sub" and it worked great. In 3.8, I get an error message saying that is an "Invalid 'exit' statement". I tried just using "Exit", and that doesn't work either.

Does anyone know how I can stop the program in 3.8?

Thanks.

jswope
Super User
Super User
Posts: 172
Joined: Fri May 17, 2013 12:50 pm

Re: New VB Scripting for v3.8

Post by jswope » Wed Feb 06, 2019 8:55 am

I would like to know this also. I am having the same issue.

jswope
Super User
Super User
Posts: 172
Joined: Fri May 17, 2013 12:50 pm

Re: New VB Scripting for v3.8

Post by jswope » Wed Feb 06, 2019 1:08 pm

This is what I used and it worked.
Capture.JPG
You do not have the required permissions to view the files attached to this post.

bkorn
User
User
Posts: 14
Joined: Wed Mar 21, 2018 3:41 pm

Re: New VB Scripting for v3.8

Post by bkorn » Thu Feb 07, 2019 1:55 pm

Ah, yeah, that would work. There has to be a simpler way though.

jswope
Super User
Super User
Posts: 172
Joined: Fri May 17, 2013 12:50 pm

Re: New VB Scripting for v3.8

Post by jswope » Thu Feb 07, 2019 2:39 pm

This came from Nikon support. If there was an simpler way I would hope they would have told me.

Post Reply