Fixed length strings:
The Fixed length strings are declared by identifying the size of the string. For illustration to give a length of 20 for the string place, the declaration below would be used.
Dim place as String * 20
Private Sub Command1_KeyDown(KeyCode As Integer, Shift As Integer)
Dim m As String * 20
m$ = 'chennai is the capital city of tamilnadu'
When any key is pressed during the execution, a fixed length string m of size 20 is formed. The string "chennai is the capital of tamilnadu" is assigned to m. whenever you print the string m the output would be as "chennai is the capital". The 20 characters involving the space in between are only displayed.