![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
| set index to OISREF,OISCON (customer number , CustomerOrderNumber) |
#2
| |||
| |||
|
|
First of all apologies for my ignorance foxpro dos 2.6 we have a sales orders database, it's BIG 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 |
#3
| |||
| |||
|
|
First of all apologies for my ignorance foxpro dos 2.6 we have a sales orders database, it's BIG 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 |
#4
| |||
| |||
|
|
First of all apologies for my ignorance foxpro dos 2.6 we have a sales orders database, it's BIG 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |