Quantcast
Viewing latest article 11
Browse Latest Browse All 21847

Why doesn't VB6 allow "Public Names() As String"?

We know that the following blue statement are not allowed in VB6, why does VB6 have such a restriction?

MyClass.cls
Code:

Public Names() As String

Private Sub Class_Initialize()
    ReDim Me.Names(10) As String
End Sub

These small limitations have caused me a lot of trouble.

Viewing latest article 11
Browse Latest Browse All 21847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>