Signature (Visual Basic / VBA)
Public Function StringShiftRight( _
ByRef rValue As Variant _
) As Integer
Code Example
Assuming
Dim S As String
S = "ABC"
for example
StringShiftRight(S) = 67 = Asc("C")
leaves
S = "AB"
Parameters
| Parameter | Description |
|---|---|
| rValue | String whose characters are to be shifted right one position. Function returns -1 (the value of the AscEOF Property) if rValue is Null or cannot be fixed up to a String. Function also returns -1 if rValue is an empty string. |