Apologies for my ignorance
this is a BIG orders database 70K records, 30MB
what i want to do is display all orders from customer 12345 (there is an index file for this)
but then to display them in the browse window in CustomerOrderNumber order (again there is an index for this)
>>
set index to OISREF,OISCON (customer number , CustomerOrderNumber)
seek REFVAR (customer number)
if found()
GET_ORD=.t.
Skip 1
if REF(field f#holding customer number) = REFVAR
do while REF = REFVAR
skip
enddo
browse window OIBROW fields SURNAME:7,REF, etc noappend key "&REFVAR"
<<
I have messed around with SET ORDER TO without luck
do I need to create a new index combining the two fields, or is there a better way?
Thanks
Steve
this is a BIG orders database 70K records, 30MB
what i want to do is display all orders from customer 12345 (there is an index file for this)
but then to display them in the browse window in CustomerOrderNumber order (again there is an index for this)
>>
set index to OISREF,OISCON (customer number , CustomerOrderNumber)
seek REFVAR (customer number)
if found()
GET_ORD=.t.
Skip 1
if REF(field f#holding customer number) = REFVAR
do while REF = REFVAR
skip
enddo
browse window OIBROW fields SURNAME:7,REF, etc noappend key "&REFVAR"
<<
I have messed around with SET ORDER TO without luck
do I need to create a new index combining the two fields, or is there a better way?
Thanks
Steve