It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

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

Moderator: dafunkymunky

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

Postby VBGreenie on Thu Jun 12, 2008 12:20 am

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!
VBGreenie
 
Posts: 0
Joined: Thu Jun 12, 2008 12:15 am

Postby sendtoanurag on Fri Jun 13, 2008 11:43 am

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

Dim xyz as boolean
xyz = true
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm


Who is online

Users browsing this forum: No registered users and 3 guests