On Tue, 20 Jul 2004 16:27:38 -0400, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Is there a way to access query results by referencing the record's row
> number?  I've tried
>
> foo[1].Title
>
> to get the Title field in row 1 of my query named foo, but I get this error
>
> [Table (rows 1 columns TITLE): [TITLE: [EMAIL PROTECTED] ]
> is not indexable by 1
>
> I know I can loop through the query results with <cfloop> and set a start
> and an end record, and I can make that work for what I'm doing, but it would
> be a pain.
>

I believe you can just do foo.Title[1] to get the current row.

Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to