MacroExpandedCount question
Posted: Fri Mar 17, 2017 5:54 pm
Hello,
I've got problem with MacroExpandedCount function
Result :
Example1
1
2
3
4
Example2
5
5
5
5
In case of Array (Example 2) the macro seems not running after the first loop?
Is it a bug or i am doing something wrong?
I've got problem with MacroExpandedCount function
Code: Select all
Macro _hGadget
MacroExpandedCount
EndMacro
;Example 1
Debug "Example1"
Global z1 = _hGadget
Global z2 = _hGadget
Global z3 = _hGadget
Global z4 = _hGadget
Debug z1
Debug z2
Debug z3
Debug z4
;Example 2
Debug "Example2"
Global Dim az.l(4), i
For i = 0 To 3
az(i) = _hGadget ;<- HERE ERROR AFTER THE FIRST LOOP
Next
For i = 0 To 3
Debug az(i)
Next
Example1
1
2
3
4
Example2
5
5
5
5
In case of Array (Example 2) the macro seems not running after the first loop?
Is it a bug or i am doing something wrong?