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?



The EXTRACT function is an alternative method of accessing values in a dynamic array other than using the <n,n,n> syntax. It takes the general form:

EXTRACT(expression1, expression2 {, expression3 {, expression4}})


  • expression1 specifies the dynamic array to work with and will normally be a previously assigned variable, 
  • expression2 specifies the field to extract, 
  • expression3 the value to extract and ,
  • expression4 the subvalue to extract.


expressions 2 through 4 should all return a numeric value or a runtime error will occur and the program will enter the debugger.

An example of use is as:

  A = "0"; A<2> = "1"; A<3> = "2"

to display the value "1".

Go back to jBASE BASIC.

Was this article helpful?