Subject |
Re: Does dbase work with pole display |
From |
Mervyn Bick <invalid@invalid.invald> |
Date |
Thu, 10 Oct 2019 11:31:43 +0200 |
Newsgroups |
dbase.getting-started |
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.
|
|