Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Visual Basic 6 - WHAT AM I DOING WRONG? HELP!



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
VBGreenie



Joined: 12 Jun 2008
Posts: 1

PostPosted: Thu Jun 12, 2008 1:20 am    Post subject: Visual Basic 6 - WHAT AM I DOING WRONG? HELP! Reply with quote

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
View user's profile Send private message
sendtoanurag



Joined: 18 Mar 2008
Posts: 28

PostPosted: Fri Jun 13, 2008 12:43 pm    Post subject: Re: Visual Basic 6 - WHAT AM I DOING WRONG? HELP! Reply with quote

Well Vb does not match with other languages
So put ur statement as

Dim xyz as boolean
xyz = true
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap