数据窗口中DDLB的用法

来源:互联网 发布:买卖权平价公式 知乎 编辑:程序博客网 时间:2024/05/16 15:40

string ls_value,ls_temp
ls_value 
= '短期促销~t短期促销/'

declare cursor1 cursor for   
  SELECT distinct tb_gds.c_subname
     FROM tb_gds  (nolock);
open cursor1;
fetch cursor1 into :ls_temp;
do while sqlca.sqlcode=0
 
if len(trim(ls_temp)) > 0 and ls_temp <> '短期促销' then
  ls_value 
= ls_value + ls_temp + '/'
 end 
if 
 fetch cursor1 into :ls_temp;
loop
close cursor1;
//关闭游标 
this.Modify("c_subname.values = '"+ls_value+"'"

原创粉丝点击