- Font variable
- Number of characters
- Multiline edit control
- Control with input mask
- Limits
Size (Property) In french: Taille
// Define the maximum number of characters found in the "DelivAddress" item DelivAddress..Size = 50 ... // Define the maximum number of characters found in the "DelivTime" item DelivTime..Size = 6 // HHMMSS format ... // Validate the data file description HDescribeFile(Customer)
// Modify the maximum number of characters found in the "EDT_Name" control EDT_Name..Size = 25
Syntax
Finding out the size of a Font variable, the maximum number of characters found in a control Hide the details
<Result> = <Element to use>..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 use>: Optional Font variable or name of control - Name of the Font variable to use.
- Name of control to use
Modifying the size of a Font variable, the maximum number of characters found in a control Hide the details
<Element to use>..Size = <New size>
<Element to use>: Optional Font variable or name of control - Name of the Font variable to use.
- Name of control to use.
<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.
Remark: The number of columns found in a Table control cannot be modified.
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 (with or without quotes) Name of data file used. This name was defined in the data model editor or by the File description type. <Item>: Character string (with or without quotes) Name of item used. This name was defined in the data model editor or by 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 modified by ..Size, you will be able to assign by programming a text containing a number of characters greater than the maximum number specified by ..Size. For example:
// "EDT_Address" is a multiline edit control EDT_Address..Size = 5 EDT_Address = "ABCDEFGHI" // "EDT_Address" contains "ABCDEFGHI"
Control with input mask ..Size must not be used to modify the maximum number of characters found in the controls that include an input mask. Indeed, the maximum number of characters found in the control depends on the input mask defined for this control. Limits In an HFSQL data file, ..Size only applies to the text items and to the time items.
This page is also available for…
|
|
|