* contrib/hbformat/hbfmtcls.prg
! fixed casing of some function names.
* utils/hbmk2/hbmk2.prg
; all changes below apply to .xhp (xMate) to .hbp conversion:
! properly convert input filenames with spaces in them
! remove lib prefix from .a input filenames
% do not add empty -L options
* do not add include paths with %HB_INSTALL%\ in them
+ split non-portable, Borland-specific include path lists
concatenated with ';' into distinct -I options
% do not add empty include paths
* tests/testop.prg
* tests/testntx.prg
* tests/vmasort.prg
* tests/testlbl.prg
* tests/testidle.prg
* tests/videotst.prg
* tests/testmem.prg
* tests/testinit.prg
* tests/testhtml.prg
* tests/tstcolor.prg
* tests/vidtest.prg
* tests/tstuse.prg
* tests/vec1.prg
* tests/while.prg
* tests/tstdspac.prg
* tests/version.prg
* tests/testpre.prg
* tests/tstprag.prg
* formatted. mostly with hbformat.
75 lines
999 B
Plaintext
75 lines
999 B
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL i := 0, block
|
|
FIELD Last, First
|
|
|
|
USE test
|
|
INDEX ON Left( Last, 8 ) + Left( First, 8 ) TO test1
|
|
INDEX ON Left( Last, 8 ) TO test2
|
|
INDEX ON Last TO test3
|
|
SET INDEX TO test1, test2, test3
|
|
|
|
SET ORDER TO 1
|
|
? IndexKey()
|
|
Inkey( 0 )
|
|
GO TOP
|
|
DO WHILE !Eof()
|
|
? ++i, Last, First
|
|
SKIP
|
|
ENDDO
|
|
|
|
? "------------"
|
|
Inkey( 0 )
|
|
SKIP -1
|
|
|
|
DO WHILE !Bof()
|
|
? i-- , Last, First
|
|
SKIP -1
|
|
ENDDO
|
|
|
|
i := 0
|
|
SET ORDER TO 2
|
|
? IndexKey()
|
|
Inkey( 0 )
|
|
GO TOP
|
|
DO WHILE !Eof()
|
|
? ++i, Last, First
|
|
SKIP
|
|
ENDDO
|
|
|
|
? "------------"
|
|
Inkey( 0 )
|
|
SKIP -1
|
|
|
|
DO WHILE !Bof()
|
|
? i-- , Last, First
|
|
SKIP -1
|
|
ENDDO
|
|
|
|
i := 0
|
|
SET ORDER TO 3
|
|
? IndexKey()
|
|
Inkey( 0 )
|
|
GO TOP
|
|
DO WHILE !Eof()
|
|
? ++i, Last, First
|
|
SKIP
|
|
ENDDO
|
|
|
|
? "------------"
|
|
Inkey( 0 )
|
|
SKIP -1
|
|
|
|
DO WHILE !Bof()
|
|
? i-- , Last, First
|
|
SKIP -1
|
|
ENDDO
|
|
|
|
USE
|
|
|
|
RETURN
|