原帖由 kaiser88 于 2013-12-17 12:35 发表
再请问 怎么读写呢?俺不会
哈,这有些麻烦啊!
你把星相数据存在目录C:\Da.txt
档名是Da.txt
如果存在别的目录,如D:\hhh\Da.txt
那必须把这目录D:\hhh\Da.txt取代公式中第八列的C:\Da.txt
下面是飞狐公式,我也未试过,你自行试试吧
FoxDE:=DATE; FoxTE:=TIME;
MyData:=C*0;
<%
MyData =FFL.VarData("MyData")
FoxDE =FFL.VarData("FoxDE")
FoxTE =FFL.VarData("FoxTE")
Set fs =CreateObject("Scripting.FileSystemObject")
Set wrkfs =fs.OpenTextFile("C:\Da.txt", 1)
MyTxt = wrkfs.ReadLine
wrkfs.close
TxtStr=MyTxt
TxtAry = Split(TxtStr, ",", -1, 1)
GetDE=CLNG(TxtAry(0))
GetTE=CLNG(TxtAry(1))
GetVV=CSNG(TxtAry(2))
for i=0 to ubound(MyData)
if FoxDE(i)=GetDE andFoxTE(i)=GetTE then
MyData(i)=GetVV
end if
next
FFL.VarData("MyData")=MyData
%>
cc:=MyData;
ccsh:=filter(backset(cc<ref(cc,1) and ref(cc,2)<ref(cc,1),2),1);
vertline(ccsh),colorred; {high}
ccsL:=filter(backset(cc>ref(cc,1) and ref(cc,2)>ref(cc,1),2),1);
vertline(ccsL),colorgreen; {low}
[ 本帖最后由 静芸 于 2013-12-17 13:00 编辑 ] |