qb45advr.hlp (Topic list)
MID$ Statement Programming Example
  QuickSCREEN      Details     Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
MID$ Statement Programming Example
 
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