I am able to write a file. For this example I write the value porder and soortreg to the oee.csv file. How do I make a 'real' csv file and more important how do I make coloms:
i now have a file what looks like:
porder
soortreg
porder2
soortreg2
I want to have the file looks like:
porder,soortreg
porder2,soortreg2
___
sub btnoeereg_Click
' ErrorLabel(errSaveINI)
FileOpen( c1,"oee.csv",cwrite,cAppend)
FileWrite(c1,porder.Text)
FileWrite(c1,soortreg.Text)
FileClose(c1)
Return'If there were no "Return" here, the error message would have shown.
errSaveINI:
Msgbox("Error writing INI file.","",cMsgboxOK,cMsgboxHand)
FileClose(c1)
End Sub
i now have a file what looks like:
porder
soortreg
porder2
soortreg2
I want to have the file looks like:
porder,soortreg
porder2,soortreg2
___
sub btnoeereg_Click
' ErrorLabel(errSaveINI)
FileOpen( c1,"oee.csv",cwrite,cAppend)
FileWrite(c1,porder.Text)
FileWrite(c1,soortreg.Text)
FileClose(c1)
Return'If there were no "Return" here, the error message would have shown.
errSaveINI:
Msgbox("Error writing INI file.","",cMsgboxOK,cMsgboxHand)
FileClose(c1)
End Sub