·首页 ·asp ·.net ·php ·JSP ·CGI ·数据库 ·网页设计 ·网管专栏 ·XML ·工具软件 ·办公软件 ·操作系统 ·程序设计 ·LINUX 
  当前位置: 普克>>计算机教程>>程序设计>>PowerBuilder>>怎样在程序中为datawindow加计
flash视频教学

photoshop专题

asp.net专题

office专题

怎样在程序中为datawindow加计算域或line


PowerBuilder 发表时间:2006-4-8 字体:  返回

//以下程序加一计算域sum(dept_id for all)
string ls_modrow
dw_1.Modify("DataWindow.summary.Height=64")
ls_modrow = 'Create compute(band=summary font.charset="0" font.face="MS Sans Serif" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="9" y="4" height="52" width="297" format="[general]" expression="sum(dept_id for all)" alignment="1" border="0" crosstab.repeat=no )~r~n'
dw_1.modify( ls_modrow )

//以下程序加一条线
string ls_line
dw_1.Modify("DataWindow.detail.Height=332")
ls_line = 'Create line(band=detail background.mode="2" background.color="16777215" pen.style="0" pen.width="5" pen.color="0" x1="37" y1="320" x2="1458" y2="316" )~r~n'
dw_1.modify( ls_line )

dw_1.settransobject(sqlca)
dw_1.retrieve()



上一篇:怎么在数据窗口中用左箭头实现shift+tab
下一篇:给数据窗口自定义错误信息

普克创业投资网刊载此文不代表同意其说法或描述,仅为提供更多信息。
在百度中搜索怎样在程序中为datawindow加计算域或line的相关内容]   [在狗狗中搜索怎样在程序中为datawindow加计算域或line的相关内容]
Copyright @ 2006 PUPK.COM 普克创业投资网 版权所有
 建议使用1024*768以达到最好的浏览效果