Files
harbour-core/harbour/tests/statinit.prg
1999-10-04 18:46:41 +00:00

24 lines
420 B
Plaintext

//
// $Id$
//
// ; Donated to the public domain by Victor Szel <info@szelvesz.hu>
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