External Javascript Scripts


I'd like to use Sheet-JS js-xls to parse an Excel spreadsheet to JSON.

Can you please tell me how I can utilize 3rd party scripts?



There is no general rule as there are thousands and thousands of scripts and many different ways to structure the code and to make functionality accessible.
Most typically we get started here using such JavaScript code from an ASM block. In a block in Pascal code:
  // add JavaScript code here

you can use plain JavaScript. This JavaScript can access Pascal variable and you can add this ASM block in a Pascal method that you can call from other Pascal code.
Then it will depend on the library at what kind of code level further integration is done.

Great, thanks.