CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 declaring global variable in function ?

Print topic Send  topic

Author Message
peter
Posted: 02/14/2002, 4:46 AM

ok .. using PHP ... here's the problem.
I needed to include authentication script to CodeCharge generated page so I used Open Any Page and placed the script there which works just fine. Script generates variables that i need to have access to in later functions (in the same document). The problem is that i can't find a way how to declare global variable at the beginning of that function (it needs to be declared before SQL statements) using CC. When i edit the source manually and add "global $variable;" at the beginning of function all works fine ... is there any way how to achieve the same result using CC ?? This would be very helpfull 'cause i'm getting tired of manually editing the script everytime i generate it from CC.

Thanks ...
Alex Alexapolsky
Posted: 02/14/2002, 5:15 AM

You can declare gloabl vars in Page/Open event , or Modules section

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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