fieldindex('rapport,'Category1') yields value 1
fieldindex('rapport,'Category2') yields value 2
fieldindex('rapport,'Category3') yields value 3
Table1 only has the 2 fields that I described, filename and category
Please note that I loaded category as right(filename, 6), since the last bit of the filename describes to which category it belongs.
When I load table1 and create a table object, I see no duplicate values. Just the 3 file names and their respective categories.
vReport1=peek('file'0,'table1) also yields filename3. No matter which number I use as a row number in the peek function, it returns the same filename. Even when I use 10, even though there are only supposed to be 3 rows in my table.