Vtech PreComputer Power Pad Plus User Manual - Page 59
Print B, Abcdef, B$=mid$a$,2,3
View all Vtech PreComputer Power Pad Plus manuals
Add to My Manuals
Save this manual to your list of manuals |
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
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