Your Products have been synced, click here to refresh
'Variables Set opname = PCDPartProgram.GetVariableValue ("OPERATOR") Set joname = PCDPartProgram.GetVariableValue ("JOB") Set sampname = PCDPartProgram.GetVariableValue ("SAMP") 'Assignments per Variable Call-Ins Fname = sampname.Stringvalue & " " & opname.Stringvalue & " " strDirectory = PCDPartProgram.Path & "\" & "Job Log" strFileName = joname.StringValue strPath = strDirectory & "/" & strFileName & ".txt" ' Create the File System Object Set objFSO = CreateObject("Scripting.FileSystemObject") 'Check For Text File And create If Necessary If objFSO.FileExists(strPath) Then Set objFile = objFSO.OpenTextFile(strPath) Else Set objFile = objFSO.CreateTextFile(strPath) Set objFile = objFSO.OpenTextFile(strPath) End If
'Variables Set opname = PCDPartProgram.GetVariableValue ("OPERATOR") Set joname = PCDPartProgram.GetVariableValue ("JOB") Set sampname = PCDPartProgram.GetVariableValue ("SAMP") 'Assignments per Variable Call-Ins Fname = sampname.Stringvalue & " " & opname.Stringvalue & " " strDirectory = PCDPartProgram.Path & "\" & "Job Log" strFileName = joname.StringValue strPath = strDirectory & "/" & strFileName & ".txt" ' Create the File System Object Set objFSO = CreateObject("Scripting.FileSystemObject") 'Check For Text File And create If Necessary If objFSO.FileExists(strPath) Then Set objFile = objFSO.OpenTextFile(strPath) Else Set objFile = objFSO.CreateTextFile(strPath) Set objFile = objFSO.OpenTextFile(strPath) End If
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |