我把数值型的赋值也加上一起对比,刷新图表后,只显示数值赋值的那个全局变量,这说不通吧
[PEL] 复制代码 GLOBALVARIABLE:应NA:='',应CHU:='',YINA:=0;
if islastbar THEN
BEGIN
if 应NA='' then
BEGIN
EXTGBstringset('应NA','盈利');
应NA:=EXTGBstring('应NA');
END;
if 应CHU='' then
BEGIN
EXTGBstringset('应CHU','平手');
应CHU:=EXTGBstring('应CHU');
END;
IF YINA=0 THEN
BEGIN
EXTGBdataset('YINA',9999);
YINA:=EXTGBdata('YINA');
END;
DRAWTEXTEX(islastbar,1,850,100,'应NA= '&应NA,COLORyellow);
DRAWTEXTEX(islastbar,1,850,100,'\n'&'应CHU= '&应CHU,COLORgreen);
DRAWTEXTEX(islastbar,1,850,100,'\n \n'&'YINA= '&numtostr(YINA,0),COLORred);
END;
|