Ok.  Thank you for that tip.  I will try to do it that way instead.
Andrew
W.F. Ableson <[EMAIL PROTECTED]> wrote in message
news:19137@palm-dev-forum...
>
> To do the open,send,close in one motion, you should use SerSendWait
instead
> of SerSend.
>
> ----- Original Message -----
> From: Andrew Lathrop <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: Palm Developer Forum <[EMAIL PROTECTED]>
> Sent: Friday, July 28, 2000 4:46 PM
> Subject: Re: Problem with SerSend
>
>
> > I actually figured it out.  I guess i can't do all three steps, open,
> send,
> > then close right after each other.  Once i split them up, and had to
call
> > them seperately it worked.  But another question, does anyone know how
to
> > get the number of Char's in a string other thant StrLen?  I have to step
> > through the string checkinf the char and the refeence says it won't work
> > correctly with all devices since it returns the number of bytes.  Thanks
> > again
> > Andrew
> > W.F. Ableson <[EMAIL PROTECTED]> wrote in message
> > news:19135@palm-dev-forum...
> > >
> >
> > > Hi Andrew,
> > >
> > > Can you verify that the text has been pulled out properly (ie, isolate
a
> > > form field problem vs. Serial problem).
> > >
> > > Frank Ableson
> > >
> > > ----- Original Message -----
> > > From: Andrew Lathrop <[EMAIL PROTECTED]>
> > > Newsgroups: palm-dev-forum
> > > To: Palm Developer Forum <[EMAIL PROTECTED]>
> > > Sent: Friday, July 28, 2000 4:23 PM
> > > Subject: Problem with SerSend
> > >
> > >
> > > > I'm using the following code snippet to send data over the serial
> port.
> > > It
> > > > came from Bachmann's Palm Programming book.  The compiled PRC that
> come
> > > > withe the book works fne, but when i use the code from the book, it
> > > doesn't
> > > > work.  Instead of printing out the same thing that is in the field,
i
> > only
> > > > get the first letter.  I am using the palm in the cradle, and am
> sending
> > > the
> > > > data to HyperTerminal.  Any suggestions?  Thanks
> > > > Andrew
> > > >    // get message from our field
> > > >    wIDField = FrmGetObjectIndex(formP,MainMessageField);
> > > >    pCtlField = (FieldPtr) FrmGetObjectPtr(formP,wIDField);
> > > >    hText = FldGetTextHandle (pCtlField);
> > > >    pText = (CharPtr) MemHandleLock(hText);
> > > >
> > > >
> > > >    // let's send our message!
> > > >    SerSend(SerialRefNum,(unsigned char *) pText,StrLen( pText ),&e);
> > > >
> > > >
> > > >
> > > > --
> > > > 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/
>
>
>



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