Sharp OZ-707 Operation Manual - Page 64

Idata

Page 64 highlights

An error occurs if filename 1 is not given. If filename 2 already exists, it will be overwritten. The extension can be omitted if it is blank. Notes: 1. An error occurs if device d2 or the file with filename 2 is write-protected (see SET command). 2. The wildcard cannot be used for device name PACOM, CAS, or COM. EXAMPLE: Transfer file "TEST" as file "SAMPLE" using device name "PACOM". Before execution, prepare the RAM disk E on the receiver. Sender COPY "E:TEST" TO "PACOM: SAMPLE"' ENTm I Receiver COpy "PACOM: SAMPLE" TO "E: SAMPLE"IENTml File "TEST", which is stored in the sender's RAM disk E, is transferred to the receiver's RAM disk E in the Organizer's IC card, under the file named "SAMPLE". DATA p FORMAT: DATA list of values Abbreviation: DA. See Also: READ, RESTORE PURPOSE: Provides values for use by READ. REMARKS: When assigning initial values to an array, it is convenient to list the values in a DATA statement and use a READ statement in a FOR. ..NEXT loop to load the values into the array. When the first READ is executed, the first value in the first DATA statement is returned. Succeeding READs use succeeding values in the sequential order in which they appear in the program, regardless of how many values are listed in each DATA statement or how many DATA statements are used. A DATA statement may contain any numeric or string values, separated by commas. Enclose string values in quotes. Spaces at the beginning or end of a string should be included in the quotes. DATA statements have no effect if encountered in the course of regular execution of the program, so they can be inserted wherever appropriate. Many programmers include them after the READ that uses them . If desired, the values in a DATA statement can be read a second time using the RESTORE statement. 116 117

  • 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
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

An error occurs if filename 1
is
not given. If filename 2 already exists,
it will be overwritten.
The extension can be omitted
if
it
is
blank.
Notes:
1.
An error occurs if device d2 or the file with filename 2 is
write-protected (see SET command).
2.
The wildcard cannot
be
used for device name PACOM, CAS, or
COM.
EXAMPLE:
Transfer file "TEST" as file "SAMPLE" using device name "PACOM". Before
execution, prepare the RAM disk E
on
the receiver.
Sender
COPY "E:TEST" TO "PACOM: SAMPLE"'
ENTm
I
Receiver
COpy
"PACOM: SAMPLE" TO
"E
: SAMPLE"IENTml
File "TEST", which is stored in the sender's RAM disk
E,
is
transferred to the receiver's
RAM disk E in the Organizer's IC card, under the file named "SAMPLE".
116
DATA
FORMAT:
DATA list of values
Abbreviation:
DA.
See
Also:
READ, RESTORE
PURPOSE:
Provides values for use
by
READ.
REMARKS:
When assigning initial values to
an
array,
it
is
convenient
to
list the
values in a DATA statement and use a READ statement in a
FOR.
..NEXT loop to load the values into the array. When the first
READ is executed, the first value
in
the first DATA statement is
returned. Succeeding READs use succeeding values
in
the sequential
order
in
which they appear in the program, regardless of how many
values are listed
in
each DATA statement or how many DATA
statements are used.
A DATA statement may contain any numeric or string values,
separated by commas. Enclose string values in quotes. Spaces at the
beginning or end of a string should
be
included
in
the quotes.
p
DATA statements have
no
effect if encountered
in
the course of regular
execution of the program, so they can
be
inserted wherever
appropriate. Many programmers include them after the
READ
that uses
them. If desired, the values in a DATA statement can
be
read a
second time using the RESTORE statement.
117