* contrib/hbformat/hbfmtcls.prg
* new TOFIX:
".T.," / ".F.," gets wrongly corrected to ".T. ," / ".F. ,"
* contrib/hbct/tests/atrepl.prg
* contrib/hbct/tests/ctwtest.prg
* contrib/hbct/tests/datetime.prg
* contrib/hbgd/gdbar.prg
* contrib/hbgd/gdbarcod.prg
* contrib/hbgd/tests/barms.prg
* contrib/hbgd/tests/bartest.prg
* contrib/hbgd/tests/gdtestcl.prg
* contrib/hbgd/tests/test_out.prg
* contrib/hbhpdf/tests/harupdf.prg
* contrib/hbmisc/fcomma.prg
* contrib/hbnf/calendar.prg
* contrib/hbnf/dispmsg.prg
* contrib/hbnf/floptst.prg
* contrib/hbnf/ftround.prg
* contrib/hbnf/mouse1.prg
* contrib/hbnf/pegs.prg
* contrib/hbnf/popadder.prg
* contrib/hbnf/tempfile.prg
* contrib/hbnf/tests/aading.prg
* contrib/hbnf/tests/calendar.prg
* contrib/hbnf/tests/clrsel.prg
* contrib/hbnf/tests/dispmsg.prg
* contrib/hbnf/tests/findith.prg
* contrib/hbnf/tests/menu1.prg
* contrib/hbnf/tests/tbwhile.prg
* contrib/hbnf/tests/vertmenu.prg
* contrib/hbsqlit3/tests/authoriz.prg
* contrib/hbsqlit3/tests/backup.prg
* contrib/hbsqlit3/tests/hooks.prg
* contrib/hbsqlit3/tests/metadata.prg
* contrib/hbsqlit3/tests/pack.prg
* contrib/hbsqlit3/tests/sl3_test.prg
* contrib/hbtip/sendmail.prg
* contrib/hbtip/tests/base64.prg
* contrib/hbtip/tests/httpadv.prg
* contrib/hbtip/thtml.prg
* contrib/hbtpathy/telepath.prg
* contrib/hbwin/tests/testole.prg
* contrib/rddads/tests/datad.prg
* contrib/rddads/tests/testmg.prg
* contrib/rddsql/tests/arrayrdd.prg
* contrib/sddmy/tests/test1.prg
* contrib/sddoci/tests/test1.prg
* contrib/sddodbc/tests/test1.prg
* contrib/sddodbc/tests/test2.prg
* contrib/sddsqlt3/tests/test1.prg
* contrib/xhb/dumpvar.prg
* contrib/xhb/hblog.prg
* contrib/xhb/trpc.prg
* contrib/xhb/trpccli.prg
* contrib/xhb/ttable.prg
* contrib/xhb/xcstr.prg
* contrib/xhb/xhberr.prg
* contrib/xhb/xhbtedit.prg
* extras/gtwvw/tests/cbtest6.prg
* extras/gtwvw/tests/drawimg.prg
* extras/gtwvw/tests/ebtest7.prg
* extras/gtwvw/tests/maximize.prg
* extras/gtwvw/tests/prog0.prg
* extras/gtwvw/tests/prog1.prg
* extras/gtwvw/tests/prog2.prg
* extras/gtwvw/tests/wvwtest9.prg
* extras/hbvpdf/hbvpdf.prg
* extras/hbvpdf/tests/pdf_demo.prg
* extras/httpsrv/modules/info.prg
* extras/httpsrv/modules/showcounter.prg
* tests/ac_test2.prg
* tests/adirtest.prg
* tests/and_or.prg
* tests/brwpos.prg
* tests/clasname.prg
* tests/extend1.prg
* tests/newrdd.prg
* tests/testbrw.prg
* tests/testcdx.prg
* tests/testdbf.prg
* tests/transtst.prg
* tests/tstasort.prg
* tests/usrrdd/exarr.prg
* tests/usrrdd/exhsx.prg
* formatting (mostly fixing one formatting error by hbformat)
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#include "dbinfo.ch"
|
|
|
|
PROCEDURE Main()
|
|
|
|
FIELD FIRST, LAST, STREET, CITY
|
|
LOCAL n, hs
|
|
|
|
dbCreate( "_tst", { ;
|
|
{ "FIRST", "C", 20, 0 }, ;
|
|
{ "LAST", "C", 20, 0 }, ;
|
|
{ "STREET", "C", 30, 0 }, ;
|
|
{ "CITY", "C", 30, 0 }, ;
|
|
{ "STATE", "C", 2, 0 }, ;
|
|
{ "ZIP", "C", 10, 0 }, ;
|
|
{ "HIREDATE", "D", 8, 0 }, ;
|
|
{ "MARRIED", "L", 1, 0 }, ;
|
|
{ "AGE", "N", 2, 0 }, ;
|
|
{ "SALARY", "N", 6, 0 }, ;
|
|
{ "NOTES", "C", 70, 0 } } )
|
|
USE _tst
|
|
HSX_CREATE( "_tst", "FIRST+LAST+STREET+CITY", 2, 0, .T., 3 )
|
|
APPEND FROM test
|
|
|
|
/* Look for all records which have 'SHERMAN' string inside */
|
|
hs := HSX_HANDLE( "_tst" )
|
|
hs_Set( hs, "SHERMAN" )
|
|
DO WHILE ( n := hs_Next( hs ) ) > 0
|
|
dbGoto( n )
|
|
IF hs_Verify( hs ) > 0
|
|
? RTrim( FIRST + LAST + STREET + CITY )
|
|
ENDIF
|
|
ENDDO
|
|
WAIT
|
|
|
|
/* Does RDD support Record Map Filters? */
|
|
IF dbInfo( DBI_RM_SUPPORTED )
|
|
/* if yest then let set filter for all records with 'SHERMAN'
|
|
word and look at them in browser */
|
|
hs_Filter( hs, "SHERMAN" )
|
|
dbGoTop()
|
|
Browse()
|
|
ENDIF
|
|
|
|
RETURN
|