CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Define Variable Accessable By Multiple Event Procs

Print topic Send  topic

Author Message
Chris Moore
Posted: 08/08/2003, 10:32 AM

I need to define a variable that I can access & use between event
procedures in 1 page. I tried adding the varibale via CCS in the 'After
Initialize' of the page but that didn't seem to do the job. I get an
Undefined Variable when I try & access that variable. How do I get my
global variable into the DEFAULT.ASP page so I can use it in my
DEFAULT_EVENTS.ASP page and it be accessable?

Thanks

Chris
DonB
Posted: 08/08/2003, 10:45 AM

Just declare it right after the "<%" in either ASP file, not within an
event function.

DonB


"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93D17FEABD827cabubba@66.180.229.147...
> I need to define a variable that I can access & use between event
> procedures in 1 page. I tried adding the varibale via CCS in the 'After
> Initialize' of the page but that didn't seem to do the job. I get an
> Undefined Variable when I try & access that variable. How do I get my
> global variable into the DEFAULT.ASP page so I can use it in my
> DEFAULT_EVENTS.ASP page and it be accessable?
>
> Thanks
>
> Chris

Chris Moore
Posted: 08/08/2003, 10:54 AM

Di I just manually insert this into the DEFAULT.ASP page or the
DEFAULT_EVENTS.ASP page or is there a way to let CCS insert it so it
doesn't get lost if the ASP code is regenerated by CCS.

Thanks

Chris


"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote innews:bh0nkk
$to6$1@news.codecharge.com
:

> Just declare it right after the "<%" in either ASP file, not within an
> event function.
>
> DonB
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93D17FEABD827cabubba@66.180.229.147...
>> I need to define a variable that I can access & use between event
>> procedures in 1 page. I tried adding the varibale via CCS in the
'After
>> Initialize' of the page but that didn't seem to do the job. I get an
>> Undefined Variable when I try & access that variable. How do I get my
>> global variable into the DEFAULT.ASP page so I can use it in my
>> DEFAULT_EVENTS.ASP page and it be accessable?
>>
>> Thanks
>>
>> Chris
>
>
>
DonB
Posted: 08/08/2003, 11:16 AM

You "own" all the file space that has a white background. You can do
anything you want outside of the grayed-out parts and CCS will leave them
alone. I've asked Yes about this practice in the past and they told me they
think it's fine. I had strongly resisted the urge to edit the code directly
up until then.

DonB


"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93D183B38E99Fcabubba@66.180.229.147...
> Di I just manually insert this into the DEFAULT.ASP page or the
> DEFAULT_EVENTS.ASP page or is there a way to let CCS insert it so it
> doesn't get lost if the ASP code is regenerated by CCS.
>
> Thanks
>
> Chris
>
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote innews:bh0nkk
> $to6$1@news.codecharge.com
:
>
> > Just declare it right after the "<%" in either ASP file, not within an
> > event function.
> >
> > DonB
> >
> >
> > "Chris Moore" <chris@dblayout.com> wrote in message
> >news:Xns93D17FEABD827cabubba@66.180.229.147...
> >> I need to define a variable that I can access & use between event
> >> procedures in 1 page. I tried adding the varibale via CCS in the
> 'After
> >> Initialize' of the page but that didn't seem to do the job. I get an
> >> Undefined Variable when I try & access that variable. How do I get my
> >> global variable into the DEFAULT.ASP page so I can use it in my
> >> DEFAULT_EVENTS.ASP page and it be accessable?
> >>
> >> Thanks
> >>
> >> Chris
> >
> >
> >
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.