D.6.0- Unsupported String functions, statements and constructs
Created
by Brendan Doss.
|
| << D.5.1- String Functions and Statements | AppendixD | D.7.0- String constants >> |
Unsupported String functions,statements and constructs
The following VB/VBA stringfunctions/statements and constructs are not supported in VBScript:
| Function | Alternative |
| Format | |
| LSet | Dim strTest ' strTest is now 5 chars wide
In both cases strTest will hold the value "<-Tes", because the original |
| Mid (statement) | Dim strText strText = "This is the text I want to replace a substring in" strText = Replace(strText, strFind, strSubstitute)
|
|
| Dim strText strText = "This is the text I want to replace a substring in" strText = Left$(strText, 19) & strSubstitute & Mid$(strText, _
strText now holds This is the text I have replaced a substring in
|
| RSet | Dim strTest ' strTest is now 5 chars wide
|
| StrConv | Very unlikely that this will be needed as all variables are Variant and this will be done implicitly. |
Fixed length strings (Dim strMessage As String * 50) are not supported.
| << D.5.1- String Functions and Statements | AppendixD | D.7.0- String constants >> |

RSS
