* tests/ainstest.prg
* tests/array16.prg
* tests/arrays.prg
* tests/atest.prg
* tests/clasinit.prg
* tests/classch.prg
* tests/classes.prg
* tests/dates.prg
* tests/db_brows.prg
* tests/ddate.prg
* tests/debugtst.prg
* tests/dynobj.prg
* tests/files.prg
* tests/gfx.prg
* tests/inline.prg
* tests/keywords.prg
* tests/objects.prg
* tests/onidle.prg
* tests/readhrb.prg
* tests/rtfclass.prg
* tests/speed.prg
* tests/switch.prg
* tests/test_all.prg
* tests/testbrw.prg
* tests/testcgi.prg
* tests/testcls.prg
* tests/testget.prg
* tests/testhtml.prg
* tests/testidle.prg
* tests/testinit.prg
* tests/testntx.prg
* tests/testpers.prg
* tests/testrdd2.prg
* tests/teststr.prg
* tests/tstblock.prg
* tests/tstmacro.prg
* tests/videotst.prg
* tests/vidtest.prg
* tests/wcecon.prg
* Cleanups. SVN header, '=' operator usage.
65 lines
996 B
Plaintext
65 lines
996 B
Plaintext
//
|
|
// $Id$
|
|
//
|
|
|
|
// Testing Harbour hbclass.ch commands
|
|
|
|
#include "hbclass.ch"
|
|
|
|
//--------------------------------------------------------------------//
|
|
|
|
function Main()
|
|
|
|
local o := TTest():New( "one", "two" )
|
|
|
|
? o:ClassName()
|
|
? o:One
|
|
? o:Two
|
|
|
|
o:Test()
|
|
|
|
return nil
|
|
|
|
//--------------------------------------------------------------------//
|
|
|
|
CLASS TTest INHERIT TParent
|
|
|
|
DATA One, Two, Three
|
|
|
|
METHOD New( One, Two )
|
|
|
|
METHOD Test() INLINE QOut( "Hello" )
|
|
|
|
ENDCLASS
|
|
|
|
//--------------------------------------------------------------------//
|
|
|
|
METHOD New( One, Two ) CLASS TTest
|
|
|
|
Super:New()
|
|
|
|
::One := One
|
|
::Two := Two
|
|
|
|
return Self
|
|
|
|
//--------------------------------------------------------------------//
|
|
|
|
CLASS TParent
|
|
|
|
DATA One
|
|
|
|
METHOD New()
|
|
|
|
ENDCLASS
|
|
|
|
//--------------------------------------------------------------------//
|
|
|
|
METHOD New() CLASS TParent
|
|
|
|
? "TParent:New()"
|
|
|
|
return Self
|
|
|
|
//--------------------------------------------------------------------//
|