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
[Jprogramming] Scripts Seem not to Store my Data
'Rodney Nicholson' via Programming Wed, 16 Dec 2015 13:27:51 -0800
- [Jprogramming] Scripts Seem not to Stor... 'Rodney Nicholson' via Programming
- Re: [Jprogramming] Scripts Seem no... 'Pascal Jasmin' via Programming
- Re: [Jprogramming] Scripts Seem no... Brian Schott
- Re: [Jprogramming] Scripts See... chris burke
- Re: [Jprogramming] Scripts... 'Rodney Nicholson' via Programming
- Re: [Jprogramming] Scr... John Baker
