
Upgrading Visual Basic Applications to .NET • Chapter 14 667
■
It can pad a string with spaces to make it a specified length.The
PadRight method of the string class can be used to achieve this
functionality.
VarPtr
VarPtr is used to acquire the address of a variable or array element. It takes the
variable name or an array element as the parameter and returns the address. Since
Visual Basic .NET does not support this function, the upgrade tool does not
upgrade this statement and therefore marks it with an upgrade error.
StrPtr
Strings in Visual Basic are stored as BSTRs. If you pass a string variable to the
VarPtr function, you will get the address of the ...