The code samples fail in version 13.2

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

Moderators: Tech Support, phpbb_admin

The code samples fail in version 13.2

Postby Ajay Askoolum » September 12th, 2013, 3:43 pm

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
Ajay Askoolum
 
Posts: 884
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

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

Postby Tech Support » September 12th, 2013, 5:30 pm

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.
Tech Support
 
Posts: 1230
Joined: February 10th, 2007, 7:33 am
Location: Rockville, MD

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

Postby joe_blaze » September 13th, 2013, 1:38 am

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
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to APL+Win & The C# Script Engine

Who is online

Users browsing this forum: No registered users and 13 guests

cron