Files
harbour-core/tests/statinit.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00

27 lines
460 B
Plaintext

/*
* $Id$
*/
// ; Donated to the public domain by
// Viktor Szakats (harbour syenar.net)
MEMVAR p_cMyPubVar
STATIC s_bBlock1 := {|| Hello() }
STATIC s_bBlock2 := {|| p_cMyPubVar }
PROCEDURE Main()
PUBLIC p_cMyPubVar := "Printed from a PUBLIC var from a codeblock assigned to a static variable."
Eval( s_bBlock1 )
? Eval( s_bBlock2 )
RETURN
FUNCTION Hello()
? "Printed from a codeblock assigned to a static variable."
RETURN NIL