Your Products have been synced, click here to refresh
I do understand what you're trying to do (I think).
You're not getting what I'm saying.
The line...
ASSIGN/MYSUBNUM=1
.. .doesn't need changing.
All it does is have an initial value that will form a valid file name (i.e. one that exists on the system) and contains a subroutine called (in my example) 'MYSUB'
At execution time, MYSUBNUM becomes whatever is read from the text file (1,2,3 etc) as you up-rev your subroutines.
To clarify.
When you start execution, PC-Dmis is looking at that CALLSUB command, and doing a verification that it exists.
In my case it's looking at the 'MYSUBFILE' assignment. This is made up of MYSUBFILE+MYSUBNUM+".prg"
So it looks what values they currently hold
MYSUBFILE = "C:\\Users\\Public\\Documents\\Hexagon\\PC-DMIS\\2023.1\\SubLibrary"
MYSUBNUM = 1
".prg" = ".prg"
It sticks all those together to get "C:\\Users\\Public\\Documents\\Hexagon\\PC-DMIS\\2023.1\\SubLibrary1.prg" then it checks it contains a subroutine called MYSUB (which it does).
It doesn't matter that it might not actually be the subroutine program we eventually call, just that it's a valid file / subname when it starts.
It's then happy to proceed with execution without displaying an error.
I do understand what you're trying to do (I think).
You're not getting what I'm saying.
The line...
ASSIGN/MYSUBNUM=1
.. .doesn't need changing.
All it does is have an initial value that will form a valid file name (i.e. one that exists on the system) and contains a subroutine called (in my example) 'MYSUB'
At execution time, MYSUBNUM becomes whatever is read from the text file (1,2,3 etc) as you up-rev your subroutines.
To clarify.
When you start execution, PC-Dmis is looking at that CALLSUB command, and doing a verification that it exists.
In my case it's looking at the 'MYSUBFILE' assignment. This is made up of MYSUBFILE+MYSUBNUM+".prg"
So it looks what values they currently hold
MYSUBFILE = "C:\\Users\\Public\\Documents\\Hexagon\\PC-DMIS\\2023.1\\SubLibrary"
MYSUBNUM = 1
".prg" = ".prg"
It sticks all those together to get "C:\\Users\\Public\\Documents\\Hexagon\\PC-DMIS\\2023.1\\SubLibrary1.prg" then it checks it contains a subroutine called MYSUB (which it does).
It doesn't matter that it might not actually be the subroutine program we eventually call, just that it's a valid file / subname when it starts.
It's then happy to proceed with execution without displaying an error.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |