yeah that seems to be the consensus..
so maybe its something wrong with the parameters themselves im feeding to
DmWriteCheck?
its just that it works fine for form selections that fit onto the
screen...no problem ever happens there!
its only when the selection does not fit on the screen and runs off the
side. 
in general, IS THERE ANYTHING SPECIAL THAT HAPPENS AT THE END OF THE
SCREEN OF THE PALM...any speical character that is or isnt inserted to
let the program know that there is more text if you scroll over or
something/anything that could cause problem when we are trying to read
the length of a selection that spans more than the screen width? 
im just fumbling in the dark/grasping at straws/taking a shot in the dark
(whatever the expression is..) ;P


thanks in advance..

leslie


On Wed, 26 Dec 2001, Kevin OKeefe wrote:

> You have to worry about basically the same thing - make sure that the record you are 
>writing to is big enough to hold the data you're writing to it.  Your code looks ok 
>in that respect - so I'm not sure what could be going on there...
> 
> -----Original Message-----
> From: l e s s [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 26, 2001 11:55 AM
> To: Palm Developer Forum
> Subject: RE: DmWrite or DmWriteCheck? Off of the screen text?
> 
> 
> 
> oh! sorry! ignore my last post!!!
> that wasnt the function that was giving me problems...
> i dont use DmStrCopy in the function that is causing problems...just
> DmWrite (see below)
> 
> is there anything "typical" i have to worry about when doing it this way?
> 
> thanks for any insight you can provide..
> 
> ---------------------
> 
> void insertRecResultsDb(VoidHand ResultsHand,Results* ResultsStruct)
> {
>       UInt length = 0;
>       CharPtr s;
>       UInt offset = 0;
> 
>       length = sizeof(ResultsStruct->ResultID) +
> sizeof(ResultsStruct->CurrentRec);
> 
>       if(MemHandleResize(ResultsHand,length) == 0)
>       {
>               s = MemHandleLock(ResultsHand);
>               offset = 0;
> 
>               DmWrite(s,
> offset,&ResultsStruct->ResultID,sizeof(ResultsStruct->ResultID));
>               offset += sizeof(ResultsStruct->ResultiD);
>               DmWrite(s,
> offset,&ResultsStruct->CurrentRec,sizeof(ResultsStruct->CurrentRec));
> 
>               MemHandleUnlock(ResultsHand);
>       }
> }
> 


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