VB6Runtime / Library / String / lset_statement

VB6 Library Reference

VB6 LSet statement syntax: - LSet stringvar = string - LSet varname1 = varname2 (for user-defined types) Left-aligns a string within a string variable, or copies a variable of one user-defined type to another variable of a different user-defined type. The LSet statement syntax has these parts:

Part Description
stringvar Required. Name of string variable.
string Required. String expression to be left-aligned within stringvar.
varname1 Required. Variable name of the user-defined type being copied to.
varname2 Required. Variable name of the user-defined type being copied from.

Remarks

Examples

LSet MyString = "Left"
LSet FixedString = userName
LSet myRecord = sourceRecord

Reference

LSet Statement - Microsoft Docs

← Back to String | View all statements