FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
How to handle errors?
HighTechTalks DotNet Forums
Dotnet
Dotnet VJSharp
How to handle errors?
Dotnet VJSharp
microsoft.public.dotnet.vjsharp
Discuss
How to handle errors?
in the
Dotnet VJSharp
forum.
Thread Tools
Search this Thread
Display Modes
#
1
Christian-Josef Schrattenthaler
Posts: n/a
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.
Christian-Josef Schrattenthaler
#
2
Roger Garrett
Posts: n/a
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
}
Roger Garrett
#
3
Christian-Josef Schrattenthaler
Posts: n/a
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.
Christian-Josef Schrattenthaler
«
Previous Thread
|
Next Thread
»
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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.
Contact Us
-
HighTechTalks DotNet Forums
-
Archive
-
Top