This is something that I serious MUST be overlooking.
Eyes are bloodshot right now from coding.
 
 
I have a 2 dimential array such as follows:
 
myArray[1][1] = 'JOHN'
myArray[1][2] = 'DOE'
myArray[1][3] = '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'> 
myArray[1][4] = 'TEXAS'
myArray[1][5] = 'USA'
 
myArray[2][1] = 'BARRY'
myArray[2][2] = 'JOHNSON'
myArray[2][3] = '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'> 
myArray[2][4] = 'CALIFORNIA'
myArray[2][5] = 'USA'
 
I need to SORT the array before outputting the data.
Sounds simple right???
 
It should come out:
    BARRY JOHNSON   
    JOHN DOE
 
When using the command:
<cfset sortit = ArraySort(myarray,"textnocase")>
 
Question #1:
    When using the ArraySort, it should evaluate all the dimensions with in
the array for sorting, correct?
    OR does it only sort on ONE dimension?
 
Question #2:
    When using the command above, why do I get the following error:

Error Occurred While Processing Request





Error Diagnostic Information



An error occurred while evaluating the expression: 



 sortit = ArraySort(myarray,"textnocase")

Error near line 245, column 8.

The expression has requested a variable or an intermediate expression result
as a simple value, however, the result cannot be converted to a simple
value. Simple values are strings, numbers, boolean values, and date/time
values. Queries, arrays, and COM objects are examples of complex values. 

The most likely cause of the error is that you are trying to use a complex
value as a simple one. For example, you may be trying to use a query
variable in a <CFIF> tag. This was possible under Cold Fusion 2.0 but is an
error under later versions.

 

Randy Adkins 
Tech Lead - Novient 
SRA International 
[EMAIL PROTECTED] 
(703) 803-1677 

 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to