Interface ITable
- Namespace
- HP.LFT.SDK.PowerBuilder
- Assembly
- HP.LFT.SDK.dll
A PowerBuilder table.
public interface ITable : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
ColumnCount
The number of columns in the table.
int ColumnCount { get; }
Property Value
RowCount
The number of rows in the table.
int RowCount { get; }
Property Value
Rows
Returns the ITableRow objects.
ReadOnlyCollection<ITableRow> Rows { get; }
Property Value
Methods
ActivateCell(int, int)
Double-clicks a cell by row and column indexes.
void ActivateCell(int row, int column)
Parameters
ActivateCell(int, string)
Double-clicks a cell by row index and column header.
void ActivateCell(int row, string columnHeader)
Parameters
EvaluateExpression(string, uint)
EvaluateExpression uses the PowerBuilder Describe method to evaluate one expression involving values of a particular row and column.
string EvaluateExpression(string expression, uint row)
Parameters
expressionstringThe expression you want to evaluate. In this expression, include a specification of the relevant column.
rowuintThe number of the row for which you want to evaluate the expression.
Returns
- string
The result of evaluating the expression. In the example below, EvaluateExpression returns a string with the value of 1 or 0 depending on the value of the field1 column and row 2.
Examples
pbTable.EvaluateExpression("If(field1 > 10, 1, 0)", 2);
How to use PowerBuilder Describe method to evaluate an expression: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm
Remarks
The EvaluateExpression throws GeneralReplayException for an invalid expression.
GetCell(int, string)
Returns a cell specified by row index and column header.
ITableCell GetCell(int row, string columnHeader)
Parameters
Returns
GetTableProperty(string)
GetTableProperty uses the PowerBuilder Describe method to return the value of one property of a DataWindow object and controls within the DataWindow object. Each column and graphic control in the DataWindow has a set of properties. You specify one property as a string, and GetTableProperty returns the values of the property.
string GetTableProperty(string property)
Parameters
propertystringProperty name. Possible values: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc37783.1252/html/dwref/CCJBHCCF.htm
Returns
- string
A string that includes the value of property. Null if the specified property has no value.
Examples
pbTable.GetTableProperty("DataWindow.Column.Count");
How to use PowerBuilder Describe method: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm
Remarks
The GetTableProperty throws GeneralReplayException for invalid items.
SelectCell(int, int)
Clicks a cell by row and column indexes.
void SelectCell(int row, int column)
Parameters
SelectCell(int, string)
Clicks a cell by row index and column header.
void SelectCell(int row, string columnHeader)
Parameters
SelectRow(ITableRow)
Selects rows by ITableRow.
void SelectRow(ITableRow row)
Parameters
SelectRow(int)
Selects row by index.
void SelectRow(int row)
Parameters
rowint0-based indexes.