bas7ex.hlp (Topic list)
MID$ Statement Programming Example
                       Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
'This example uses the MID$ statement to replace string characters.
 
CLS                        'Clear screen.
Test$ = "Paris, France"
PRINT Test$
MID$(Test$, 8)="Texas "    'Starting at position 8, replace
                           'characters in Test$ with Texas.
PRINT Test$
 
'Sample Output
'
'Paris, France
'Paris, Texas