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
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
Jump to PostYou're gonna have to show a bit more of your code. Particularly the lines above that.
You're gonna have to show a bit more of your code. Particularly the lines above that.
Hi,
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
i =1
If its a Contant..
Const i As Integer =1
Regards
Veena
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.