Signature (Visual Basic / VBA)
Public Function StringAscToIntegerVector( _
ByRef rChars() As Integer _
, ByVal vString As Variant _
) As Boolean
Code Example
Assuming
Dim aintChars() As Integer
for example
StringAscToIntegerVector(aintChars(), "CCBA") = True
leaves
LBound(aintChars) = 0
UBound(aintChars) = 4
aintChars(0) = Empty
aintChars(1) = 67
aintChars(2) = 67
aintChars(3) = 66
aintChars(4) = 65
Parameters
| Parameter | Description |
|---|---|
| rChars | Dynamic one-dimensional array of integer values. Each element in the array will be assigned the ASCII value of the character at the corresponding position within string vString. |
| vString | String containing the characters that will each be assigned to one of the elements of the integer array. Function returns False and leaves rChars initialized with lower and upper bounds of 0 (zero) if vString is Null or cannot be fixed up to a String. Function returns True upon success. |