UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
REMOVE Syntax REMOVE(dyn.array.var, delim.var) Description The UniBasic REMOVE function extracts an element from a dynamic array and assigns the removed element to a variable. REMOVE does not change the value of the dynamic array. REMOVE searches a dynamic array for system delimiters. When UniData finds a delimiter, it assigns the contents of the array element and the delimiter to the variable. UniData maintains a pointer to the last substring you remove so that successive REMOVE statements move progressively through a dynamic array. The REMOVE function performs the same action as the REMOVE command, but you cannot use it to specify a starting position. Tip: Use REMOVE to sequentially process the elements of a dynamic array. Parameters The following table describes each parameter of the syntax. Parameter Description 1-680 UniBasic Commands Reference dyn.array.var Specifies a dynamic array from which to remove elements. delim.var Specifies the delimiter code. When the end of the array is encountered, delim.var is set to 0. REMOVE Parameters
The variable delim.var is assigned a value based on the type of delimiter encountered. The following table describes the values of the delimiter codes. *ASCII value is language-dependent and can be reassigned. Related Commands UniBasic Delimiter Code Description ASCII Value* 0 array end 1 record mark 255 2 attribute mark 254 3 value mark 253 4 subvalue mark 252 5 text mark 251 6 nonprinting; not used 250 7 nonprinting; not used 249 REMOVE Delimiter Codes DEL, EXTRACT, INSERT, REMOVE, REPLACE, SUBSTRINGS REMOVE 1-681
- Page 672 and 673: Parameter Description Examples In t
- Page 674 and 675: READNEXTTUPLE Syntax READNEXTTUPLE
- Page 676 and 677: Example In the following example, t
- Page 678 and 679: READSEQ Syntax READSEQ var FROM seq
- Page 680 and 681: eadSocket Syntax readSocket(socket_
- Page 682 and 683: READT Syntax READT [UNIT (mu.expr)]
- Page 684 and 685: Example In the following example, t
- Page 686 and 687: Parameters The following table desc
- Page 688 and 689: Related Commands UniBasic CLOSE, DE
- Page 690 and 691: Parameter Description Examples In t
- Page 692 and 693: READVL Syntax READVL var FROM [file
- Page 694 and 695: Example In the following example, R
- Page 696 and 697: Parameters The following table desc
- Page 698 and 699: READXBCK Syntax READXBCK dyn.array.
- Page 700 and 701: READXFWD Syntax READXFWD dyn.array.
- Page 702 and 703: ReadXMLData Syntax ReadXMLData(xml_
- Page 704 and 705: RECORDLOCKED Syntax RECORDLOCKED (f
- Page 706 and 707: STATUS Function Return Values After
- Page 708 and 709: Parameter Description Examples In t
- Page 710 and 711: RECORDLOCKU Syntax RECORDLOCKU [fil
- Page 712 and 713: RELEASE Syntax RELEASE [file.var [,
- Page 714 and 715: ReleaseXML Syntax ReleaseXML(XMLhan
- Page 716 and 717: Example In the following example, c
- Page 718 and 719: Parameter Description The SETTING c
- Page 720 and 721: In some implementations, the values
- Page 724 and 725: REPLACE Syntax REPLACE(dyn.array.ex
- Page 726 and 727: In the next example, the program se
- Page 728 and 729: RESIZET Syntax RESIZET [UNIT(mu.exp
- Page 730 and 731: RETURN Syntax RETURN [TO label[:]]
- Page 732 and 733: Examples In the following example,
- Page 734 and 735: Example In the following example, t
- Page 736 and 737: RNDSEED Syntax RNDSEED expr Descrip
- Page 738 and 739: SADD Syntax SADD(x, y) Description
- Page 740 and 741: The following table describes the s
- Page 742 and 743: Example In the following example, t
- Page 744 and 745: SELECT Syntax SELECT file.var [TO {
- Page 746 and 747: Examples The following program segm
- Page 748 and 749: SELECTINDEX Syntax SELECTINDEX inde
- Page 750 and 751: Related Commands UniBasic DELETELIS
- Page 752 and 753: Related Commands UniBasic DELETELIS
- Page 754 and 755: Note: SEND with the X option suppre
- Page 756 and 757: SEQS Syntax SEQS("char.expr") Descr
- Page 758 and 759: The following table describes the s
- Page 760 and 761: Parameters The following table desc
- Page 762 and 763: The following table describes the s
- Page 764 and 765: setHTTPDefault Syntax setHTTPDefaul
- Page 766 and 767: The following table describes the s
- Page 768 and 769: Parameters The following table desc
- Page 770 and 771: Examples In the following example,
The variable delim.var is assigned a value based on the type of delimiter encountered.<br />
The following table describes the values of the delimiter codes.<br />
*ASCII value is language-dependent and can be reassigned.<br />
Related <strong>Commands</strong><br />
<strong>UniBasic</strong><br />
Delimiter<br />
Code Description ASCII Value*<br />
0 array end<br />
1 record mark 255<br />
2 attribute mark 254<br />
3 value mark 253<br />
4 subvalue mark 252<br />
5 text mark 251<br />
6 nonprinting; not used 250<br />
7 nonprinting; not used 249<br />
REMOVE Delimiter Codes<br />
DEL, EXTRACT, INSERT, REMOVE, REPLACE, SUBSTRINGS<br />
REMOVE 1-681