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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|