VAR BOOL B_W;
PROC P_Write(string s_write)
VAR string time;
VAR string date;
IF B_W=FALSE THEN
Open "HOME:"\File:="recording.csv",channel\Append;
B_W:=TRUE;
ENDIF
date:=CDate();
time:=CTime();
Write channel,date+"/"+time+"="+s_write;
ENDPROC
该段程序可以将数据(字符串)保存到文档。
调用格式:
P_Write("ABBBBB")
楼主最近还看过