John Farrar

I might like the functionality also... but note you say you don't expect the same functionality... then you say "It doesn't work as expected". The expectation is to run like ASP, that is where it came from. (Or VBScript) With that said... this is a cool concept... and I like your expectation. If I get a window and someone else doesn't do it first... I will try to package the concept up into a CFC to use.

My Concept...
objQuery
att: each field in query
att: recordCount
att: currentRow
method: next, previous... etc.

Write up all the specs for me... and I will put one together. The advantage to doing it in a CFC is you can pass the recordset in... CF can dynamically move to any record, forward, back... etc. A custom tag would not do this for you... tags can't be instantiated and lack persistance. UDF's also lack persistance. Therefore a CFC seems the way to go... unless someone has a reason to use another tool. (And please don't say CF5!)

John Farrar

Murat Demirci wrote:
It is difficult as 
you said to 
program CF like ASP.
    

I don't try to get same functionality of ASP using CF. I'd just wanted to
develop a custom tag that iterates on a query object like <cftable> or
<cfoutput query="">. This doesn't mean CF should implement next(),
previous() and other methods for query objects, for example query.currentRow
could be writeable:

<cfquery name="myQuery" ..>
Select ...
</cfquery>

<cfset myQuery.currentRow = 2 />
<cfoutput>#myQuery.field1#</cfoutput>

However CF doesn't allow this currently (it doesn't work as expected).
Murat.

---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to