Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to call multiple properties in CFScript

Status
Not open for further replies.

danielhai

Programmer
Oct 23, 2001
25
0
0
US
hi, i have a script that calls a recordset, and I want to print the recordset value, but it won't allow me to call multiple properties in one go, I have to set a variable, then set another, to get to the third level properties. Is there a way to do this is CF? For example, I want to call:

Recordset.Fields.Item("Row1").Value in one go, rather then having to define:

Fields = oRs.Fields;
FieldValue = Fields.item("Row1");
WriteOutPut(FieldValue.value);

Is there a way to do this in CF? Also, is there a way to call a recordset without the header name? Like Fields.Item(0).Value?

thanks,
dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top