ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous Windows functions
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
Returns the two low bytes of an integer.
Example
Res is int
Res = 0x000A001F
Trace(HiWord(Res)) // Display 10 (corresponds to 0x000A)
Trace(LoWord(Res)) // Display 31 (corresponds to 0x001F)
WINDEVReports and QueriesUser code (UMC)
Res is int = CursorPos(cpClient)
IF Res <> -1 THEN
Message("Position X = " + LoWord(Res) + "Position Y = " + HiWord(Res))
END
Syntax
<Result> = LoWord(<Value> [, <Size>])
<Result>: Unsigned 2-byte integer
The two low bytes.
<Value>: Integer
Value whose low bytes are sought.
If this value is a numeric other than an integer, this value is automatically converted into an integer.
An error will occur if this value is a character string.
<Size>: Optional integer
Size of the integer:
  • 1 for an integer on 1 byte,
  • 2 for an integer on 2 bytes,
  • 4 for an integer on 4 bytes.
WEBDEV - Browser codeAndroidAndroid Widget This parameter is not available.
Remarks
  • The & operator is used to find out the address of a variable.
  • LoWord can be used to retrieve the low bytes of an integer returned by API or CallDLL32.
  • HiWord is used to retrieve the two high bytes of an integer.
  • To build a 4-byte integer from a 2-byte integer, use MakeInteger.
Related Examples:
WD Magnifier Complete examples (WINDEV): WD Magnifier
[ + ] This example enables you to zoom part of the screen with a magnifier.
The maximum zoom value is set to 8.
Summary of the example supplied with WINDEV:
The WLanguge function named dCopyBlt() and the WLanguage property named ..Opacity allow you to perform a capture of the Windows desktop at the location of a window without this window appearing in the screen shot.
This example uses this tip to zoom the part of the screen found below the magnifier.
Business / UI classification: Neutral code
Component: wd290mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help