CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Use of global variables (which are set outside codecharge)

Print topic Send  topic

Author Message
D van der Wal
Posted: 09/10/2003, 1:17 AM

Hi,

I've a set of functions where I declare some global variables (ex :
$hidden_hash_code = 'test value')

When I use my functions in a php page, I can read the value of
$hidden_has_code; but when I use my functions in a ccs project, the value of
$hidden_hash_code is always NULL (and I've set the superglobal property of
the project to yes).

exemple in my php page
------------------------

include("security/user.php") // where I set my variables
global $hidden_hash_code;
print($hidden_hash_code); // I can view the value of my variable

exemple in ccs page
--------------------
include_once("security/user.php");
global $hidden_hash_code;
global $MyPage
$MyPage->Label->SetValue($hidden_hash_code); // always NULL

Any idea to solve my problem ?
Thanks
Dominique van der Wal


Michael Rachow
Posted: 09/30/2003, 7:59 AM

I suppose you have it to declare it elsewhere
and use it as global inside your function already.

Michael

"D van der Wal" <dvdw@plan.be> schrieb im Newsbeitrag
news:bjmmnd$586$1@news.codecharge.com...
> Hi,
>
> I've a set of functions where I declare some global variables (ex :
> $hidden_hash_code = 'test value')
>
> When I use my functions in a php page, I can read the value of
> $hidden_has_code; but when I use my functions in a ccs project, the value
of
> $hidden_hash_code is always NULL (and I've set the superglobal property of
> the project to yes).
>
> exemple in my php page
> ------------------------
>
> include("security/user.php") // where I set my variables
> global $hidden_hash_code;
> print($hidden_hash_code); // I can view the value of my variable
>
> exemple in ccs page
> --------------------
> include_once("security/user.php");
> global $hidden_hash_code;
> global $MyPage
> $MyPage->Label->SetValue($hidden_hash_code); // always NULL
>
> Any idea to solve my problem ?
> Thanks
> Dominique van der Wal
>
>
>


   


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.