rguevara wrote:

thanks, but I not pass 0, 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'};


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) );

I think it means what's passed back to theSearch will be the same, not what you have to pass in.


does this work?
TxtGluePrepFindString( SearchString, theSearch, sizeof(theSearch)-1 );

if not, try setting theSearch to be bigger. And I don't think you need to manually initialize every element in the array.

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to