等级: 专业版
- 注册:
- 2022-1-11
- 曾用名:
|
楼主 |
发表于 2023-3-14 09:33
|
显示全部楼层
'\\Desktop-g69ej4c\C:\MCNINFILE0.INI'还是读不到,但是可以我的电脑的网络上读到MCNINFILE0.INI文件并打开,这是为何?
补充内容 (2023-3-14 09:34):
switch0:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBS'),NODRAW,COLORWHITE;//获取《某一股票已开多仓数量》
switch1:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSS'),NODRAW,COLORWHITE;//获取《某一股票已开空仓数量》
hold0:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBH'),NODRAW,COLORWHITE;
hold1:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSH'),NODRAW,COLORWHITE;
//tswitch0:=GETINIFILE('\\Desktop-g69ej4c\C:\MCNINFILE0.INI',STKNAME,'GGSBS'),NODRAW,COLORWHITE;//获取《某一股票已开多仓数量》
//tswitch1:=GETINIFILE('\\Desktop-g69ej4c\C:\MCNINFILE0.INI',STKNAME,'GGSSS'),NODRAW,COLORWHITE;//获取《某一股票已开空仓数量》
thold0:=GETINIFILE('\\Desktop-g69ej4c\C:\MCNINFILE0.INI',STKNAME,'GGSBH'),NODRAW,COLORWHITE;
thold1:=GETINIFILE('\\Desktop-g69ej4c\C:\MCNINFILE0.INI',STKNAME,'GGSSH'),NODRAW,COLORWHITE;
{
if switch0<>tswitch0 then begin
WRITEINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBS',tswitch0);
switch0:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBS'),NODRAW,COLORWHITE;//获取《某一股票已开多仓数量》
end
if switch1<>tswitch1 then begin
WRITEINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSS',tswitch1);
switch1:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSS'),NODRAW,COLORWHITE;//获取《某一股票已开空仓数量》
end
}
if hold0<>thold0 then begin
WRITEINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBH',thold0);
hold0:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSBH'),NODRAW,COLORWHITE;//获取《某一股票已开多仓数量》
end
if hold1<>thold1 then begin
WRITEINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSH',thold1);
hold1:=GETINIFILE('C:\MCNINFILE0.INI',STKNAME,'GGSSH'),NODRAW,COLORWHITE;//获取《某一股票已开空仓数量》
end |
|