appologies if this is unhelpful or if I misunderstood,

after opening your script file in jqt editor, pressing ctrl-l (or Run | load 
(script)) should bring all your definitions into the terminal.

you can type TESTarray in terminal to get its current value.




----- Original Message -----
From: 'Rodney Nicholson' via Programming <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wednesday, December 16, 2015 4:27 PM
Subject: [Jprogramming] Scripts Seem not to Store my Data

Hi folks:  
I do not know what I am doing wrong (while I have moderately extensive 
experience with APL, I am very new to J) but it seems that my script windows do 
not preserve the values of my variables when I quit and come back next day.  
Since it will take several hours to assemble some of my larger variables - data 
entered by hand into two-dimensional numerical arrays - I don't want to lose 
them and have to repeat it.  
  
Perhaps if I explain what I have been doing, and provide a concrete example, 
someone will be able to explain to me what I SHOULD be doing! 
  
I open up a fresh jqt window from my desktop shortcut.  In the blank Term page 
that appears I go to FILE / RECENT and open the most recent script.  At the 
bottom of the script I type the following (without the quotation marks):  
'TESTarray=: 1+i.10 12' and hit ctrl-enter, and the array appears in the Term 
window as expected.  
Then I modify TESTarray in the script window by typing: 
  
'TESTarray=.(1973+i.10) (<a:;3)}TESTarray', hit ctrl-enter and it also appears 
in the Term window as expected.  
Then I type 'TESTarray' in the script window, hit ctrl-enter and the array 
appears in the Term window.
  
Then I do FILE / QUIT.  When I come back, I log into jqt again, and open the 
same script.  The script still shows the entries I had earlier successfully 
transmitted to Term.    
But this time when I type 'TESTarray' in the script window and hit ctrl-enter, 
the following message appears in the Term window:  
    TESTarray|value error: TESTarray     
When I then type '[TESTarray' in the script window and hit ctrl-enter, the Term 
page comes back with:  
    [TESTarray[  TESTarray   
Soit seems the values of the variables I set up in the script window are not 
remembered by the script or, if remembered, are not being sent by the script to 
the Term window.  
I assume the above details will make my error obvious?  
Please bear in mind that my programming experience is confined to several years 
of APL where I used it for economic modelling applications.  I am an economist, 
not a computer geek, by profession.  So I am not literate in most other aspects 
of computing.  
  
Assistance with this will be much appreciated.  TIA.
  
Rodney.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to