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?

ADDS

Description

The ADDS function creates a dynamic array of the element-by-element addition of two dynamic arrays. It takes the general form: 

ADDS(array1, array2)

Added to each element of array1 is the corresponding element of array2, which returns the result in the corresponding element of a new dynamic array. If an element of one array has no corresponding
element in the other array, it returns the existing element. If an element of one array is the null value, it returns null for the sum of the corresponding elements.

An example of use is as: 

A=2:@VM:4:@VM:6:@SM:10
B=1:@VM:2:@VM:3:@VM:4

PRINTADDS (A,B)


to output: 

3]6]9\10]4


Go back to jBASE BASIC.

Was this article helpful?