Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_NEWIMAGE can't accept variables as dimensions?
#8
(02-17-2026, 01:51 AM)Unseen Machine Wrote: If your calling the creation from within a Sub and the variable iy isnt shared then the sub cant access it.

So i.e 

DIM Shared AS INTEGER Iy

Would probably fix it 

Though without your full code this is just a guess...

Unseen

     I also suspect this, and did ask if the variable was in scope.   He says everything is declared in the same sub ?? 
There has to be an incorrect value somewhere which is why I asked him to print out the value right before his call to _NewImage !
Reply


Messages In This Thread
RE: _NEWIMAGE can't accept variables as dimensions? - by ahenry3068 - 02-17-2026, 02:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting mouse to ignore outside of _NewImage PhilOfPerth 11 712 12-18-2025, 07:20 PM
Last Post: Pete
  getting the number of dimensions in an array on the fly? madscijr 7 721 09-16-2025, 12:34 AM
Last Post: madscijr
  Why are SINGLE variables faster than INTEGER variables ? Elzaimer 18 2,330 07-07-2025, 05:01 AM
Last Post: ahenry3068
  Why do FOR/NEXT variables end up +1 more? Dav 14 2,832 08-26-2023, 09:25 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 2 Guest(s)