Denso Power Net Terminal BHT-7500 Specifikace Strana 198

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 197
189
filename is the name of an FN3 function. The extension of the file names is
fixed to .FN3. (For the FN3 functions, refer to Chapter 16, "Extended Functions"
or the "BHT-BASIC Extension Library Manual.")
functionnumber is the function number of an FN3 specified by "[drive-
name:]filename
".
data is a variable for the function number of the FN3 (that is, it is used as an
argument to the FN3 function).
When specifying an array to data, add a pair of parentheses containing nothing
as shown below.
Example:
CALL "_xxx.FN3" 1 DATA ()
When calling a function (specified by functionnumber) that returns a string
variable:
BHT-5000/BHT-6000/BHT-6500
Reserve a storage area for a returned string variable by using a variable declara-
tion statement (
DIM, COMMON, or DEFREG). (If the string length is omitted in the
variable declaration statement, the default in the statement will take effect.) And
assign arbitrary data of the string length required for a return value to the variable.
If the string length of a returned value is greater than the assigned string length, a
run-time error will result.
(Example 1) If a return value is a fixed-length string, e.g. 8-character length:
DIM OUTPUT$[8]
Reserves a storage area of 8 characters.
OUTPUT$=" "
Assigns 8 spaces.
(Example 2) If a return value is a variable-length string of a maximum of N char-
acters:
DIM OUTPUT$[N]
Reserves a storage area of a max. of N chars.
OUTPUT$=" ... "
Assigns N spaces.
OUTPUT$=""
or assign
FOR I%=1 TO N
a max. of N chars of spaces
OUTPUT$=OUTPUT$+""
to the variable by loop.
NEXT I%
BHT-7000/BHT-7500
Reserve a storage area for a returned string variable by using a variable declara-
tion statement (
DIM, COMMON, or DEFREG). (If the string length is omitted in the
variable declaration statement, the default in the statement will take effect.)
Unlike the BHT-5000/BHT-6000/BHT-6500, the BHT-7000/BHT-7500 does not
require to assign arbitrary data of the string length required for a return value to
the variable.
If the string length of a returned value is greater than the string length reserved by
a variable declaration statement, a run-time error will result.
(Example 1) If a return value is a fixed-length string, e.g. 8-character length:
DIM OUTPUT$[8]
Reserves a storage area of 8 characters.
(Example 2) If a return value is a variable-length string of a maximum of N char-
acters:
DIM OUTPUT$[N]
Reserves a storage area of a max. of N chars.
Zobrazit stránku 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 559 560

Komentáře k této Příručce

Žádné komentáře