Your Products have been synced, click here to refresh
Ah, didn't notice it in the code you posted. You are trying to create an object from a string concatenation.
Try dim'ing the FILENAME, FILEPATH and FOLDER as strings instead.
Add this to the beginning of your script:
Dim FILENAME, FILEPATH, FOLDER As string
Then just remove the "CREATEOBJECT( .. )" from the FILENAME, FILEPATH and FOLDER definitions.
Leave the Set FILENAME = "D:........" as is for FILENAME, FOLDER and FILEPATH.
FILENAME = VPART.StringValue & "_" & VDESCRIPTION.StringValue & "_" & VSERIALNUMBER.StringValue & "_" & VDATE.StringValue & "_" & VTIME.StringValue
Ah, didn't notice it in the code you posted. You are trying to create an object from a string concatenation.
Try dim'ing the FILENAME, FILEPATH and FOLDER as strings instead.
Add this to the beginning of your script:
Dim FILENAME, FILEPATH, FOLDER As string
Then just remove the "CREATEOBJECT( .. )" from the FILENAME, FILEPATH and FOLDER definitions.
Leave the Set FILENAME = "D:........" as is for FILENAME, FOLDER and FILEPATH.
FILENAME = VPART.StringValue & "_" & VDESCRIPTION.StringValue & "_" & VSERIALNUMBER.StringValue & "_" & VDATE.StringValue & "_" & VTIME.StringValue
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |