pb中dwobject有哪些屬性

woshilitao5 2009-05-11 12:10:59
pb datawindow的clicked和doubleclicked等事件中都有dwobject類型的參數dwo,請問dwo中究竟有哪些屬性呢,我只知道dwo.name是列名。

請教dwo的屬性,越詳細越好!
...全文
827 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
woshilitao5 2009-05-14
  • 打赏
  • 举报
回复
???
圣殿骑士18 2009-05-14
  • 打赏
  • 举报
回复
file->new->tool->dwsyntax
HVIVIP 2009-05-14
  • 打赏
  • 举报
回复
打开Browser->DataWindow看,什么都有,可以慢慢研究
lishuisheng 2009-05-13
  • 打赏
  • 举报
回复
发份pb手册我吧,谢谢!
woshilitao5 2009-05-12
  • 打赏
  • 举报
回复
引用 2 楼 newease 的回复:
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:

ls_name = dwo.Name

If the control is a column, you can get data from the whole column or from specific rows. You must specify the …

你能不能把中文的解釋意思翻譯下?謝謝,還有你的手冊的名稱是什么,中文的還是英文的?
woshilitao5 2009-05-12
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 newease 的回复:]
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:

ls_name = dwo.Name

If the control is a column, you can get data from the whole column or from specific rows. You must specify the …
[/Quote]
你能不能把中文的解釋意思翻譯下?謝謝,還有你的手冊的名稱是什么,中文的還是英文的?
liu_xl1017 2009-05-12
  • 打赏
  • 举报
回复
huifu
eviler 2009-05-11
  • 打赏
  • 举报
回复
直接f1 ,输入 DWObject object:DataWindow object type
newease 2009-05-11
  • 打赏
  • 举报
回复
如果你需要手册,我可以发一份给你

数据窗口对象由下述对象构成
Bitmap 位图
Button 按钮
Column 列
Computed field 计算域
DataWindow
Graph 统计图
GroupBox 组框
Line 直线
Oval 椭圆
Picture 图片框
Rectangle 矩形
RoundRectangle 圆角矩形
Report 报表
TableBlob
Text 文本
newease 2009-05-11
  • 打赏
  • 举报
回复
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:

ls_name = dwo.Name

If the control is a column, you can get data from the whole column or from specific rows. You must specify the buffer from which you want to retrieve data. In this statement, row is another argument passed to the event so the value in ls_data is the data in the row and column the user clicked. In this example, if the column value is not a string, an error occurs (check ColType property to get the column data type):

ls_data = dwo.Primary[row]

This statement assigns a new value to the row and column the user clicked. The assignment does not trigger the ItemChanged event and bypasses validation. If the column is not numeric, an error occurs:

dwo.Primary[row] = 41

This statement gets all the data in the column the user clicked. The data is stored as an array in the Any variable. An Any variable can hold all data types, so no error occurs:

Any la_data

la_data = dwo

This statement gets data in the column from selected rows. The data is stored as an array in the Any variable:

Any la_data

la_data = dwo.Selected

建议学习一下PB参考手册,里面有详细介绍 第 6 章 数据窗口 对象属性的访问方法
woshilitao5 2009-05-11
  • 打赏
  • 举报
回复
請說明用途,最好有詳細的解釋和舉例!

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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