CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How do I execute functions and displaying results on a page

Print topic Send  topic

Author Message
sadcox66
Posted: 07/05/2005, 12:25 PM

Several Newbie questions.

Q1.) I have some external files with phpClasses and I want to include those functions from codeCharge. Do I have to use the Include feature - I do not need to use the classes in every file and I do not need the HTML codecharge creates.

Q2.) How do I display errors after executing the functions ?
I placed a submit button and a label (lblMsg) in a new file (NewPage1) and added Custom code to my OnClick event.
$NewPage1->$lblMsg->SetValue("Error+$Err"); 
But nothing happens.

What is the correct/best way to execute external functions and display the error results with code charge.

Eventually I want to use jsrs as described in http://forums.yessoftware.com/posts.php?post_id=37507

Thanks in advance
Scott
peterr


Posts: 5971
Posted: 07/06/2005, 12:57 AM

You can include external PHP files by adding an 'include' code at the beginning of Common.php or any specific PHP page.
Once you place a label on a page you should:
1. Place custom code within the "Before Show" event of the label, where you can call and execute your external functions or objects.
2. Assign the output to the Label, like:
$lblMsg->SetValue("Error+$Err"); 

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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