Syntax
Public Function StringAdd(ByRef stringVar As Variant, subString As Variant) As String
Description
This function is used to add a substring to the end of a specificstring.
Parameters
Key | Description |
stringVar | Source stringthat want toconcatenation it with other string,value of type Variant |
subString | String that is added at the end of source string,value of type Variant. |
Return value
Returns the concatenation of both strings.
Sample
Public Sub main()Dim x,y x="hello " y="vertex" AlertMessage StringAdd(CSTR(x),CSTR(y)) ' The result of the Alert Message will be hello vertex End Sub
See Also