comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Stop and return to caller
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Stop and return to caller [message #71804] Wed, 21 July 2010 05:03
Deckard++; is currently offline  Deckard++;
Messages: 11
Registered: March 2010
Junior Member
Hi,

I have a small question for which I haven't found a pleasant solution.
I am looking for a way to stop the execution of a procedure and return
to the level of the programme that called that procedure. Currently I
have something like this:

pro my_pro,a,b
on_error,2

c = a + b
if (c lt 0) then message,'c < 0! Stopping...'
end

It works, but the main problem is that since it is generated as an
error, it outputs all the calling stack with line numbers and so on. I
would like to do something cleaner, like for instance the "stop"
procedure which outputs only the current position in the execution.

Thanks a lot in advance,

-- Arthur;
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: HDF_SD_GETACCESS: No content in variable, error
Next Topic: Read these data in structure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:22:03 PDT 2025

Total time taken to generate the page: 0.00402 seconds