Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

SUBS

Description

The SUBS function returns a dynamic array, the content of which is derived by subtracting each element of the second dynamic array argument from the corresponding element of the first dynamic array argument. It takes the general form:

SUBS(DynArr1, DynArr2)

Where:

DynArr1 and DynArr2 represent dynamic arrays.

Null elements of argument arrays are treated as zero. Otherwise, a non-numeric element in an argument array will cause a run-time error.

An example of use is as: 

X = 1 : @VM : @VM : 5 : @VM : 8 : @SVM : 27 : @VM : 4
Y = 1 : @VM : 5 : @VM : 8 : @VM : 70: @VM : 19

CRT SUBS(X, Y)

to display: 

0 : @VM : -5 : @VM : -3 : @VM : -62 : @SVM : 27 : @VM : -15

on the screen. 


Go back to jBASE BASIC.


Was this article helpful?