On Mon, December 21, 2009 11:24 am, Raul Miller wrote:
> On Mon, Dec 21, 2009 at 2:07 PM, Bill Harris
> <[email protected]> wrote:
>> Is there something I should be doing / looking for to make this work?
>
> Do you have a newline after the last parenthesis in that file?
Yep. I checked; the last verb ends in a single ) followed by a newline
and then another newline and then the run command. I tried adding an
extra newline after the run, to no avail.
> (I do not use the project manager enough to know if this would
> be an issue, but its the first thing that comes to mind.)
>
> Alternatively, have you looked at this definition in the
> generated script to see if you see anything unusual?
I had looked some, and I looked more after your note. AFAIK,
load'script.ijs' executes script.ijs, correct? I executed a clear'', and
then I loaded the output file from PM.
Then I looked to see what words were defined using a rough binary search
of the lines of the file.
About a third of the way into the file, I encountered
fread=: (1!:1 :: _1:) @ fboxname
fdir=: 1!:0...@fboxname
freadx=: (1!:11 :: _1:)@(fboxn...@{., }.)`(1!:11)@.(0: = L.)
fwritex=: ([ (1!:12) (fboxn...@{., }.)@])`(1!:12)@.((0: = L.)@])
fopen=: (1!:21 :: _1:) @ (fboxname &>) @ boxopen
fclose=: (1!:22 :: _1:) @ (fboxname &>) @ boxopen
fwrite=: [ (1!:2) fboxn...@]
fappend=: [ (1!:3) fboxn...@]
fexist=: (1:@(1!:4) :: 0:) @ (fboxname &>) @ boxopen
ferase=: (1!:55 :: _1:) @ (fboxname &>) @ boxopen
maxpp=: 15 [ 16
coclass 'oleheaderinfo'
coinsert 'olepps'
create=: 3 : 0
smallsize=: 16b1000
ppssize=: 16b80
bigblocksize=: 16b200
smallblocksize=: 16b0040
bdbcount=: 0
rootstart=: 0
sbdstart=: 0
sbdcount=: 0
extrabbdstart=: 0
extrabbdcount=: 0
bbdinfo=: 0 2$''
sbstart=: 0
sbsize=: 0
data=: ''
fileh=: ''
ppsfile=: ''
)
ferase was defined, but I get value errors on all the subsequent lines I
tried (maxpp and beyond). When I look at that in hexl-mode (Emacs), I see
0000b780: 3a20 5f31 3a29 2040 2028 6662 6f78 6e61 : _1:) @ (fboxna
0000b790: 6d65 2026 3e29 2040 2062 6f78 6f70 656e me &>) @ boxopen
0000b7a0: 0d0a 6d61 7870 703d 3a20 3135 205b 2031 ..maxpp=: 15 [ 1
0000b7b0: 3620 2020 0d0a 636f 636c 6173 7320 276f 6 ..coclass 'o
0000b7c0: 6c65 6865 6164 6572 696e 666f 270d 0a63 leheaderinfo'..c
0000b7d0: 6f69 6e73 6572 7420 276f 6c65 7070 7327 oinsert 'olepps'
If there's anything different there, it's the presence of the extra 20s
(spaces) at the end of the maxpp line, but getting rid of them didn't help
matters (nor did I expect it to).
If I enter ciDSM_run'' in the ijx window, then the application I wrote
launches and seems to work, although maxpp (among other things) still
isn't defined.
FWIW, I've loaded csv, dates, files, format, and strings in the Library
tab of PM and ~addons\data\sqlite\sqlite, ~addons\tables\csv\csv,
~addons\tables\dsv\dsv, ~addons\tables\tara\tara, ~system\main\dll(r),
~system\main\libpath(r), and c:\program
files\j602\addons\data\sqlite\def(r) in the Source tab.
Ideas?
Bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm