Files
harbour-core/harbour/tests/tstblock.prg
Viktor Szakats 58255adfe5 2011-09-07 18:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* doc/howtosvn.txt
    + added extra rules to "1.3 Here's how to format your ChangeLog entries"
      section.
    * Change markup is not optional anymore, pls stick to it.

  * contrib/hbcups/tests/test.prg
  * contrib/hbcups/readme.txt
    + Added more test code and extra info to hbcups.
      Update provided by Dr. Claudia Neumann (with my minor fixes/formatting).
      Many thanks!

  * contrib/hbpgsql/rddcopy.c
  * contrib/hbpgsql/hbpgsql.h
    ! svn props

  * tests/testtok.prg
  * tests/testrdd.prg
  * tests/tstchbx.prg
  * tests/tstblock.prg
  * tests/ticktime.prg
  * tests/testvars.prg
  * tests/tstasort.prg
  * tests/testprof.prg
  * tests/testread.prg
  * tests/testrpt.prg
  * tests/teststr.prg
    * formatting.
2011-09-07 16:33:53 +00:00

54 lines
778 B
Plaintext

/*
* $Id$
*/
PROCEDURE Main()
LOCAL i, bBlock[ 3 ]
MEMVAR Var1, Var2, Var3, Macro
PRIVATE Var1, Var2, Var3, Macro
M -> Var1 := "Var1"
M -> Var2 := "Var2"
M -> Var3 := "Var3"
CLS
FOR i := 1 TO 3
M -> Macro := "Var" + Str( i, 1 )
bBlock[ i ] := { || &Macro }
NEXT
? "Early (Simple):"
FOR i := 1 TO 3
? Eval( bBlock[ i ] )
NEXT
FOR i := 1 TO 3
M -> Macro := "Var" + Str( i, 1 )
bBlock[ i ] := { || &Macro + "!" }
NEXT
?
? "Early (Complex):"
FOR i := 1 TO 3
? Eval( bBlock[ i ] )
NEXT
FOR i := 1 TO 3
M -> Macro := "Var" + Str( i, 1 )
bBlock[ i ] := { || &( Macro ) }
NEXT
?
? "Late:"
FOR i := 1 TO 3
? Eval( bBlock[ i ] )
NEXT
RETURN