<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>ISQUERY</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">ISQUERY</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Determines whether <i>value </i>is a query.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
True, if<i> value </i>is a query.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
Decision functions, Query functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>IsQuery(value)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
QueryAddRow
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;!--- Shows an example of IsQuery and IsSimpleValue ---&gt;
&lt;h3&gt;IsQuery Example&lt;/h3&gt;
&lt;!--- define a variable called &quot;GetEmployees&quot; ---&gt;
&lt;CFPARAM name = &quot;GetEmployees&quot; DEFAULT = &quot;#Now()#&quot;&gt;

&lt;p&gt;Before the query is run, the value of GetEmployees is
&lt;cfoutput&gt;#GetEmployees#&lt;/cfoutput&gt;

&lt;cfif IsSimpleValue(GetEmployees)&gt;
   &lt;p&gt;GetEmployees is currently a simple value
&lt;/cfif&gt;
&lt;!--- make a query on the snippets datasource ---&gt;
&lt;cfquery name = &quot;GetEmployees&quot; datasource = &quot;cfdocexamples&quot;&gt;
SELECT *
FROM employees
&lt;/cfquery&gt; 

&lt;p&gt;After the query is run, GetEmployees contains a number of rows 
that look like this (display limited to three rows):
&lt;cfoutput QUERY = &quot;GetEmployees&quot; MaxRows = &quot;3&quot;&gt;
&lt;pre&gt;#Emp_ID# #FirstName# #LastName#&lt;/pre&gt;
&lt;/cfoutput&gt;
&lt;cfif IsQuery(GetEmployees)&gt;
   GetEmployees is no longer a simple value, but the name of a query
&lt;/cfif&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="VALUE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VALUE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Query variable</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
