What does this mean?

  • Thread starter Thread starter TotallyConfused
  • Start date Start date
T

TotallyConfused

What does this mean? I came across this code and do not understand this?

bInReportOpenEvent = True

I understand that it is looking to see if the report is "Open", but what
does the "bIn" mean?

Thank you.
 
What does this mean? I came across this code and do not understand this?

bInReportOpenEvent = True

I understand that it is looking to see if the report is "Open", but what
does the "bIn" mean?

Thank you.

bIn is simply part of the name of the variable. The programmer defined a
Boolean variable named bInReportOpenEvent - she could have named it Quixit had
she chosen, it's just a name. (I'm guessing that the b is part of a naming
convention meaning that it's a Boolean or Yes/No datatype).

John W. Vinson [MVP]
 
Hi,
sometimes developers want to have a way to record that a particular thing or
event has happened.
In this example the developer wanted to have a way of knowing if the Open
event on the report had fired or not.
bln is a 3 letter prefix that is short for Boolean
Some people use bol as the 3 letter prefix for Boolean, some people use boo
instead
You would be familiar with this sort of thing:
Dim strSource as String
Dim bolOverdueFees as Boolean

Somewhere in the code you will see
Dim blnReportOpenEvent as Boolean
If you look at the top of the code module under Option Explicit you may find
it there.

Somewhere in the code you will find code like this:
If blnReportOpenEvent then
'code here to do something
Else
'code here to do nothing or something different
End if

Jeanette Cunningham
 
As John and Jeanette have pointed out, developers use "bln" as a prefix to
indicate that a variable is Boolean.

If the developer is consistent and thorough, s/he has also included the
relevant "Dim" (dimension) statement somewhere in the code preceding the
use of this variable. Unfortunately (my opinion), it is possible to NOT
"Dim" a variable before use, potentially leading to even more confusion and
difficulty debugging.

Good luck!

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top