|
|
|
|
|
- Font variable
- Number of characters
- Multiline Edit control
- Control with input mask
- Limitations
Size (Property) In french: Taille
The Size property is used to determine and change the size of an element. This property can be used to find out and modify: - the size (in picas) of a Font variable.
Note: the name of a font must correspond to one of the fonts installed on the current workstation.. The font size is set to 12 by default. - the maximum number of characters found in:
- a window control (edit control, table column or editable combo box)
- a page control (edit control)
- a Static Text control in a report.
Note: The maximum number of characters contained in a field is defined in the "General" tab of the field description.
- the maximum size of a text item (character string, text memo, character) defined in the data model editor or programmatically.
- the maximum size of a Time item defined in the data model editor or programmatically.
This property can also be used to find out: - the number of columns in a Table control.
AdresseLiv.Taille = 50
...
HeureLiv.Taille = 6
...
HDescribeFile(Client)
Syntax
Finding out the size of a Font variable, the maximum number of characters found in a control Hide the details
<Result> = <Element to handle>.Size
<Result>: Integer - Size (in picas) of the specified font.
- Maximum number of characters found in the specified control or 0 if the specified control has no limit.
- Number of table columns if the specified control is a table.
<Element to handle>: Optional Font variable or name of control - Name of the Font variable to be used.
- Name of the control to be used
Modifying the size of a Font variable, the maximum number of characters found in a control Hide the details
<Element to handle>.Size = <New size>
<Element to handle>: Optional Font variable or name of control - Name of the Font variable to be used.
- Name of the control to be used.
<New size>: Integer - New size (in picas) for the specified font.
- Maximum number of characters found in the specified control or 0 if the specified control has no limit.
Note: It is not possible to change the number of columns in a Table field..
Finding out the size of an item Hide the details
<Result> = <Data file>.<Item>.Size
<Result>: Integer - Maximum number of characters supported by the specified item,
- 0 for the memos.
<Data file>: Character string Name of the data file used. This name was defined in the data model editor or with the File Description type. <Item>: Character string Name of the item used. This name was defined in the data model editor or with the Item Description type.If this item is a text item, number of characters in the item. If this item is a time item, the number of characters is used to identify the item format: | | Number of characters in the Time item | Format of Time item |
---|
2 | HH | 4 | HHMM | 6 | HHMMSS | 8 | HHMMSSCC | 9 | HHMMSSCCC |
Remarks Number of characters If the maximum number of characters that was specified is less than the number of characters currently found in the control: - The content of the control is not modified on the screen.
- The value of the control includes all the characters displayed in the control.
Multiline Edit control If the maximum number of characters allowed in a multiline edit control is changed with the Size property, you will be able to assign a text containing more characters than the number that was defined. For example:
SAI_Adresse.Taille = 5
SAI_Adresse = "ABCDEFGHI"
Control with input mask The Size property must not be used to change the maximum number of characters in controls with an input mask. Indeed, the maximum number of characters found in the control depends on the input mask defined for this control. Limitations In HFSQL data files, the Size property applies only to text and time items. In a report, the Size property can only be used on Static Text controls.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|