thanks, but I not pass 0,
Actually you are passing in 0...see below.
the code is:
//Function search string in description of DB (internal, not GlobalFind )
FilterStock(char * SearchString)
{
char theSearcht[16]={'\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0','\0'};
As Matt noted in his response, this isn't necessary.
int i=0, j=0; UInt32 posP; UInt16 length; Int16 tam; MemHandle myRecord; Boolean match=false; ListType *pList = (ListType*) GetObjectPtr(ConsulStockList); tam=DmNumRecordsInCategory(ProductosDB,dmAllCategories); tamliststkfil=0;
StrCopy(theSearch, SearchString); //In the api doc say "The same text as in inSource ...", its ok?
TxtGluePrepFindString ( SearchString, theSearch, StrLen(theSearch) );
Since you've set theSearch[0] to 0, StrLen(theSearch) is going to return 0.
I believe you want:
TxtGluePrepFindString(SearchString, theSearch, sizeof(theSearch));
-- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
