[Cl...] Posted January 2, 2020 Share Posted January 2, 2020 My postsetting //Dims to Excel filePath = "T:\DMR\CMM Data\Medtronic\Diameter_.1247 (feature 200)\" ext = ".csv" //N1 = getRecordHead ("PCM_.0934_CFS_Rev. C") //dirPath = filePath + N1 + (" ") +date()+" "+time()+ ext Lot = getRecordHead("order") partnum=getRecordHead("partnbinc") dirPath=filePath+Lot+("_")+partnum+ext display(dirPath) if fileExists(dirPath) == true deleteFile(dirPath) endif //#1 DIM200_1 = getActual("200a").actual //#2 DIM200_2 = getActual("200b").actual addToFile(dirPath,date()) addToFile(dirPath,time()) addToFile(dirPath,("T:\DMR\CMM Data\Medtronic\Diameter_.1247 (feature 200)")) addToFile(dirPath,("Lot Number : "),LN) addToFile(dirPath,("200a : "),DIM200_1) addToFile(dirPath,("200b : "),DIM200_2) The error message. Link to comment Share on other sites More sharing options...
[Ke...] Posted January 2, 2020 Share Posted January 2, 2020 Clarke, You defined "Lot" and "partnum", but you failed to define what "LN" is. Simply add a line of code to the effect of : LN=Lot + partnum Make sure you add it above the "addToFile" commands. Keith Link to comment Share on other sites More sharing options...
[Cl...] Posted January 2, 2020 Author Share Posted January 2, 2020 Got it, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in