MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 458

Cfml language reference
Table of Contents

Advertisement

434
</select>
</select>
<INPUT TYPE="Submit" NAME="Submit" VALUE="Search Employee List">
</FORM>
<!--- wait to have a string for searching defined --->
<CFIF IsDefined("FORM.Submit") and IsDefined("FORM.departmentName")>
<CFSET myList = ValueList(SearchByDepartment.Department)>
<CFSET numberInDepartment = ListValueCountNoCase(myList,
FORM.departmentName)>
<CFIF numberInDepartment is 0>
CFOUTPUT></H3>
<CFELSEIf numberInDepartment is 1>
<CFELSE>
#FORM.departmentName#.
</CFIF>
</CFIF>
</BODY>
</HTML>
</OPTION>
<H3>There are no employees in <CFOUTPUT>#FORM.departmentName#</
<CFOUTPUT>
<P>There is only one person in #FORM.departmentName#.
</CFOUTPUT>
<CFOUTPUT>
<P>There are #numberInDepartment# people in
</CFOUTPUT>
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents