Class Microsoft.VisualBasic.Strings Syntax Dim result As String = LSet(source, length) source (required; String) The string to be left-aligned length (required; Integer) The length of the returned string Description The LSet function left-aligns a string. Usage at a Glance If the length of source is greater than or equal to length, the function returns only the leftmost length characters. If the length of source is less than length, spaces are added to the right of the returned string so that its length becomes length. Version Differences In VB 6, LSet was implemented as a kind of assignment statement. Because it is implemented as a function in .NET, its syntax is completely different. In VB 6, LSet could be used only with fixed-length strings. In .NET, LSet works with all string data. See Also RSet Function |