Mitsubishi QD51 Programming Manual page 313

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Replaces character string
20 A$="ABCDEFGHI"
30 B$="XYZ"
40 PRINT "Original Character String-------->";A$
50 MID$(A$,3,3)=B$
60 PRINT "Character string after replacement-->";A$
70 END
RUN
Original character string -------->ABCDEFGHI
Character string after replacement-->ABXYZFGHI
OK
11 - 143
REMARK
See the MID$ (Part 2) function and Section 3.13.
:
' Defines character string
:
' Defines character string to replace with
:
' Replaces
MELSEC-Q
11 - 143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents