macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Cffunction and how to ? can someone explain the code to me line by l

Subject: Re: Cffunction and how to ? can someone explain the code to me line by line
From: "silviasalsa"
Date: Thu, 23 Aug 2007 16:09:55 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
thanks

 but line by line

 what is 
 if(ArrayLen(Arguments) GTE 2) qualifier = Arguments[2];
   if(ArrayLen(Arguments) GTE 3 AND Len(Arguments[3])) columns = Arguments[3];
   returnValue[1] = ListQualify(columns, qualifier);
   ArrayResize(returnValue, query.recordcount + 1);
   columns = ListToArray(columns);
   for(i = 1; i LTE query.recordcount; i = i + 1)
   {
     rowValue = ArrayNew(1);
     ArrayResize(rowValue, ArrayLen(columns));
     for(j = 1; j LTE ArrayLen(columns); j = j + 1)
       rowValue[j] = qualifier & query[columns[j]][i] & qualifier;
     returnValue[i + 1] = ArrayToList(rowValue);
   }            
   returnValue = ArrayToList(returnValue, Chr(13));
   return returnValue;
 }

 thanks







<Prev in Thread] Current Thread [Next in Thread>