Using the numeric editor

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

Using the numeric editor

Postby allan.zenth on Mon Dec 14, 2009 1:27 pm

In APLplus v10/v11 will use of ⎕edit/)edit with an numeric array give a spreadsheet-like editing af the array. In Dyalog v11 the User Guide only shows the possibility of calling the numeric editor using a mouse - and I want to do it under function control.

I did some experiments and ended with:

varname ⎕SE.NumEd.numed varname

I don't know why the varname should be both right and left argument - but it works.

It would be nice, if the numeric editor could be closed with a sort of a key-stroke, but I think that one or more functions had to be changed - but how?

Allan Zenth
allan.zenth
 
Posts: 1
Joined: Sat Nov 28, 2009 3:45 pm

Re: Using the numeric editor

Postby AndyS|Dyalog on Wed Dec 16, 2009 10:29 am

Strictly speaking varname ⎕SE.NumEd.numed 1 will do too .. the function numed is a the callback associated with the Numeric Editor icon in the toolbar.

I think that your best bet is to add callback associated with KeyPress on the Edit field for the Grid object, looking something like

Code: Select all
 msg←cbKP msg
 :Select (3⊃msg)
 :Case 'F1'
 ⍝ save the contents of the Grid
 :Case 'F2'
 ⍝ abort the edit
 :EndSelect


You may need to do some work to suppress the pop-ups that appear at the end of a NumEd session ..
User avatar
AndyS|Dyalog
 
Posts: 243
Joined: Tue May 12, 2009 6:06 pm


Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest