I am using vb6 to do my project. When i define an initialize a variable i get the compile time error as "Expected:End of statement". The code is :
Dim i as integer=1
You're gonna have to show a bit more of your code. Particularly the lines above that.
For VB6, Post your query In "Visual basic 4/5/6" Group...
In VB6, You cannot declare and assign Value in same statement...
Change your code to:
Dim i as integer
If its a Contant..
Const i As Integer =1
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.