DataBasic Reference > Statements and Intrinsic Functions > S > SUBS Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

SUBS Function (DataBasic) (m618703+subs_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

SUBS Function

Subtracts the elements in one dynamic array from those in another.

Syntax

SUBS(dynArray1, dynArray2)

Syntax Elements

dynArray1, dynArray2
DataBasic expressions that evaluate to dynamic arrays.

Return Value

A dynamic array formed by combining dynArray1 and dynArray2. Each element contains the result of subtracting the element in dynArray1 from the corresponding element in dynArray2.

Notes

Example

ARY1 = 5:@AM:27
ARY2 = 2:@AM:3:@AM:64
NEWARY = SUBS(ARY1, ARY2)

Sets NEWARY to "3AM24AM-64". Because there are only two elements in ARY, the third element (64) in ARY2 is subtracted from 0.

RealityV15.1 (MoTW) Revision 7Comment on this topic