return select thisrow as "代码",
GetFundLastEndDate("OF"$RightStr(thisrow,6)) as "退市日",
spec(base(302025),"OF"$RightStr(thisrow,6)) as "类型"
from getbk("上证基金;深证基金")
where GetFundLastEndDate("OF"$RightStr(thisrow,6)) end;
结果:
范例2:从指定板块中剔除已发布清算公告的代码
//剔除存在退市日的代码即可
return sselect thisrow
from getbk("上证基金;深证基金")
where not GetFundLastEndDate("OF"$RightStr(thisrow,6)) end;
//返回:基金列表