hmm youre right. actually this part is saving the results of the search
done with the criteria to the db record.
now i am even more confused as to whats going on...i know it def breaks
when the selection is too long because the palm breaks at that point...but
this part below is the only part that is using DmWrite to write a record. 

!!! aagh !!!

btw..ive posted before about gettng the debugger working. im using mw
codewarrior (4.0.1). ive tried everything ppl've suggested and it just
doesnt go anywhere. so hopeless!


On Thu, 27 Dec 2001, Max Bian wrote:

> So, where is the text you select from a field in a form?  Isn't that text you
> want to store in database as record?
> 
> Max
> --- l e s s <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > ResultID and CurrentRec are both ULong
> > sizeof() is correct isnt it..?
> > 
> > leslie
> > 
> > 
> > On Thu, 27 Dec 2001, Joe Programmer wrote:
> > 
> > > --- l e s s  wrote:
> > > > 
> > > > 
> > > >  ResultsStruct.ResultID = uIndex;
> > > >  ResultsStruct.CurrentRec = 0;
> > > > 
> > > >  numRecordsResult = DmNumRecords(dbRefResults);
> > > >  lengthRDB = sizeof(ResultsStruct.ResultID) +
> > > >    sizeof(ResultsStruct.CurrentRec) + 1;
> > > > 
> > > >  ResultsHand = DmNewRecord(dbRefResults,
> > > >    &numRecordsResult, lengthRDB);
> > > 
> > > What data type is ResultsStruct.CurrentRec ?  If it is
> > > something you are getting from a field on a form, it
> > > must be text.  If that is so, sizeof() is the wrong
> > > length.  Instead, you need to use 
> > > 
> > >   StrLen(ResultsStruct.CurrentRec) + 1
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send your FREE holiday greetings online!
> > > http://greetings.yahoo.com
> > > 
> > > -- 
> > > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/tech/support/forums/
> > > 
> > 
> > 
> > 
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe, please
> > see http://www.palmos.com/dev/tech/support/forums/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/
> 




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

Reply via email to