pb获得数据源类型和显示风格


数据源可以用

string ls_sql

ls_sql = dw_1.describe("datawindow.table")

或者

ls_sql = dw_1.getsqlselect()

数据窗口的显示风格
string setting

setting = dw1.Object.DataWindow.Processing
或者
setting = dw1.Describe("DataWindow.Processing")

以下pb中的帮助

Description

The type of processing required to display the data in the selected presentation style.

Controls

DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Processing

Describe argument:

"DataWindow.Processing"

Return values are:

0 - (Default) Form, group, n-up, or tabular
1 - Grid
2 - Label
3 - Graph
4 - Crosstab
5 - Composite
6 - OLE
7 - RichText
8 - TreeView
9 - TreeView with Grid
posted @ 2009-06-19 21:33  山娃  阅读(356)  评论(0)    收藏  举报