# TCL_SearchPicturePathByIndex

## Definition

  `#include <twl/tcl.h>`

      TCLResult TCL_SearchPicturePathByIndex( const TCLAccessor* pAccessor ,
                                              char* path ,
                                              size_t len ,
                                              const TCLSearchObject* pSearchObj ,
                                              int index );

## Arguments

pAccessor | Accessor
path | Buffer that stores the path
len | Path length
pSearchObj | Search object
index | Index of photo information to get from photos that match the search conditions

## Return Values

Processing result

## Description

Gets the storage paths to photos that match the search criteria in the order specified by index.

If the returned value is not `TCL_RESULT_SUCCESS`, the path value is undefined.

Behavior is undefined if a function such as `TCL_EncodeAndWritePicture`, `TCL_SortTable`, or `TCL_DeletePicture` changes the number or order of photos being managed during a search.

The accessor must be initialized by the `TCL_LoadTable` or `TCL_CreateTable` function.

## See Also

`TCL_InitSearchObject`

## Revision History

2009/03/23 Added a condition when behavior would be undefined.
2009/03/04 Fixed typos.
2008/10/07 Initial version.

CONFIDENTIAL