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

Home » Public Forums » archive » Re: Passing zero as a Parameter/ NOT KEYWORD_SET
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: Passing zero as a Parameter/ NOT KEYWORD_SET [message #16081 is a reply to message #16071] Tue, 29 June 1999 00:00 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="1.7 �bungsaufgaben">
<meta name="keywords" content="idl_kurs_doc">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="GENERATOR" content="Mozilla/4.5 [en] (WinNT; I) [Netscape]">
<title>FZJ--BHB-007: 1.7 &Uuml;bungsaufgaben</title>
<!--Converted with LaTeX2HTML 97.1 (release) (July 13th, 1997)
by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippman, Marek Rouchal, Martin Wilck and others -->
<link REL="STYLESHEET" HREF="idl_kurs_doc.css">
<link REL="previous" HREF="node30.html">
<link REL="up" HREF="node2.html">
<link REL="next" HREF="node33.html">
</head>
<body bgcolor="#FFFFFF">
&nbsp;
<h1>
<a NAME="SECTION00270000000000000000"></a>1.7 TRAINING</h1>

<ul>
<li>
Look carefully at the given functions:</li>

<ul>&nbsp;
<table BORDER WIDTH="80%" BGCOLOR="#FFFFAA" >
<tr>
<td>
<pre>FUNCTION test1,minimum=min_val

&nbsp;&nbsp;&nbsp; IF KEYWORD_SET(min_val) THEN RETURN,1 ELSE RETURN,0

&nbsp; END

&nbsp;&nbsp;</pre>
</td>
</tr>

<caption ALIGN=BOTTOM><b>Example 1.21:</b> test1</caption>
</table>

<table BORDER WIDTH="80%" BGCOLOR="#FFFFAA" >
<tr>
<td>
<pre>FUNCTION test2,minimum=min_val

&nbsp;&nbsp;&nbsp; IF ARG_PRESENT(min_val) THEN RETURN,1 ELSE RETURN,0

&nbsp; END

&nbsp;&nbsp;</pre>
</td>
</tr>

<caption ALIGN=BOTTOM><b>Example 1.22:</b> test2</caption>
</table>

<table BORDER WIDTH="80%" BGCOLOR="#FFFFAA" >
<tr>
<td>
<pre>FUNCTION test3,minimum=min_val

&nbsp;&nbsp;&nbsp; IF N_ELEMENTS(min_val) GT 0 THEN RETURN,1 ELSE RETURN,0

&nbsp; END

&nbsp;&nbsp;</pre>
</td>
</tr>

<caption ALIGN=BOTTOM><b>Example 1.23:</b> test3</caption>
</table>
</ul>

<p><br>Your results:
<br>&nbsp;
<table BORDER CELLPADDING=3 BGCOLOR="#FFFFAA" >
<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP>call:</td>

<td ALIGN=LEFT NOWRAP>test1</td>

<td ALIGN=LEFT NOWRAP>test2</td>

<td ALIGN=LEFT NOWRAP>test3</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>PRINT, testX( )</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>PRINT, testX(minimum=0)</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>PRINT, testX(minimum=10)</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>PRINT, testX(minimum=-10)</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>mv=0 &amp; PRINT, testX(minimum=mv)</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr VALIGN=TOP>
<td ALIGN=LEFT NOWRAP><tt>mv=10 &amp; PRINT, testX(minimum=mv)</tt></td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>

<td ALIGN=LEFT NOWRAP>&nbsp;</td>
</tr>

<tr>
<td><tt>PRINT, testX(minimum=mv)</tt></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;&nbsp;</td>
</tr>
</table>
</ul>

<center>
<address>
</address></center>

</body>
</html>
  • Attachment: node32.html
    (Size: 3.45KB, Downloaded 144 times)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Zero vector detection in IDL
Next Topic: Re: Extra space around widget windows....

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

Current Time: Wed Oct 08 17:33:25 PDT 2025

Total time taken to generate the page: 0.00471 seconds