Page 1 of 1

The code samples fail in version 13.2

PostPosted: September 12th, 2013, 3:43 pm
by Ajay Askoolum
This is not good. the samples fail in version 13.2: you need to supply samples that work with v13.2.

Code: Select all
OBSOLETE INTERNAL WS REPRESENTATION UPDATED
PLEASE RESAVE WS
C:\AJAY\APLWINV13.2\CODE SAMPLES\CODE SAMPLES\WPFEXAMPLE SAVED 03 April 2013 04:06:36
      )fns
Run_WpfExample  myWin_CalcSqRootEvent
      ⎕sysver
13.2.01  Sep  3 2013 16:54:42  Win/32
      Run_WpfExample
CSE ERROR: An invalid argument was entered
Run_WpfExample[5] C ⎕cse 'Exec' 'using System;'
                    ^



And:

Code: Select all
OBSOLETE INTERNAL WS REPRESENTATION UPDATED
PLEASE RESAVE WS
C:\AJAY\APLWINV13.2\CODE SAMPLES\CODE SAMPLES\WINFORMCSE SAVED 04 April 2013 17:29:32
      )fns
Run_WinForm  bnCalcEH
Run_WinForm
CSE ERROR: An invalid argument was entered
Run_WinForm[3] C ⎕cse 'Exec' 'using System; using System.Windows.Forms; using System.Drawing;'
                 ^
⎕sysver
13.2.01  Sep  3 2013 16:54:42  Win/32

Re: C# Script Engine (CSE) in APL+Win Overview

PostPosted: September 12th, 2013, 5:30 pm
by Tech Support
You should be using the code samples provided with the release of APL+Win 13.2. Simply unzip the contents of the file CSE Code Samples.zip in the APLW+Win 13.2 installation folder.

Re: C# Script Engine (CSE) in APL+Win Overview

PostPosted: September 13th, 2013, 1:38 am
by joe_blaze
Hi Ajay,

As John indicated the current version of the CSE and its documentation are installed with APL+Win v13.2.

The current version of the CSE documentation indicates:
(a) The right argument to the CSE 'Exec' method must be a text array of rank 2. This is why you (correctly) received the 'invalid argument...' error message.
(b) There is an additional CSE 'ExecStmt' method which is designed for a text vector (rank 1).

The following APL+Win statements comply with these CSE syntax requirements:

C ⎕cse 'Exec' (⊃,⊂'using System;')
or
C ⎕cse 'ExecStmt' 'using System;'
or
C ⎕cse 'Exec' (⊃'using System;' 'using System.IO;' 'using System.Windows.Forms;')
or
C ⎕cse 'ExecStmt' 'using System;using System.IO;using System.Windows.Forms;'

Joe