A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What does this mean?



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2008, 06:35 AM posted to microsoft.public.access.forms
totallyconfused
external usenet poster
 
Posts: 304
Default What does this mean?

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.
  #2  
Old January 7th, 2008, 06:55 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default What does this mean?

On Sun, 6 Jan 2008 22:35:01 -0800, TotallyConfused
wrote:

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]
  #3  
Old January 7th, 2008, 09:14 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default What does this mean?

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



"TotallyConfused" wrote in
message ...
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.



  #4  
Old January 7th, 2008, 12:31 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default What does this mean?

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
http://mvp.support.microsoft.com/

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


"TotallyConfused" wrote in
message ...
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.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.