473,810 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exiting Functions

Is there any way to stop execution of a function without killing the whole
script? Is there a command that will jump out of a function back to the
main script, or calling function?
Jul 16 '05 #1
11 3157

On 16-Jul-2003, "Robbie Beane" <be***@poser.us > wrote:
Is there any way to stop execution of a function without killing the whole
script? Is there a command that will jump out of a function back to the
main script, or calling function?


Please learn to cross-post.

http://www.php.net/manual/en/function.return.php

--
Tom Thackrey
www.creative-light.com
Jul 16 '05 #2
*sigh* I feel pretty dumb for not thinking to try that.

Anyway, what do you mean "learn to cross-post"?

"Tom Thackrey" <to***@creati ve-light.com> wrote in message
news:qo******** ***********@new ssvr14.news.pro digy.com...

On 16-Jul-2003, "Robbie Beane" <be***@poser.us > wrote:
Is there any way to stop execution of a function without killing the whole script? Is there a command that will jump out of a function back to the
main script, or calling function?


Please learn to cross-post.

http://www.php.net/manual/en/function.return.php

--
Tom Thackrey
www.creative-light.com

Jul 16 '05 #3
Robbie Beane wrote:
*sigh* I feel pretty dumb for not thinking to try that.

Anyway, what do you mean "learn to cross-post"?

"Tom Thackrey" <to***@creati ve-light.com> wrote in message
news:qo******** ***********@new ssvr14.news.pro digy.com...
On 16-Jul-2003, "Robbie Beane" <be***@poser.us > wrote:

Is there any way to stop execution of a function without killing the
whole
script? Is there a command that will jump out of a function back to the
main script, or calling function?


Please learn to cross-post.

http://www.php.net/manual/en/function.return.php

--
Tom Thackrey
www.creative-light.com


Cross-post: put multiple newsgroups in the To: line rather than sending
the same message multiple times to different groups (Multi-posting)

Jul 16 '05 #4
Okay. What is the difference in effect?
Cross-post: put multiple newsgroups in the To: line rather than sending
the same message multiple times to different groups (Multi-posting)

Jul 16 '05 #5
On Wed, 16 Jul 2003 21:34:52 -0400, Joshua Ghiloni hath writ:
Robbie Beane wrote:
*sigh* I feel pretty dumb for not thinking to try that.

Anyway, what do you mean "learn to cross-post"?

"Tom Thackrey" <to***@creati ve-light.com> wrote in message
news:qo******** ***********@new ssvr14.news.pro digy.com...
On 16-Jul-2003, "Robbie Beane" <be***@poser.us > wrote:

Is there any way to stop execution of a function without killing whole
script? Is there a command that will jump out of a function back to the
main script, or calling function?

Please learn to cross-post.

http://www.php.net/manual/en/function.return.php

--
Tom Thackrey

Cross-post: put multiple newsgroups in the To: line rather than sending
the same message multiple times to different groups (Multi-posting)


Asw well, please learn not to Top-post.

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | OS/2
| Gunnison, Colorado | @ | Jonesy | linux __
| 7,703' -- 2,345m | config.com | DM68mn SK
Jul 16 '05 #6
Robbie Beane wrote:
Okay. What is the difference in effect?

Cross-post: put multiple newsgroups in the To: line rather than sending
the same message multiple times to different groups (Multi-posting)



The difference is simple. I'm assuming you posted to alt.?.php and
comp.lang.php. None of these responses are showing up in the other
newsgroup. If you had cross-posted, the responses would have showed up
in all newsgroups, thus helping the denizens of all the newsgroups.

Jul 16 '05 #7
Thanks. That sounds very reasonable.
"Joshua Ghiloni" <jd***@SPAM.ME. AND.DIE.cwru.ed u> wrote in message
news:bf******** **@eeyore.INS.c wru.edu...
Robbie Beane wrote:
Okay. What is the difference in effect?

Cross-post: put multiple newsgroups in the To: line rather than sending
the same message multiple times to different groups (Multi-posting)



