RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread Clint Tredway
You need mailto:flashmx@;rogers.com] 
Sent: Wednesday, October 30, 2002 7:32 AM
To: CF-Talk
Subject: RE: Run code once and only once at inital login...WTF!


On Wed, 30 Oct 2002 13:26:32 -, Robertson-Ravo, Neil (REC) wrote:

> a few things :  why are you setting it to be FALSE the checking if its

> 0? pick a boolean method and stick to it :-)
>
> You do not need to check the value of a boolean like this  TRUE> but default,  is the same and will always equate to 
> True/False (I personally use 0s & 1s)

OK.

> Also, are you running MX?

Nope.

if not, where are your ?

Oh no...should I be putting  Neil
> 
> 
> -Original Message-
> From: FlashGuy [mailto:flashmx@;rogers.com]
> Sent: 30 October 2002 13:23
> To: CF-Talk
> Subject: Run code once and only once at inital login...WTF!
> 
> 
> I have this line in my application.cfm file.
> 
> 
> 
> 
> Then in my index.cfm (which can get reloaded multiple times during a
> session) reads from a database and does some stuff based on the 
> session.initialCodeRun.
> 
> Here is my code:
> 
> 
>   
>  
>   SELECT  strField1
> FROM table1
>
> 
>   
>   --- YES ---
> 
>   --- NO ---
> 
> 
> 
> Even though strField1 in my database has *nothing* entered there the 
> above code returns "Yes" upon initial login. Even if I enter in "no" 
> in that field it still returns "yes"
> 
> Whats going on?
> 
> 
> 
> ---
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---
> 
> 
> 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Run code once and only once at inital login...WTF!

2002-10-30 Thread Jesse Houwing
FlashGuy wrote:
> On Wed, 30 Oct 2002 13:26:32 -, Robertson-Ravo, Neil (REC) wrote:
> 
> 
>>a few things :  why are you setting it to be FALSE the checking if its 0?
>>pick a boolean method and stick to it :-)
>>   
>>You do not need to check the value of a boolean like this 
>>but default,  is the same and will always equate to True/False (I
>>personally use 0s & 1s)
> 
> 
> OK.
> 
> 
>>Also, are you running MX? 
> 
> 
> Nope.
> 
> if not, where are your ?
> 
> Oh no...should I be putting http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread Robertson-Ravo, Neil (REC)
only around shared scope variables such as session, application and server

-Original Message-
From: FlashGuy [mailto:flashmx@;rogers.com]
Sent: 30 October 2002 13:32
To: CF-Talk
Subject: RE: Run code once and only once at inital login...WTF!


On Wed, 30 Oct 2002 13:26:32 -, Robertson-Ravo, Neil (REC) wrote:

> a few things :  why are you setting it to be FALSE the checking if its 0?
> pick a boolean method and stick to it :-)
>
> You do not need to check the value of a boolean like this 
> but default,  is the same and will always equate to True/False (I
> personally use 0s & 1s)

OK.

> Also, are you running MX? 

Nope.

if not, where are your ?

Oh no...should I be putting  Neil
> 
> 
> -Original Message-
> From: FlashGuy [mailto:flashmx@;rogers.com]
> Sent: 30 October 2002 13:23
> To: CF-Talk
> Subject: Run code once and only once at inital login...WTF!
> 
> 
> I have this line in my application.cfm file.
> 
> 
> 
> 
> Then in my index.cfm (which can get reloaded multiple times during a
> session) reads from a database and does some stuff based on the
> session.initialCodeRun.
> 
> Here is my code:
> 
> 
>   
>   dbtype="ODBC">
>   SELECT  strField1
> FROM table1
>
> 
>   
>   --- YES ---
> 
>   --- NO ---
> 
> 
> 
> Even though strField1 in my database has *nothing* entered there the above
> code returns "Yes" upon initial login. Even if I enter in "no" in that
field
> it still returns "yes"
> 
> Whats going on?
> 
> 
> 
> ---
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---
> 
> 
> 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread FlashGuy
Thanks alot. That did the trick.

I appreciate all the help guys!


On Wed, 30 Oct 2002 08:26:44 -0500, Everett, Al wrote:

> That's because while the field is *empty* it is still *defined*
> 
> You want something like this:
> 
> 
> 
> Or, if it's supposed to be a particular value:
> 
>  "aParticularValue">
> 
> > -Original Message-
> > From: FlashGuy [mailto:flashmx@;rogers.com]
> > Sent: Wednesday, October 30, 2002 8:23 AM
> > To: CF-Talk
> > Subject: Run code once and only once at inital login...WTF!
> > 
> > 
> > I have this line in my application.cfm file.
> > 
> > 
> > 
> > 
> > Then in my index.cfm (which can get reloaded multiple times 
> > during a session) reads from a database and does some stuff 
> > based on the session.initialCodeRun.
> > 
> > Here is my code:
> > 
> > 
> >   
> > > datasource="profs" dbtype="ODBC">
> > SELECT  strField1
> >   FROM table1
> >
> > 
> >   
> > --- YES ---
> >   
> > --- NO ---
> >   
> > 
> > 
> > Even though strField1 in my database has *nothing* entered 
> > there the above code returns "Yes" upon initial login. Even 
> > if I enter in "no" in that field it still returns "yes"
> > 
> > Whats going on?
> > 
> > 
> > 
> > ---
> > Colonel Nathan R. Jessop
> > Commanding Officer
> > Marine Ground Forces
> > Guatanamo Bay, Cuba
> > ---
> > 
> > 
> > 
> > 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread Everett, Al
> Oh no...should I be putting http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread FlashGuy
On Wed, 30 Oct 2002 13:26:32 -, Robertson-Ravo, Neil (REC) wrote:

