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/

Reply via email to