Subject Re: Does dbase work with pole display
From Emeka <megameks@yahoo.com>
Date Thu, 10 Oct 2019 09:33:42 -0400
Newsgroups dbase.getting-started

Mervyn, Thank you very much for the time put on this. God bless you. You have put me on the right note.


Emeka


Mervyn Bick Wrote:

> On 2019-10-10 9:09 AM, Emeka wrote:
> > Thank you Mervyn,
> >
> > This worked well without the length errors but the thing now is data from the two lines appeared on one line. Something like no carriage return.
> >
> > Again which command can I use to clear data from the pole. Something like putting finishing touches to this code.
>
> This is something you are going to have to experiment with yourself.  I
> don't have serial port and an identical display to play with so I can't
> see the result of sending controls to the display.
>
> Try adding a  carriage return and line feed to each line and see what
> that does.
>
>
> oS.writeString(form.entryfield1.value+chr(13)+chr(10))
> oS.writeString(form.entryfield2.value+chr(13)+chr(10))
>
> Your supplier should have given you some documentation, apart from some
> rudimentary Visual Basic code, on what the display can, and can't, do.
>
> All the control characters that the display apparently reacts to were
> listed in my first program.  I  suggest you set up a separate pushbutton
> to submit each one to the display and see what happens for each.  the
> first one to try is reset and see if that clears the display.
>
>    function PUSHBUTTON2_onClick()
>       oS = form.serialcomm1
>       oS.openPort('COM1',9600,N,8,1)
>       oS.writeString(chr(31))
>       oS.closePort()
>       return
>
> Mervyn.
>
>