Files
harbour-core/harbour/tests/statinit.prg
2000-02-14 06:54:30 +00:00

26 lines
441 B
Plaintext

//
// $Id$
//
// ; Donated to the public domain by Victor Szakats <info@szelvesz.hu>
MEMVAR cMyPubVar
STATIC bBlock1 := {|| Hello() }
STATIC bBlock2 := {|| cMyPubVar }
FUNCTION Main()
PUBLIC cMyPubVar := "Printed from a PUBLIC var from a codeblock assigned to a static variable."
Eval( bBlock1 )
? Eval( bBlock2 )
RETURN NIL
FUNCTION Hello()
? "Printed from a codeblock assigned to a static variable."
RETURN NIL