A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



lstrlenW

The lstrlen function returns the length in bytes (ANSI version) or characters (Unicode version) of the specified string (not including the terminating null character).

VB4-32,5,6
Declare Function lstrlenW Lib "kernel32" (lpString As Any) As Long

VB.NET
System.String.Length

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Kernel32

Parameter Information
- lpString
Points to a null-terminated string.

Return Values
If the function succeeds, the return value specifies the length of the string in bytes (ANSI version) or characters (Unicode version).

Last update: 07 April 2006