Search found 98 matches

by ken60
Tue Mar 10, 2020 4:02 pm
Forum: VB Scripting 3.8+
Topic: Goto deprecated in 3.8
Replies: 10
Views: 4882

Re: Goto deprecated in 3.8

Thank you CrashN8
by ken60
Wed Mar 04, 2020 1:20 pm
Forum: VB Scripting 3.8+
Topic: Goto deprecated in 3.8
Replies: 10
Views: 4882

Re: Goto deprecated in 3.8

This decision by Nikon is a bad idea for end users as I see now, we have more than 500 programs with "Goto" statement embedded in it, to update all will take quite some time and as you see on 1 of my post Goto function work best in what we try do achieve. "If" "then" "else" or "Do" loop has their ow...
by ken60
Tue Mar 03, 2020 1:19 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

You would need a "static" variable to use as a flag in that case. You could read/write to a file or windows system variable I guess That is beyond my capable, I learned VB from other users and apply whenever I see fit. If you have different way to get the same approach I be more than happy to learn...
by ken60
Tue Mar 03, 2020 10:19 am
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

No, the way it was written did not looping. The program finish and stop, operator load next part as same location then hit RUN and click "No" for manual alignment, program will finish and stop and so on. The reason I don't use "batch Run" is part not always come in shape that I can set on table or h...
by ken60
Mon Mar 02, 2020 8:31 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

Capture.JPG Hello Guru, the code in the program still looping continuously when run with both "Yes" or "No" for "Do Alignment?" It seems there is no other way I can have the 2 queries work as before since "Goto" statement is not support any more. I modify the program to use IF, THEN, ELSE instead. ...
by ken60
Fri Feb 28, 2020 1:41 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

Thank you Guru
by ken60
Thu Feb 27, 2020 6:40 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

I would have thought the "Is the program up to date" would be the once only?
You are absolute right, only need to verify "Rev." once for every batch we run
by ken60
Thu Feb 27, 2020 4:23 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

The purpose of the loop is to allow the program to run, say 20 times (without closing the program) to inspect 20 parts, but only prompt for the alignment once? In other words, you are putting part 1 on the table, clicking "run" in CMM-Manager, then placing part 2 on the table and clicking "run" in ...
by ken60
Thu Feb 27, 2020 1:35 pm
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Exit Program - Do Loop question

Thank you CrashN8 I was think about moved "end if " statement before Do loop but to do that the program has to go thru 2nd query every time which is not my intended. Thank you Guru, Same as CrashN8 suggestion, you modification still requiring the program execute 2 queries on every run....I know it i...
by ken60
Thu Feb 27, 2020 10:22 am
Forum: VB Scripting 3.8+
Topic: Exit Program - Do Loop question
Replies: 22
Views: 793

Re: Upgrade to 3.9 sp2

Thank you Guru, my intend in this program is when run this program 1st time I will do manual align part (1st query) then program will prompt for checking current rev. (2nd query) if up to date program will continue if not program will jump to end of program, when run program 2nd time It will skip th...