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

Home » Public Forums » archive » Re: Use of STOP inside an IF statement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Use of STOP inside an IF statement [message #60861] Wed, 18 June 2008 11:19 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Jun 17, 1:46 pm, Benjamin.R.Ev...@gmail.com wrote:
> I currently have:
>
> spawn, 'mkdir '+output_dir, message
> IF ( string(message) ) then begin
> print, message
> stop
> ENDIF
>
> But the stop command will not work inside the IF statment but it will
> work
> outside the IF statment. I need it to be inside the IF statement so
> that the program
> stops if a message is printed out.
>
> Any help would be appreciated.
>
> Ben

Why don't you just use the MESSAGE procedure, since it is virtually
the same thing as a PRINT followed by a STOP?

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to print from an iTool? In color.
Next Topic: ASCII TEMPLATE (read the 31 column of ascii file only)

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

Current Time: Sat Oct 11 22:22:38 PDT 2025

Total time taken to generate the page: 0.39836 seconds