Dennis

Two more ways to do this:

1/ you can use BASIC but it's a slight pig..
The SelectIndex statement selects keys from an index. But it generates a
select list, so you need to be careful about segregating these e.g. if
calling from a SUBR() in an Idescriptor.

2/ a way I'm clearly not recommending but that happens to work rather well
:)
The index is actually just a type 25 file with simple inverted records (key
= indexed values, fields = key of records under the index). If you can find
which of the index.nnn files in the I_filename directory is that index
(should match the order they appear in the LIST.INDEX statement), you can
just create a file pointer to it. Or, if you want to be safer, use an
OpenPath in BASIC and hold the pointer in named common...

Brian

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Dennis Bartlett
> Sent: 14 March 2008 10:04
> To: u2-users@listserver.u2ug.org
> Subject: [U2] Indexes
> 
> My dumb question for the day (just cant remember how to... 
> and the manual's example is too simplistic...)
> 
> How do I programmatically get an index value out, eg I have a 
> STOCK file, and a REPAIRS file. Whoever designed this needs 
> their head read, but the repairs file only has the stock code 
> as a reference in the record. I have indexed the repair file 
> on stock code, and need to create a report on the stock file 
> of how many items are under repair.
> 
> 1. UniverseBASIC code?
> 
> 2. is this possible from an Itype?
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to