Gary's use of pointers encouraged me to give them a try but
I *thought* I was using it as Gary does. The only diff I can see is he uses :
And I am *trying* As Long Ptr.
The array is Dimmed/filled/assigned okay. What am I doing wrong?
=====================================
Who has a harder fight than he
who is striving to overcome himself.
Thomas a Kempis
=====================================
Code:
... Global Colors&(), Color_Ptr [B]As Long Ptr[/B] ' ... Color_Ptr = VarPtr(Colors(0)) '<< is assigned first and appears before next in code ... Colr = Rnd(0, Max_Colors) 'pick a color tmp = @Color_Ptr(Colr) '<< gives [B]'Missing Declaration Error Color_Ptr[/B] ...
Code:
Global tg(), ng() [B]As Byte[/B] Global tgptr, ngptr [B]As Byte Ptr[/B]
The array is Dimmed/filled/assigned okay. What am I doing wrong?
=====================================
Who has a harder fight than he
who is striving to overcome himself.
Thomas a Kempis
=====================================
Comment