06-16-2011 05:09 AM
I have the following piece of code:
Dim i, SharedPath, Chans Chans = Array("Roll","Slip","HW","Storq","StMean","Fslip","Sslip","HW_Strat") CHNNAMEOVER =0 CHNCOMMENTOVER =0 CHNNAMINGMODE ="GroupUnique" EXTENDCHNNAME ="IndexName" SharedPath="N:\Dynamics Data Processing\Spad\" AutoDrvUser= SharedPath&"VBS\" GraphDrvUser= SharedPath&"layouts\"
which has always worked until we switched to DIAdem 2010. Now the last two lines apppear to operate as if the variables were the same one. That is to say, the code sets AutoDrvUser to SharedPath&"VBS\" and at the same time sets GraphDrvUser to the same value. When the following line is executed BOTH variables change to SharedPath&"layouts\"! They operate in unison.
Wondering if it was a case of old variables, I changed the last two lines to read:
ScriptReadPath= SharedPath&"VBS\" LayoutReadPath= SharedPath&"layouts\"
Again I used the watch window to see what value each variable took during debug mode and exactly the same thing happened! All four variables acted in unison.
What's going on?
Cheers,
Si.
06-22-2011 05:24 AM
Hi Si,
See the attached KB, this should solve the issue.
Regards
Richard