Vtech PreComputer Power Pad Plus User Manual - Page 59

Print B, Abcdef, B$=mid$a$,2,3

Page 59 highlights

Example: 10 A$="ABCDE" 20 B$=LEFT$ (A$+"FGH",6) 30 PRINT B$ RUN ABCDEF RIGHT$ (A$,N) This will return a substring but starting from the Nth character from the end and running to the last one - the right-most character in the string A$. Example: 10 A$="WHY" 20 B$=RIGHT$(A$+"ME",4) 30 PRINT B$ RUN HYME MID$ (A$,M,N) This function returns a substring of the string A$ starting from the Mth character with a length of N characters. Example: 10 A$="ABCDEFGH" 20 B$=MID$(A$,2,3) 30 PRINT B$ RUN BCD 55

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

55
Example:
10
A$=“ABCDE”
20
B$=LEFT$ (A$+“FGH”,6)
30
PRINT B$
RUN
ABCDEF
RIGHT$ (A$,N)
This will return a substring but starting from the Nth character from the end and running
to the last one - the right-most character in the string A$.
Example:
10
A$=“WHY”
20
B$=RIGHT$(A$+“ME”,4)
30
PRINT B$
RUN
HYME
MID$ (A$,M,N)
This function returns a substring of the string A$ starting from the Mth character with a
length of N characters.
Example:
10
A$=“ABCDEFGH”
20
B$=MID$(A$,2,3)
30
PRINT B$
RUN
BCD