> a few things :  why are you setting it to be FALSE the checking if its 0?
> pick a boolean method and stick to it :-)
>
> You do not need to check the value of a boolean like this 
> but default,  is the same and will always equate to True/False (I
> personally use 0s & 1s)

OK.

> Also, are you running MX? 

Nope.

if not, where are your ?

Oh no...should I be putting  Neil
> 
> 
> -Original Message-
> From: FlashGuy [mailto:flashmx@;rogers.com]
> Sent: 30 October 2002 13:23
> To: CF-Talk
> Subject: Run code once and only once at inital login...WTF!
> 
> 
> I have this line in my application.cfm file.
> 
> 
> 
> 
> Then in my index.cfm (which can get reloaded multiple times during a
> session) reads from a database and does some stuff based on the
> session.initialCodeRun.
> 
> Here is my code:
> 
> 
>   
>   dbtype="ODBC">
>   SELECT  strField1
> FROM table1
>
> 
>   
>   --- YES ---
> 
>   --- NO ---
> 
> 
> 
> Even though strField1 in my database has *nothing* entered there the above
> code returns "Yes" upon initial login. Even if I enter in "no" in that field
> it still returns "yes"
> 
> Whats going on?
> 
> 
> 
> ---
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---
> 
> 
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread Robertson-Ravo, Neil (REC)
a few things :  why are you setting it to be FALSE the checking if its 0?
pick a boolean method and stick to it :-)
   
You do not need to check the value of a boolean like this 
but default,  is the same and will always equate to True/False (I
personally use 0s & 1s)

Also, are you running MX? if not, where are your ?

Neil


-Original Message-
From: FlashGuy [mailto:flashmx@;rogers.com]
Sent: 30 October 2002 13:23
To: CF-Talk
Subject: Run code once and only once at inital login...WTF!


I have this line in my application.cfm file.




Then in my index.cfm (which can get reloaded multiple times during a
session) reads from a database and does some stuff based on the
session.initialCodeRun.

Here is my code:


  
   
SELECT  strField1
  FROM table1
   

  
--- YES ---
  
--- NO ---
  


Even though strField1 in my database has *nothing* entered there the above
code returns "Yes" upon initial login. Even if I enter in "no" in that field
it still returns "yes"

Whats going on?



---
Colonel Nathan R. Jessop
Commanding Officer
Marine Ground Forces
Guatanamo Bay, Cuba
---




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Run code once and only once at inital login...WTF!

2002-10-30 Thread Everett, Al
That's because while the field is *empty* it is still *defined*

You want something like this:



Or, if it's supposed to be a particular value:



> -Original Message-
> From: FlashGuy [mailto:flashmx@;rogers.com]
> Sent: Wednesday, October 30, 2002 8:23 AM
> To: CF-Talk
> Subject: Run code once and only once at inital login...WTF!
> 
> 
> I have this line in my application.cfm file.
> 
> 
> 
> 
> Then in my index.cfm (which can get reloaded multiple times 
> during a session) reads from a database and does some stuff 
> based on the session.initialCodeRun.
> 
> Here is my code:
> 
> 
>   
>   datasource="profs" dbtype="ODBC">
>   SELECT  strField1
> FROM table1
>
> 
>   
>   --- YES ---
> 
>   --- NO ---
> 
> 
> 
> Even though strField1 in my database has *nothing* entered 
> there the above code returns "Yes" upon initial login. Even 
> if I enter in "no" in that field it still returns "yes"
> 
> Whats going on?
> 
> 
> 
> ---
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---
> 
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Run code once and only once at inital login...WTF!

2002-10-30 Thread FlashGuy
I have this line in my application.cfm file.




Then in my index.cfm (which can get reloaded multiple times during a session) reads 
from a database and does some stuff based on the session.initialCodeRun.

Here is my code:


  
   
SELECT  strField1
  FROM table1
   

  
--- YES ---
  
--- NO ---
  


Even though strField1 in my database has *nothing* entered there the above code 
returns "Yes" upon initial login. Even if I enter in "no" in that field it still 
returns "yes"

Whats going on?



---
Colonel Nathan R. Jessop
Commanding Officer
Marine Ground Forces
Guatanamo Bay, Cuba
---



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm