编写要求:
解答:
?网友求助:
解禁股:=SelfString('限售流通股. 大智慧');
XOffset:= 0;
YOffset:= 60;
lineHeight:= 18;
pos1bc:= STRFIND(解禁股, ';', 1);
pos2bc:= STRFIND(解禁股, ';', pos1bc + 1);
pos3bc:= STRFIND(解禁股, ';', pos2bc + 1);
pos4bc:= STRFIND(解禁股, ';', pos3bc + 1);
pos5bc:= STRFIND(解禁股, ';', pos4bc + 1);
str1bc:= STRMID(解禁股, 1 , pos1bc-1);
str2bc:= STRMID(解禁股, pos1bc + 1, pos2bc - pos1bc - 1);
str3bc:= STRMID(解禁股, pos2bc + 1, pos3bc - pos2bc - 1);
str4bc:= STRMID(解禁股, pos3bc + 1, pos4bc - pos3bc - 1);
str5bc:= STRMID(解禁股, pos4bc + 1, pos5bc - pos4bc - 1);
IF pos1bc THEN DRAWTEXTABS(XOffset, YOffset + lineHeight , '解禁股: '+ str1bc), Color00FF00;
IF pos1bc AND pos2bc THEN DRAWTEXTABS(XOffset + 52, YOffset + lineHeight * 2, str2bc), ColorF0FF0F;
IF pos1bc AND pos2bc AND pos3bc THEN DRAWTEXTABS(XOffset + 52, YOffset + lineHeight * 3, str3bc), Color00FF00;
IF pos1bc AND pos2bc AND pos3bc AND pos4bc THEN DRAWTEXTABS(XOffset + 52, YOffset + lineHeight * 4, str4bc), ColorF0FF0F;
IF pos1bc AND pos2bc AND pos3bc AND pos4bc AND pos5bc THEN DRAWTEXTABS(XOffset + 52, YOffset + lineHeight * 5, str5bc), Color00FF00;
?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!