redim vb6

Started by
1 comment, last by BloodLust666 17 years, 9 months ago
would be any particular reason for the compiler to say "Subscript out of range", at the line gl_totalmessages = gl_totalmessages + 1 'gl_totalmessages is 2 first time it gets here "ReDim Preserve Message(gl_TotalMessages) As tMessage" it's declared as "dim Message() as tMessage" and i'm redimensioning it there with a specific size... what's the problem?
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
Advertisement
Print or display gl_TotalMessages on the line before the redim.
i did, and it's 2
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML

This topic is closed to new replies.

Advertisement