PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Font variable
  • Number of characters
  • Multiline edit control
  • Control with input mask
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Size is used to find out and modify 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 font name must correspond to one of the fonts installed on the current computer. 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)
    • an Item control of a report.
      Note: The maximum number of characters found in a control is defined in the "General" tab of control description.
      a Static control in a report.
      Note: The maximum number of characters found in a control is defined in the "General" tab of control description.
  • the maximum size of a text item (character string, text memo, character) defined in the data model editor or by programming.
  • the maximum size of a Time item defined in the data model editor or by programming.
This property can also be used to find out:
  • the number of columns in a Table control.
  • Versions 16 and later
    WEBDEV - Server code the maximum number of characters in a Captcha control.
    New in version 16
    WEBDEV - Server code the maximum number of characters in a Captcha control.
    WEBDEV - Server code the maximum number of characters in a Captcha control.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Versions 20 and later
Android This property is now available for the table columns in the Android applications.
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
New in version 20
Android This property is now available for the table columns in the Android applications.
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
Android This property is now available for the table columns in the Android applications.
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 22 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Font variables.
New in version 22
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Font variables.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode for the Font variables.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
// 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 file description
HDescribeFile(Customer)
// Modify the maximum number of characters found in the "EDT_Name" control
EDT_Name..Size = 25
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)
// Define the characteristics of a Font variable
Font1 is Font
Font1..Name = "Arial"
Font1..Size = 14
Font1..Orientation = 45
// Apply the font to "MyControl"
MyControl..Font = Font1
Syntax

Finding out the size of a Font variable, the maximum number of characters found in a control Hide the details

<Result> = <Element name>..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 name>: Character string (with or without quotes)
  • Name of 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 name>..Size = <New size>
<Element name>: Character string (with or without quotes)
  • Name of 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.
Note: The number of columns found in a Table control cannot be modified.

Finding out the size of an item Hide the details

<Result> = <File name>.<Item name>..Size
<Result>: Integer
  • Maximum number of characters supported by the specified item,
  • 0 for the memos.
<File name>: 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 name>: 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 itemFormat of Time item
2HH
4HHMM
6HHMMSS
8HHMMSSCC
9HHMMSSCCC
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

Defining the size (number of characters) of an item described by programming Hide the details

<Item name>..Size = <Number of characters>
<Item name>: Character string (with or without quotes)
Name of item used. This name was defined 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 itemFormat of Time item
2HH
4HHMM
6HHMMSS
8HHMMSSCC
9HHMMSSCCC
<Number of characters>: Integer
New maximum number of characters supported by the specified item.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:

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.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App In a report, ..Size can only be used on an Item control.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App In a report, ..Size can only be used on a Static control.
WINDEVWINDEV Mobile In a window, ..Size only applies to the:
  • edit controls,
  • tables (in read-only),
  • table columns,
  • editable combo boxes.
WEBDEV - Server code In a page, ..Size only applies in read-only to the:
  • edit controls,
  • tables.
Java ..Size only applies to the following elements:
  • Edit control.
  • Combo box.
  • Table.
  • Table column.
Android ..Size is available for the table columns but it is not available for a Table control.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment