欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 怎么改成循环语句??

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有6643人关注过本帖平板打印复制链接

主题:怎么改成循环语句??

帅哥哟,离线,有人找我吗?
弦外之音
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:67 积分:431 威望:0 精华:0 注册:2010/10/12 9:26:32
怎么改成循环语句??  发帖心情 Post By:2011/8/3 1:52:54    Post IP:125.77.155.95[只看该作者]

  怎么把以下代码写成循环语句?

if abc>13 then

       sss:=def14;

else if abc>12 then

       sss:=def13;

else if abc>11 then

       sss:=def12;

else if abc>10 then

       sss:=def11;

else if abc>9 then

       sss:=def10;

else if abc>8 then

       sss:=def9;

else if abc>7 then

       sss:=def8;

else if abc>6 then

       sss:=def7;

else if abc>5 then

       sss:=def6;

else if abc>4 then

       sss:=def5;

else if abc>3 then

       sss:=def4;

else if abc>2 then

       sss:=def3;

else if abc>1 then

       sss:=def2;

 

if abc<-13 then

       sss:=xyz14;

else if abc<-12 then

       sss:=xyz13;

else if abc<-11 then

       sss:=xyz12;

else if abc<-10 then

       sss:=xyz11;

else if abc<-9 then

       sss:=xyz10 ;

else if abc<-8 then

       sss:=xyz9;

else if abc<-7 then

       sss:=xyz8;

else if abc<-6 then

       sss:=xyz7 ;

else if abc<-5 then

       sss:=xyz6;

else if abc<-4 then

       sss:=xyz5;

else if abc<-3 then

       sss:=xyz4;

else if abc<-2 then

       sss:=xyz3;

else if abc<-1 then

       sss:=xyz2;


 回到顶部
总数 14 1 2 下一页