ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE


  • String type and Unicode string
  • System integer
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Identifies the type of an expression, a variable (during a call to a procedure for example) or a control.
Example
PROCÉDURE MyProcedure(Parameter)
TypeVar(Parameter)
Syntax
<Result> = TypeVar(<Expression>)
<Result>: Integer
Identifies the type of variable or control value.
0 for the controls that return no value (button, OLE control, ...).
wlAutomation32Automation object
wlBoolean1Boolean
wlBuffer
(wlBinaryString)
28Buffer
wlCharacter81Character
wlString
  • 19
  • 16 (value possible from version 17)
Character string
Caution: the wlString constant can correspond to an Ansi string or to a Unicode string according to the project configuration:
  • in a project compatible with version 16, this constant is set to 19,
  • in a Unicode project, this constant is set to 16.
wlAnsiString19Character string
wlASCIIZString23ASCIIZ string
wlFixedString22Fixed string
wlPascalString21Pascal string
wlUnicodeString16Unicode string
wlControl138Control
wlOLEControl33OLE control
wlCombination136Combination
wlConnection70Connection
wlDate24Date
wlDateTime26DateTime
wlFileDescription53Description of HFSQL file
wlLinkDescription55Description of HFSQL link
wlItemDescription54Description of HFSQL item
wlDuration27Duration
wlEnumeration135Enumeration
New in version 28
wlProjectElement
38Parameter corresponding to a project element (only used when a parameter is defined using the Type property of a variable of type Definition).
wlInt8Signed 4-byte integer
wlInt_16Signed 1-byte integer
wlInt_27Signed 2-byte integer
wlInt_89Signed 8-byte integer
wlUnsignedInt_12Unsigned 1-byte integer
wlUnsignedInt_23Unsigned 2-byte integer
wlUnsignedInt_44Unsigned 4-byte integer
wlUnsignedInt_85Unsigned 8-byte integer
wlDataFile47Parameter corresponding to a data file (only used when a parameter is defined using the Type property of a variable of type Definition).
wlQueue515Queue
wlHandle15Window handle
wlTime25Time
wlInstance37Class instance (object)
wlList513List
wlBinaryMemo30Binary memo
wlCurrency10Currency
wlSecurePassword160SecurePassword
New in version 28
wlUntyped
50Parameter corresponding to an untyped element (only used when a parameter is defined using the Type property of a variable of type Definition).
wlNumeric13Numeric
wlDotNetObject72.NET object
New in version 28
wlDataSourceObject
157Data source (only used when a parameter is defined using the Type property of a variable of type Definition).
wlStack514Stack
wlPoint150Point
wlFont65Font
wlProcedure61Procedure
wlRectangle151Rectangle
wlReal128-byte real
wlReal_4114-byte real
wlSQLQuery152SQL query
wlDataSource20Data source
wlStructure36Structure
wlArray34Array
wlAssociativeArray62Associative array
wlAdvancedType111Advanced type (JSON, YAML, etc.)
wlUUID154UUID
wlUUID_128154UUID
wlUUID_256155UUID
wlComposedVariable35Composite variable
wlVariant31Variant
<Expression>: Character string
Name of WLanguage variable or control whose type is requested.
Remarks

String type and Unicode string

In Mobile, a Unicode string is considered as being a string:
MyString is UNICODE string
TypeVar(MyString) // returns wlString
In WINDEV or WEBDEV, a Unicode string is considered as being a Unicode string:
MyString is UNICODE string
TypeVar(MyString) // returns wlUnicodeString

System integer

  • The system integer automatically adapts to the size supported by the compilation mode (4 bytes for a program compiled in 32-bit mode, 8 bytes for a program compiled in 64-bit mode).
  • For applications compiled in 32-bit mode, TypeVar returns 8 (wlInt).
  • For applications compiled in 64-bit mode, TypeVar returns 9 (wlInt_8).
Component: wd280vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment