UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
The following table describes the status of each return code. Return Code Status 0 Success. 1-418 UniBasic Commands Reference 1 Context record does not exist. 2 Context record could not be accessed (e.g. wrong password). 3 Invalid content (file was not saved by the saveSecurityContext() function). 4 Other problems that caused context load failure. Refer to the log file for more information. loadSecurityContext Return Codes
LOCATE Syntax LOCATE element IN dyn.array[,var] [BY search.type] SETTING location [THEN statements END] ELSE statements END For backward compatibility, UniData supports the following alternate syntax: LOCATE(element,dyn.array [,attrib.expr[,val.expr[,subval.expr]]];location [;search.type]) [THEN statements] [END] ELSE statements Description The UniBasic LOCATE command locates an element within a dynamic array. For LOCATE to be successful, the search string, element, must match the entire array element (including any associated lower-level elements). LOCATE does not modify the data in the array. Note: UDT.OPTIONS 85 changes the sort order for an array of mixed negative and positive numbers. With UDT.OPTIONS 85 on, negative and positive numbers are sorted in numeric order regardless of sign. This is effective for the first form of the syntax only. LOCATE 1-419
- 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 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 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
- 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
The following table describes the status of each return code.<br />
Return<br />
Code Status<br />
0 Success.<br />
1-418 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
1 Context record does not exist.<br />
2 Context record could not be accessed (e.g. wrong password).<br />
3 Invalid content (file was not saved by the saveSecurityContext()<br />
function).<br />
4 Other problems that caused context load failure. Refer to the log file for<br />
more information.<br />
loadSecurityContext Return Codes