ZennoLab Assemblies Documentation
GetItem Method (IZennoList)
Example 

Type: System.String

The filter of range.

Type: System.Boolean

true if need to remove the item, otherwise and default false.

Gets the first item from the list satisfies the filter.
Syntax
string GetItem( 
   string filter,
   bool removeItem
)

Parameters

filter

Type: System.String

The filter of range.

removeItem

Type: System.Boolean

true if need to remove the item, otherwise and default false.

Return Value

Type: System.String

The requried item of list, or an empty string, if the item is not found.

Example
The following code example demonstrates the GetItem method.
// gets random item from several ranges of the list
return project.Lists["List 1"].GetItem("random1(1,12-15,35-end)");
// gets random item from several ranges of the list
return $project->Lists->get_Item("List 1")->GetItem("random1(1,12-15,35-end)");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoList Interface
IZennoList Members

Send Feedback