| View previous topic :: View next topic |
| Author |
Message |
VBGreenie
Joined: 12 Jun 2008 Posts: 1
|
Posted: Thu Jun 12, 2008 1:20 am Post subject: Visual Basic 6 - WHAT AM I DOING WRONG? HELP! |
|
|
Ok, I'm almost done with my first 'killer' app. I'm reasonably new to VB and use an old version (6)
I need a boolean value of TRUE when the application starts. I try to use the line:
Dim IsSaved As Boolean = TRUE
...or
Public IsSaved As Boolean = TRUE
And I CAN"T GET IT TO WORK. I get 'expected end of statement' etc. I am ready to THROW MY LAPTOP THROUGH THE WALL.
Where/How do I assign ANY value to ANY variable when my VB app starts? You can't do it in the main declarations (DUH!- Declare WHAT?) you can't do it OUTSIDE procedure. I am ready to have a heart attack. I am SO close to completing most of the code.
HELP! |
|
| Back to top |
|
 |
|
|
sendtoanurag
Joined: 18 Mar 2008 Posts: 28
|
Posted: Fri Jun 13, 2008 12:43 pm Post subject: Re: Visual Basic 6 - WHAT AM I DOING WRONG? HELP! |
|
|
Well Vb does not match with other languages
So put ur statement as
Dim xyz as boolean
xyz = true |
|
| Back to top |
|
 |
|