get a seperate info in ListItem,

Ask general questions here.
Posts: 112
Joined: Tue Apr 14, 2009 6:38 am

get a seperate info in ListItem,

Post by marcushe » Fri Jan 15, 2010 7:43 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11734
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: get a seperate info in ListItem,

Post by Support Team » Fri Jan 15, 2010 1:52 pm

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.

Ranorex Support Team