Passing array arguments

General discussions related to using the C# Script Engine in APL+Win.

Moderators: Tech Support, phpbb_admin

Passing array arguments

Postby Ajay Askoolum » July 13th, 2020, 2:25 pm

Consider the following two statements
Code: Select all
      ←⎕cse 'ExecStmt' 'double[] abc = new double[]{12.3344,55.34343};' ⋄ ⎕cse 'GetValue' '((System.Data.SqlTypes.SqlString)sp.CreatePoint(abc).STAsText()).ToString()'
POINT (55.34343 12.3344)
I'd like to remove the first statement and pass the argument directly from APL (I seem to have some sort of mental block with this - nothing I've tried works!). So, the line will be something like
Code: Select all
⎕cse 'GetValue' '((System.Data.SqlTypes.SqlString)sp.CreatePoint({0}).STAsText()).ToString()' ?whatgoeshere
Ajay Askoolum
Posts: 891
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Return to APL+Win & The C# Script Engine

Who is online

Users browsing this forum: No registered users and 1 guest