Jump to content

Parameter (not defined)


---
 Share

Recommended Posts

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.
150_9b154e23230ece86c1bba5e3218565fa.png
Link to comment
Share on other sites

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

 Share

×
×
  • Create New...