all groups > vj# > may 2005 >
You're in the

vj#

group:

How to handle errors?


How to handle errors? Christian-Josef Schrattenthaler
5/24/2005 12:00:00 AM
vj#: Hi!

Can I use a method from a method?

Example: I have "void PageLoad" and "void TestForFiles" and "void
SQLThings".

PageLoad must call TestForFiles, if everything is OK go to step1 else
go to step2.

Greetings,
christian.
Re: How to handle errors? Christian-Josef Schrattenthaler
5/24/2005 12:00:00 AM
Hi Roger!

Thank you, I found it allready in my Java-Book. This is the first time, that
a code from the Java-Books works without any changes in my ASP.NET file.

But here is one question open: Do I need the parameters public and staic?

Kind greetings,
christian.

RE: How to handle errors? Roger Garrett
5/24/2005 9:51:07 AM
If you are asking whether you can invoke (call, execute) one method from
within the code of another method, the answer is definitely yes.

For example:

void TestForFiles()
{
--- any kind of code ---
PageLoad(); // call to the PageLoad method
--- more code
}

void PageLoad()
{
-- code for the PageLoad() method
}



AddThis Social Bookmark Button