> > > void GetImportNames(void) {
> > > VoidHand RecHandle;
> > > Ptr RecPointer;
> > > int i, numRecs;
> > > char buffer[10];
> > >
> > > numRecs = DmNumRecords(ImportDB);
> > > StrIToA(buffer, numRecs);
> > > FrmCustomAlert(altNotice, buffer, "", "");
> > >
> > > for(i=0; i<numRecs; i++) { // get names
> > > RecHandle = DmQueryRecord(ImportDB, i);
> > > RecPointer = MemHandleLock(RecHandle);
> > > // Do something here
> > > // to access specific data
> > > MemPtrUnlock(RecPointer);
> > > }
> > > }
> > > --
MemPtrUnlock -- doesn't that take the handle, not the pointer to unlock
the mem?
Derek
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com