UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
LENS Syntax LENS(dyn.array) Description The UniBasic LENS function returns the length of the values within each element of a dynamic array. LENS supports multibyte languages. With null value handling on, the null value has a length of one byte. Example In the following example, the program segment creates a new array ARRAY1, which contains the length of each element of ARRAY: 1-412 UniBasic Commands Reference ARRAY = '1':@VM:'22':@VM:'333':@VM:'4444':@VM:'55555' ARRAY1 = LENS(ARRAY) ARRAY1 now contains 1}2}3}4}5. Related Commands UniBasic BYTELEN, CHARLEN, DISPLAYWIDTH, ISMB, LEN, MBLEN
LES Syntax LES(array1,array2) Description The UniBasic LES function compares each value in array1 to its corresponding value in array2. UniData returns an array with 1 in each position where the value in array1 is less than or equal to the value in the corresponding value in array2, and 0 in each position when the value in array1 is greater than that in array2. Example In the following example, the program segment compares ARRAY1 to ARRAY2 and returns ARRAY3. ARRAY3 then contains 1}1}1}0}0. ARRAY1 = 9:@VM:10:@VM:30:@VM:50:@VM:60 ARRAY2 = 10:@VM:20:@VM:30@VM:40:@VM:50 ARRAY3 = LES(ARRAY1,ARRAY2) LES 1-413
- Page 402 and 403: ICONV Text Extraction (T) Syntax IC
- Page 404 and 405: ICONV File Translation (Tfile) Synt
- Page 406 and 407: STATUS Function Return Values After
- Page 408 and 409: 1-369 UniBasic Commands Reference
- Page 410 and 411: INDEX Syntax INDEX(str.expr1,str.ex
- Page 412 and 413: INDICES Syntax INDICES(file.var[, i
- Page 414 and 415: initSecureServerSocket function Syn
- Page 416 and 417: initServerSocket Syntax initServerS
- Page 418 and 419: INMAT Syntax INMAT( ) INMAT(array.n
- Page 420 and 421: Related Commands UniBasic DIM, MAT,
- Page 422 and 423: Warning: Processing differs when yo
- Page 424 and 425: In the next example, the INPUT stat
- Page 426 and 427: Parameter Description 1-387 UniBasi
- Page 428 and 429: Related Commands UniBasic CLEARINPU
- Page 430 and 431: INPUTERR Syntax INPUTERR error.expr
- Page 432 and 433: INPUTIF Syntax INPUTIF var [THEN st
- Page 434 and 435: INPUTTRAP Syntax INPUTTRAP string.e
- Page 436 and 437: INS Syntax INS expr BEFORE dyn.arra
- Page 438 and 439: INSERT Syntax INSERT(dyn.array.expr
- Page 440 and 441: INT Syntax INT(num.expr) Descriptio
- Page 442 and 443: ISNV Syntax ISNV(expr) Description
- Page 444 and 445: ISNVS Syntax ISNVS(dynamic.array) D
- Page 446 and 447: ITYPE Syntax ITYPE(itype.expr) Desc
- Page 448 and 449: LE Syntax expr1 LE expr2 Synonyms #
- Page 450 and 451: LEN Syntax LEN(str.expr) Descriptio
- 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 498 and 499: Related Commands UniBasic DIM, INMA
- Page 500 and 501: Parameter Description STATUS Functi
LES<br />
Syntax<br />
LES(array1,array2)<br />
Description<br />
The <strong>UniBasic</strong> LES function compares each value in array1 to its corresponding<br />
value in array2. UniData returns an array with 1 in each position where the value in<br />
array1 is less than or equal to the value in the corresponding value in array2, and 0<br />
in each position when the value in array1 is greater than that in array2.<br />
Example<br />
In the following example, the program segment compares ARRAY1 to ARRAY2 and<br />
returns ARRAY3. ARRAY3 then contains 1}1}1}0}0.<br />
ARRAY1 = 9:@VM:10:@VM:30:@VM:50:@VM:60<br />
ARRAY2 = 10:@VM:20:@VM:30@VM:40:@VM:50<br />
ARRAY3 = LES(ARRAY1,ARRAY2)<br />
LES 1-413