I don’t understand why DataGrid.selectedIndices returns an array of Strings. I thought that indices were generally integers. (For example, Array.indexOf returns an int.)

Can anyone explain why the selected index of a DataGrid is a String?

When “dgTest” is a DataGrid instance, the following code generates a compiler error:

 

 

var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}

 

The error that the compiler returns is as follows:

“Implicit coercion of a value of type String to an unrelated type int.  “

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to