UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Related Commands UniBasic DIM, INMAT, MAT, MATBUILD, MATPARSE, MATREAD, MATREADL, MATWRITE, MATWRITEU UniData DEFAULT.LOCKED.ACTION – For information, see the UniData Commands Reference. 1-458 UniBasic Commands Reference
MATWRITE Syntax MATWRITE dim.array {ON | TO file.var,} record.ID.expr [ON ERROR statements] Description The UniBasic MATWRITE command writes successive elements of a dimensioned array to the corresponding attributes of a record. If the dimensioned array size exceeds the number of attributes in the target record, the MATWRITE command does not write the trailing spaces. If the 0 element is not empty, the command writes the contents of the element after the final element in the record (as element N+1). Note: This command must be preceded by MATREADU or another locking command to prevent the type of inconsistency that results when multiple users access files at the same time. For more information, see Developing UniBasic Applications. Parameters The following table describes each parameter of the syntax. Parameter Description dim.array Specifies the dimensioned array from which to assign the values read to the successive attributes of the record record.ID.expr. You must name and dimension an array before you can use it in the MATWRITE statement. MATWRITE Parameters MATWRITE 1-459
- Page 448 and 449: LE Syntax expr1 LE expr2 Synonyms #
- Page 450 and 451: LEN Syntax LEN(str.expr) Descriptio
- Page 452 and 453: LENS Syntax LENS(dyn.array) Descrip
- Page 454 and 455: LISTUSER Syntax LISTUSER() Descript
- Page 456 and 457: LN Syntax LN(num.expr) Description
- Page 458 and 459: The following table describes the s
- Page 460 and 461: Parameters The following table desc
- Page 462 and 463: LOCATE in BASICTYPEs U, P, and M Th
- Page 464 and 465: However, in the following array, th
- Page 466 and 467: Parameters The following table desc
- Page 468 and 469: LOOP/REPEAT Syntax LOOP [statements
- Page 470 and 471: Examples The following example is t
- Page 472 and 473: LOWER Syntax LOWER(dyn.array.expr)
- Page 474 and 475: Related Command UniBasic LTS 1-434
- Page 476 and 477: MAT Syntax MAT dim.array = expr MAT
- Page 478 and 479: the values assigned to FEE1 would b
- Page 480 and 481: Parameter Description Examples In t
- Page 482 and 483: MATCH Syntax var MATCH "[~] len [X,
- Page 484 and 485: MATCHFIELD Syntax MATCHFIELD(str.ex
- Page 486 and 487: MATPARSE Syntax MATPARSE dim.array
- Page 488 and 489: The preceding program segment produ
- Page 490 and 491: Parameter Description INMAT Functio
- Page 492 and 493: MATREADL Syntax MATREADL dim.array
- Page 494 and 495: Example In the following example, t
- Page 496 and 497: Parameters The following table desc
- Page 500 and 501: Parameter Description STATUS Functi
- Page 502 and 503: MATWRITEU Syntax MATWRITEU dim.arra
- Page 504 and 505: MAXIMUM Syntax MAXIMUM(dyn.array.va
- Page 506 and 507: MDPERFORM Syntax MDPERFORM str.expr
- Page 508 and 509: Parameter Description Examples In t
- Page 510 and 511: MINIMUM Syntax MINIMUM(dyn.array.va
- Page 512 and 513: NE Syntax expr1 NE expr2 Synonyms #
- Page 514 and 515: NEG Syntax NEG(expr) Description Th
- Page 516 and 517: NFAUSER Syntax NFAUSER(“username
- Page 518 and 519: DCOUNT INDEX LEN SEQ SWAP 1-480
- Page 520 and 521: NOTS Syntax NOTS(dyn.array) Descrip
- Page 522 and 523: NUM Syntax NUM(expr) Description Th
- Page 524 and 525: NUMS Syntax NUMS(dyn.array) Descrip
- Page 526 and 527: OCONV Syntax OCONV(expr, conv.code.
- Page 528 and 529: OCONV Date (D) Syntax OCONV(integer
- Page 530 and 531: Note: Following SMA standards, Mond
- Page 532 and 533: Related Commands UniBasic DATE, ICO
- Page 534 and 535: Related Command UniBasic ICONV Grou
- Page 536 and 537: Related Command UniBasic ICONV Leng
- Page 538 and 539: Parameter Description Examples The
- Page 540 and 541: OCONV Masked Decimal (MD) Syntax OC
- Page 542 and 543: Examples The following table descri
- Page 544 and 545: Parameter Description [ [prefix], [
- Page 546 and 547: OCONV Packed Decimal (MP) Syntax OC
MATWRITE<br />
Syntax<br />
MATWRITE dim.array {ON | TO file.var,} record.ID.expr<br />
[ON ERROR statements]<br />
Description<br />
The <strong>UniBasic</strong> MATWRITE command writes successive elements of a dimensioned<br />
array to the corresponding attributes of a record.<br />
If the dimensioned array size exceeds the number of attributes in the target record,<br />
the MATWRITE command does not write the trailing spaces. If the 0 element is not<br />
empty, the command writes the contents of the element after the final element in the<br />
record (as element N+1).<br />
Note: This command must be preceded by MATREADU or another locking command<br />
to prevent the type of inconsistency that results when multiple users access files at the<br />
same time. For more information, see Developing <strong>UniBasic</strong> Applications.<br />
Parameters<br />
The following table describes each parameter of the syntax.<br />
Parameter Description<br />
dim.array Specifies the dimensioned array from which to assign the values<br />
read to the successive attributes of the record record.ID.expr.<br />
You must name and dimension an array before you can use it in<br />
the MATWRITE statement.<br />
MATWRITE Parameters<br />
MATWRITE 1-459