HighTechTalks DotNet Forums  

How to handle errors?

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss How to handle errors? in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Christian-Josef Schrattenthaler
 
Posts: n/a

Default How to handle errors? - 05-24-2005 , 06:20 AM






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.


Reply With Quote
  #2  
Old   
Roger Garrett
 
Posts: n/a

Default RE: How to handle errors? - 05-24-2005 , 12:51 PM






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
}





Reply With Quote
  #3  
Old   
Christian-Josef Schrattenthaler
 
Posts: n/a

Default Re: How to handle errors? - 05-24-2005 , 03:06 PM



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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.