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?

INSERT

Description

INSERT is the function form of the INS statement, with preference given to the use of INS. It takes the general form: 

INSERT(expression1, expression2{, expression3 {, expression4 }}; expression5)

Where :

  • expression1 evaluates to a dynamic array in which to insert a new element and will normally be a variable.
  • expression2, expression3 and expression4 should evaluate to integer values and specify the attribute, multi-value and sub-value before which the new element will be inserted.
  • expression5 evaluates to the new element to be inserted in expression1.

An example of use is as:

A = INSERT(B, 1, 4; "Field1Value4")

Note that is unchanged and the modified expression1 is assigned to the variable A.


Go back to jBASE BASIC.


Was this article helpful?