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

 User Defined Functions

Print topic Send  topic

Author Message
Anothersledhead


Posts: 44
Posted: 05/28/2004, 12:38 PM

How do I call user defined functions. I have seen a few examples but can't seem to get them to work. I am trying to implement a calendar that I have writen on my page. The problem I am having is that when it renders the html for the page it puts the calendar table above the head tags so I can't place it on the page where I want. It always shows at the top. I am using custom code in the before show event of a label.
View profile  Send private message
peterr


Posts: 5971
Posted: 05/28/2004, 12:59 PM

You can call the user defined functions in regular way, however it depends on what the function does. Sending an email should work OK but creating HTML output may not. Because we utilize templates your function would need to place all HTML output in one variable and then you can assign that variable (or function output) to the Label.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Anothersledhead


Posts: 44
Posted: 05/28/2004, 3:29 PM

That makes sense as to why it was rendering the HTML at the top of the page. Things make sense now.

Thanks
View profile  Send private message
feha


Posts: 712
Posted: 06/03/2004, 1:25 PM

do not output HTML put it in the variable and return from the function...
than create a label where you want to show it on an BeforeShowEvent ...
Set returned variable to the label ...
make sure your label is set to HTML ...
_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
feha


Posts: 712
Posted: 06/03/2004, 1:30 PM

Check here:
http://ccs.ath.cx/~ccs/kb.php?language_id=7&category_id=65&event_id=88
_________________
Regards
feha

www.vision.to
feedpixel.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.