Type

[property icon] Type

Graph type

Enumerated type, possible values are:

Pie
Bar
Pie3D
Bar3D
Line

Applies to: Graph

Introduced in KCML version 5.03


[property icon] Type$

Specifies the format that the user will use to enter information

String property

Applies to: Button , Grid , GridCell , GroupBox , KCMLEdit , Picture Button , Static Text


[property icon] Type$

Type of JavaScript object to create

String property

Applies to: HTML

Introduced in KCML version 7.00


>Type

Type

The string property may used by the Edit control and grid control cells to specify the style of the edit control or grid cell that will be presented on the form.

Starting with KCML 6.10 the use of this property is deprecated as the style can be deduced from the format information available in the DataField property. KCML 6.10 allows a much richer selection of data aware field types and when these are used, the Type$ property is redundant.

Available types are detailed below. The second columns shows the new preferred field type for the DataField property.

TTIMETime Format Instructs the control to provide a time entry Edit control where data is entered in the format of HH:MM.
DDATEDate Format Instructs the control to provide a date entry edit control. The format in which the date is displayed is detected from the Windows system settings. In the US this would be MM/DD/YYYY while in most other places it would be DD/MM/YYYY.
BBOOLBoolean Instructs the control to act as a check box.
Nsn1.n2NUM() or UNUM()Numeric Instructs the control to permit only numbers to be entered. The field can accept both signed and unsigned values by specifying an optional plus or a minus sign immediately after the N. The first parameter n1 restricts the length of the number while the second, optional, parameter .n2 specifies the number of decimal places allowed. For example, specifying "N6.2" would allow a maximum value of 9999.99 to be entered. See the CanConvert property for more information on how currency values should be specified.
SnCHAR() or HEX()String Instructs the control to allow a string of up to n characters.
Sn1xn2TEXT()Multi-line string Instructs the control to act as a multiple line edit control allowing n2 lines of n1 characters. For example, an address field may require 5 lines of 35 characters therefore a type of "S35x5" would be specified.
IsnINT() or UINT()Integer value Instructs the control to allow a signed or unsigned integer value to be entered. If required the optional plus or minus sign must be specified immediately after the I. If no sign specifier the number is assumed to be unsigned. The n parameter specified the number of storage bytes available. Allowed values are 1, 2 and 4. For example, specifying a type of "I1" would restrict the entry to a value ranging from 0 to 255 and a type of "I-1" would restrict the entry to a value ranging from -127 to +127.

If a Type$ property is specified it will override the default type deduced from the DataField property.

The only types supported on dbedit controls with drop downs are simple strings.

Use with Graph control

The Type enumerated property for graphs sets the style of the graph to be displayed. Currently three types are supported: bars, lines and pie charts in 2D and 3D styles. The bar and line charts support single or multiple data sets, but the pie charts will only show a single pie with the first data set. The 3D styles are identical to the 2D styles except they show pie sections and bar elements with 3D shading. There are no perspective or rotation options in 3D.

An example demonstrating all the graph types is available.

See also

Button methods, properties and events. Graph methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. GroupBox methods, properties and events. HTML methods, properties and events. KCMLEdit methods, properties and events. Picture Button methods, properties and events. Static Text methods, properties and events.