The difference is simple. I'm assuming you posted to alt.?.php and
comp.lang.php. None of these responses are showing up in the other
newsgroup. If you had cross-posted, the responses would have showed up
in all newsgroups, thus helping the denizens of all the newsgroups.

Jul 16 '05 #8
Jeez. I didn't realize how much of a newsgroup scrub I was.
Okay, so what is top-posting...?

Asw well, please learn not to Top-post.

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | OS/2
| Gunnison, Colorado | @ | Jonesy | linux __
| 7,703' -- 2,345m | config.com | DM68mn SK

Jul 16 '05 #9
Robbie Beane wrote:
Jeez. I didn't realize how much of a newsgroup scrub I was.
Okay, so what is top-posting...?

Asw well, please learn not to Top-post.

Jonesy


Top posting is what you just did - posting at the top of the message. Most
peopleT consider it proper to post your reply at the bottom, so that people
can read what you are replying to first.
Jul 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3047
by: Hal Vaughan | last post by:
I have a class that is sometimes called from the command line and sometimes from another class. When the user clicks "Quit" on the panel it opens, if it is running from the command line, it quits. The problem is that I need a way to terminate the class and the object without using quit, so it doesn't kill other classes. The QUIT button calls an actionListener, so if I have "return" in the listener, it closes the window, but the class is...
5
1626
by: Tim Clacy | last post by:
When exiting function scope, which occurs first: a) destruction of local objects b) copy of value for return From disassembly of a debug target, it looks like the return value is copied before local objects are destroyed. Is this standard behaviour? Can the same behaviour be expected for any optimisation level? As an example, in the function 'int A::fn()' here, is 'b' destroyed before 'i' is copied or vice-versa?:
39
2643
by: vineoff | last post by:
If I'm having nested loops like: for (...) for (..) for (...) { /* exit here */ } and I need to exit from there ^ . Is it better to use exceptions or goto or some other method?
22
6002
by: L. Westmeier | last post by:
Is there a way to have to exiting point in a void function? I don't want to exit the program but just this function. Any answers appreciated. L. Westmeier
8
2601
by: Andrew Warren | last post by:
I'm trying to exit a Windows Forms application while in the form's constructor (after InitializeComponent() has been called) and am finding that calling Application.Exit () still leaves the form displayed and running. Trying to force the form to close with this.Close() does not work either. Any suggestions? Thanks.
6
3686
by: GL | last post by:
I am getting a crash while exiting from my application. Pl find the Stack Trace of the crash: System.Windows.Forms.Application.ThreadWindows.ThreadWindows(System.Windows.Forms.Control parent = <undefined value>, bool onlyWinForms = true) + 0x8c bytes system.windows.forms.dll!ThreadContext.DisposeThreadWindows() + 0x54 bytes system.windows.forms.dll!ThreadContext.Dispose() + 0xa1 bytes...
3
1517
by: Bonj | last post by:
When trying to debug an ASP.NET project by placing a breakpoint in one of the functions in the codebehind, VS correctly stops at the breakpoint, and I can step through. But soon after, the process stops dead and can't be stepped through anymore (even though there is no error) - I'm guessing that the aspnet_wp.exe is detecting that if it's inactive for a period of n seconds or so, then it exits until it gets another request. Is there...
6
15036
by: Alan Isaac | last post by:
I'm fairly new to Python and I've lately been running a script at the interpreter while working on it. Sometimes I only want to run the first quarter or half etc. What is the "good" way to do this? Possible ugly hacks include: - stick an undefined name at the desired stop point - comment out the last half I do not like these and assume that I have overlooked the obvious.
23
5720
by: Boltar | last post by:
Hi I'm writing a threading class using posix threads on unix with each thread being run by an object instance. One thing I'm not sure about is , if I do the following: myclass::~myclass() { : : do stuff
4
1251
by: Spiros Bousbouras | last post by:
Assume you have a library which contains the functions foo1, ... , foon which the outside world knows about and may call and the functions bar1, ... , barm which the outside world doesn't know about. The library code does not call anywhere the foo functions but any of the foo or bar functions may call any bar function. So let's say that a bar function (or it could be one of the foo functions) detects an error serious enough that...
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.