Initialize integer value while declaration vb6

Viewed 10610

How should I initialize variable value during the declaration.

I am using VB6, I tried

public i as integer = 0

but i got error

Expected: End of statement, and "=" is highlighted

I want to set initial value to 0.

Edit from comments:

I want to create a login form without the help of the database..

Module: So i created a user_name(1 to 10)-- array and password(1 to 10) array

form1 I want to register upto 10 users each time the value of i increments //form// i=1 register_user(i)=uname register_pass(i)=upass i=i+1 //end// but each time I go to that form value is set again to 1 what should I do.

3 Answers
Related