Syntax
Public Function CharArrayToString(ByVal Ary As Variant, Start As Integer, toIndex As Integer) As String
Description
This function is used to convert a part of an array of type char to string.
Parameters
Key | Description |
Ary | Array of charactersto be converted. Value of type is Variant. |
Start | Position to start from. Value of type is Integer. |
ToIndex | Position to end to. Value of type is Integer. |
Return value
Returns the concatenation char as value of type String.
Sample
Public Sub Main() Dim Arr (5) Arr (1) = 1 Arr (2) = 2 Dim STR STR =CharArrayToString (Arr, 0, 2) AlertMessage (STR) End Sub
See Also