Page 1 of 1

get a seperate info in ListItem,

Posted: Fri Jan 15, 2010 7:43 am
by marcushe
sometimes ,listitem contains many seperate field, while we can only get the whole row of listitem, any way to get the seperate field??
As a listitem like :
Drive Letter Label Free Sace Size
D: Label1 2.2G 20G

i need each info to use.

Re: get a seperate info in ListItem,

Posted: Fri Jan 15, 2010 1:52 pm
by Support Team
Ranorex can only propagate the information it gets from the automated control. If a list view is in "Detail" style (with columns), Ranorex treats the list view as a Table and reports every column value as a separate cell. It seems that your list view does not correctly report the data as individual columns, but rather as a single column and just justifies the text by using tabs or spaces, thus visually creating columns.

If there is such a delimiter character (e.g. tab or space), you can use the String.Split method (see MSDN documentation) to split the text of the individual list items into separate fields for each column.

Regards,
Alex
Ranorex Support Team