Wednesday, September 8, 2010

jBase Command ADDS

Use ADDS to create a dynamic array of the element-by-element addition of two dynamic arrays.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.

Command Syntax

ADDS (array1, array2)

Example

A=2:@VM:4:@VM:6:@SM:10
B=1:@VM:2:@VM:3:@VM:4
PRINT ADDS (A,B)
;*
;* The output of this program is:
;* 3]6]9\10]4
;*

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems