analize this code; it is code that regulates how many records is shown on each page, and user can select next or previous 5 or 10 records:
<!--- Set the default startrow to 1 if a value was not passed. --->
<!--- Determine whether or not to show the previous or next links. --->
<cfparam name="startRow" default="1">
<!--- Set the value of endrow to the maxrows + startrow - 1 --->
<cfset endRow = startRow + onEachPage - 1>
<!--- If the end row is greater than the recordcount, determine how many records are left. --->
<cfif endRow GTE queryRecordCount>
<cfset endRow = queryRecordCount>
<cfset next = false>
<!--- Otherwaise, set Next to true and determine the next set of records. --->
<cfelse>
<cfset next = true>
<cfif endRow + onEachPage GT queryRecordCount>
<cfset nextNum = queryRecordCount - endRow>
<cfelse>
<cfset nextNum = onEachPage>
</cfif>
<cfset nextStart = endRow + 1>
</cfif>
<!--- If StartRow is 1, set Previous to false. --->
<cfif startRow IS 1>
<cfset previous = false>
<!--- Othewise, determine the previous set of records. --->
<cfelse>
<cfset previous = true>
<cfset previousStart = startRow - onEachPage>
</cfif> Sylvano
dsylvano@hotmail.com
"every and each day when I learn something new is a small victory..."