An example of a declaration for a fixed length string : String « Data Type « VBA / Excel / Access / Word






An example of a declaration for a fixed length string

 
Sub Fixed()
    Dim myString As String * 8
    Dim myNum As Integer
    myString = "ABCDEFGHIJKL"
End Sub

 








Related examples in the same category

1.String data types are used to hold a sequence of characters in a variable.
2.String variable
3.To initialize a string variable, place the string value within double quotes.
4.Concatenate strings
5.String Concatenation with &