"Roberto Amorim" <[EMAIL PROTECTED]> wrote in message
news:9487@palm-dev-forum...
> HandleTemp=MemHandleNew(200);
> HandleOrder = DmQueryRecord(PVOrder, i);
You should check if HandleOrder is NULL here. This indicates that there is
no record at the given index. This might be the problem.
> RecOrder=MemHandleLock(HandleTemp);
> UnPackOrder(RecOrder, MemHandleLock(HandleOrder));
> if (StrCompare(RegCus->CdCus,RegOrder->CdCus))
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html