求救大侠!--- 如何取得crosstab检索后的标题值?

eastyan 2002-04-27 09:26:33
crosstab检索后, header 部分会动态的检索出数据,
但是检索后的这些数据如何取得呢?

认真做事,真诚交友!急盼!
...全文
39 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
eastyan 2002-04-27
  • 打赏
  • 举报
回复
为什么还没有人来救我?????
eastyan 2002-04-27
  • 打赏
  • 举报
回复
up
llitcwl 2002-04-27
  • 打赏
  • 举报
回复
看一段代码:
//====================================================================
// DW_1 单击事件 在 w_sys_bzreport inherited from window
//--------------------------------------------------------------------
// 说明:交叉表得到记录测试
//--------------------------------------------------------------------
// 返回: ()
//--------------------------------------------------------------------
// 作者: cwl 日期: 2002.01.20
//变更日志:020302 改变对列值的取值方法
//====================================================================

string lsSubject, lsClass, lsValue, lsCol ,ls_clicked,ls_temp,ls_fristcol
int li_i
//至关重要:将数据窗口静态化
dw_1.object.datawindow.crosstab.staticmode='Yes'

ls_clicked = dw_1.GetObjectAtPointer()

if IsValid( dwo ) and row > 0 THEN

//列名
lsCol = string( dwo.name )

//值
lsValue = string( this.getitemnumber( row, lsCol ) )

if isnull( lsValue ) then lsValue = 'null'

// 本行第一列值
lsSubject = this.GetItemString( row, 1 )

// 相应列值
//原列名
li_i=pos(lscol,'_')
if li_i=0 then li_i=len(lscol)+1
ls_fristcol=mid(lscol,1,li_i - 1)

//得到分隔串
ls_temp=mid(lscol,len(ls_fristcol)+1,len(lscol))
messagebox( '',ls_fristcol + "_t"+ls_temp )

// 相应列值
lsClass = this.Describe( ls_fristcol + "_t"+ls_temp+".Text" )
messagebox( lscol,lsSubject + ' ' + lsClass + " " + lsValue )

end if

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