Hi Martin
It's hard to tell exactly what's going on without seeing your program and
the files you are trying to read, but my guess is that on line 2 (Ox
counting, line 1) of your input file the last column of data is before
column 34 (Ox counting, column 33).
When you use OxCtb to read a csv file, it creates an array of arrays, say
aaX. The first array aaX[0] is an array of items in the first row of the
file. If there are, say, 3 columns of data on that row, then aaX[0] will
be an array of length 3. The second array, aaX[1] is an array of items in
the second row of the file. If there are, say, 10 columns of data on that
row, then aaX[1] will be an array of length 10.
In other words, it looks like you are treating your array "file" as if it
were rectangular (as if every row has the same number of elements), but it
isn't.
Anyway, if this doesn't answer your question, feel free to send me your
program and input files and I'll take a look (we probably don't need to
keep up this correspondence with the whole of the Ox users mailing list!).
Regards
Richard Lewney
Cambridge Econometrics
From: Martin Schletter <[log in to unmask]>
To: [log in to unmask]
Date: 10/04/2008 18:56
Subject: <kein Betreff>
Hi,
its the first time i using ox. and i have to congratulete you for this!
Its a nice program that can help analisysing tables!
now to my problem:
I have two exel tables and want to sort them.
i made them via access to csv - files, and used
the OxCtb-Package to read them.
This worked.
when I put the command
print (file[][]);
its fine and it shows everything untill the cell
[29][41], it means he has red the file correctly.
But when i ask for a specific cell eg [1][34]
print (file[][34]);
it says
untime error: '[34] in array[33]' index out of range
Runtime error occurred in main(190), call trace:
C:\Unijob\Ox Lg\new04.ox (190): main
So that I think there are parts missing,
but only in this way to ask.
Why cant it give the informations about every cell
and only from the first 33 columns, when i ask directly
and otherwise it cans?
My english is not the best, so i hope you
understanded me and can halp.
Thanks
Martin Schletter
_______________________________________________________________
Schon gehört? Der neue WEB.DE MultiMessenger kann`s mit allen:
http://www.produkte.web.de/messenger/?did=3016
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
|