* extras/hbvpdf/hbvpdf.hbx
! two more corrections
* contrib/gtwvg/tests/_dyndlgs.prg
* contrib/hbct/doc/en/finan.txt
* contrib/hbct/readme.txt
* contrib/hbct/tests/asciisum.prg
* contrib/hbct/tests/trig.prg
* contrib/hbfoxpro/dll.prg
* contrib/hbhttpd/core.prg
* contrib/hbhttpd/widgets.prg
* contrib/hbmisc/fcomma.prg
* contrib/hbmlzo/tests/test.prg
* contrib/hbmxml/tests/custom.prg
* contrib/hbmzip/readme.txt
* contrib/hbnf/nwuid.prg
* contrib/hbnf/vidcur.prg
* contrib/hbtip/client.prg
* contrib/hbwin/tests/olesrv1.prg
* contrib/hbwin/tests/testprn.prg
* contrib/xhb/cstruct.prg
* contrib/xhb/hjwindow.prg
* contrib/xhb/hterrsys.prg
* contrib/xhb/htjlist.prg
* contrib/xhb/htmutil.prg
* contrib/xhb/tests/decode.prg
* contrib/xhb/xhberr.prg
* doc/cmdline.txt
* doc/en/objfunc.txt
* doc/en/set.txt
* doc/en/string.txt
* doc/pragma.txt
* extras/gfspell/spell.prg
* extras/gtwvw/docs/gtwvw.txt
* extras/gtwvw/tests/wvwtest9.prg
* extras/hbvpdf/core.prg
* extras/hbvpdf/fonts.prg
* extras/hbvpdf/tests/pdf_demo.prg
* extras/httpsrv/cgifunc.prg
* extras/httpsrv/home/counter.html
* extras/httpsrv/home/testxmldb.html
* extras/httpsrv/session.prg
* extras/httpsrv/uhttpd.prg
* tests/base64.prg
* tests/boxtest.prg
* tests/db_brows.prg
* tests/ddate.prg
* tests/inherit.prg
* tests/langmsg.prg
* tests/mathtest.prg
* tests/memtst.prg
* tests/readhrb.prg
* tests/switch.prg
* tests/testsha2.prg
* tests/testwarn.prg
* tests/tstdbi.prg
* tests/utf8at.prg
* utils/hbtest/hbtest.prg
* utils/hbtest/rt_class.prg
* utils/hbtest/rt_date.prg
* utils/hbtest/rt_hvma.prg
* utils/hbtest/rt_math.prg
* utils/hbtest/rt_misc.prg
* utils/hbtest/rt_trans.prg
* website/news.html
* website/news1.html
* website/samples.html
* website/samples/arreval.html
* website/samples/codebl.prg.html
* website/samples/dates3.html
* website/samples/switch.prg.html
* website/samples/testcgi.prg.html
* website/samples/tstmacro.prg.html
* rerun case fixer script after applying
some fixes, and this time it run fully
automatically.
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef __HARBOUR__
|
|
#xtranslate hb_eol() => ( Chr( 13 ) + Chr( 10 ) )
|
|
#endif
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL i
|
|
LOCAL cStr := ""
|
|
|
|
USE "test" NEW
|
|
|
|
FOR i := 1 TO 100
|
|
cStr += Str( i ) + " " + xToStr( dbInfo( i ) ) + hb_eol()
|
|
NEXT
|
|
cStr += Str( 101 ) + " " + xToStr( dbInfo( 101 ) ) + hb_eol()
|
|
cStr += Str( 101 ) + " " + xToStr( dbInfo( 101, 1 ) ) + hb_eol()
|
|
cStr += Str( 101 ) + " " + xToStr( dbInfo( 101, 2 ) ) + hb_eol()
|
|
cStr += Str( 102 ) + " " + xToStr( dbInfo( 102 ) ) + hb_eol()
|
|
cStr += Str( 101 ) + " " + xToStr( dbInfo( 102, 1 ) ) + hb_eol()
|
|
cStr += Str( 101 ) + " " + xToStr( dbInfo( 102, 2 ) ) + hb_eol()
|
|
cStr += Str( 999 ) + " " + xToStr( dbInfo( 999 ) ) + hb_eol()
|
|
cStr += Str( 1000 ) + " " + xToStr( dbInfo( 1000 ) ) + hb_eol()
|
|
|
|
#ifdef __HARBOUR__
|
|
MemoWrit( "dbihb.txt", cStr )
|
|
#else
|
|
MemoWrit( "dbicl.txt", cStr )
|
|
#endif
|
|
|
|
? dbRecordInfo( 1 )
|
|
? dbRecordInfo( 2 )
|
|
? dbRecordInfo( 3 )
|
|
? dbRecordInfo( 4 )
|
|
? dbRecordInfo( 5 )
|
|
|
|
? dbFieldInfo( 1, 1 )
|
|
? dbFieldInfo( 2, 1 )
|
|
? dbFieldInfo( 3, 1 )
|
|
? dbFieldInfo( 4, 1 )
|
|
|
|
RETURN
|
|
|
|
STATIC FUNCTION xToStr( xValue )
|
|
|
|
SWITCH ValType( xValue )
|
|
CASE "N"
|
|
RETURN Str( xValue )
|
|
CASE "D"
|
|
RETURN DToC( xValue )
|
|
CASE "C"
|
|
CASE "M"
|
|
RETURN xValue
|
|
CASE "L"
|
|
RETURN iif( xValue, ".T.", ".F." )
|
|
CASE "A"
|
|
RETURN "A" + hb_ntos( Len( xValue ) )
|
|
CASE "U"
|
|
RETURN "NIL"
|
|
ENDSWITCH
|
|
|
|
RETURN ""
|