Trailer.#.property  Units

Chapter 3: DataWindow Object Properties

Type

Description

The type of the control (for Describe) or the type of presentation style (for SyntaxFromSQL).

Syntax

PocketBuilder dot notation:

dw_control.Object.controlname.Type

Describe argument:

"controlname.Type"

Parameter

Description

controlname

The name of the control for which you want the type. Valid values are:

  • datawindow

  • bitmap (for Picture)

  • button

  • column

  • compute (for Computed Field)

  • graph

  • groupbox

  • line

  • ellipse (for Oval)

  • rectangle

  • report

  • roundrectangle

  • tableblob

  • text

SyntaxFromSQL:

Style ( Type = value )

Parameter

Description

value

A keyword specifying the presentation style for the DataWindow object. Keywords are:

  • (Default) Tabular

  • Grid

  • Form (for the Freeform style)

  • Graph

  • Group

Examples

Example 1

string setting

setting = dw_1.Object.emp_name.Type

Example 2

setting = dw_1.Describe("emp_name.Type")

Example 3

SQLCA.SyntaxFromSQL(sqlstring, &

'Style(... Type=grid ...)', errstring)





Copyright © 2004. Sybase Inc. All rights reserved. Units

View this book as PDF