PC Review


Reply
Thread Tools Rate Thread

Boolean Variable Definition

 
 
James
Guest
Posts: n/a
 
      14th Aug 2008
Hi, Quick question here, I hope
how do I keep a boolean variable = true and keep that value for every sub or
function that might use it? im having problems when going from one
sub/function to another. The variable keeps getting reset to = "Empty". Do i
actually have to pass it from function to function? What if its used in a
sub? or am i missing something? Thanks
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      14th Aug 2008
Hi


Declare it as Public


Public MyVar As Boolean
Sub mysub()
MyVar = True
End Sub

Mike

"James" wrote:

> Hi, Quick question here, I hope
> how do I keep a boolean variable = true and keep that value for every sub or
> function that might use it? im having problems when going from one
> sub/function to another. The variable keeps getting reset to = "Empty". Do i
> actually have to pass it from function to function? What if its used in a
> sub? or am i missing something? Thanks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
boolean variable? Steve Microsoft Excel Programming 13 2nd Oct 2009 04:00 AM
When and how to set a boolean variable to true? Curious Microsoft Dot NET 1 5th Aug 2008 09:20 AM
3-way property of boolean variable lulu Microsoft Access Database Table Design 6 7th Feb 2006 05:04 PM
boolean variable Daniel Groh Microsoft C# .NET 2 19th May 2005 11:11 AM
Boolean variable in a module..Is it possible ? Don Garry Microsoft Access Getting Started 3 5th Aug 2004 05:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:30 AM.