xref on temp & work tables

charger

New Member
Is it possible when compiling a program with the xref option to see the object identifiers worktable or temptable show up for the reference types search or sort-access. The Progress manual shows it on the compile statement, but I can't seem to produce it. Any help is appreciated, thanks.
 

Samj

Member
Do you mean this result?

SEARCH tt-order RECID TEMPTABLE
REFERENCE tt-order TEMPTABLE
ACCESS tt-order order-no TEMPTABLE

Compile progname.w xref progname.xref.
 

charger

New Member
Hi Sam, I think so. I created a temp-table with 3 database fields, added an index, then created just 2 records for a test, then peformed a find. When I compiled it with xref, and viewed the results, there was no reference on the search for the temp-table. I am using V9.1B. I don't know where the charger name came from, oh well, it's Dave Bucher in real life.
 

Samj

Member
Dave

Ok, then I think you might actually have to code a find or for each for the temp-table to have the xref display something.

I had to just compile with xref one of our application's programs to get the above results.
 

charger

New Member
ok, I looked for existing programs using temp-tables, and I can see them in the xref listing, still a little unclear why my little code example didn't produce the same results though, thanks Sam.
 

Gerard

New Member
Originally posted by charger
ok, I looked for existing programs using temp-tables, and I can see them in the xref listing, still a little unclear why my little code example didn't produce the same results though, thanks Sam.

I got the same question today and found out that you have to define the temp-table as NEW SHARED to get the SEARCH-tag in your xref listing.
I still haven't found the reason for this, hope someone else can tell me this...

Gerard van Wengerden
Software Architect
'CCS' Combined Computer Services B.V.
 
Top