Subject Re: Does dbase work with pole display
From Mervyn Bick <invalid@invalid.invald>
Date Tue, 8 Oct 2019 09:36:37 +0200
Newsgroups dbase.getting-started

On 2019-10-08 12:12 AM, Emeka wrote:
> Thank you Mervyn,
>
> When I clicked the Display text button, It displayed errot of 'variable undefined' LENGTH in line 612 and 613 and 'variable undefined' SENDSTR in line 616 of serialcomm.cc. Then when I click ignore severally, it will display my text on the pole display meaning its opening the port. Please how do I correct this error and continue.


The good news is that your computer is at least talking to the pole
display.  Now all it needs to do is to talk sense. :-)

I'm afraid it's probably nearly 20 years since I last used
serialComm.cc. My computer doesn't have a serial port so the little test
form I posted previously was completely untested.  Even if I had a
serial port installed it would be difficult to sort out problems as I
don't have a similar pole display to play with.

serialComm.cc may not accept single characters as a string so my attempt
to send reset and cursorOff messages may be causing the problem.  On the
other hand, I don't recall problems sending single commands to a modem
but that was a long time ago.  Back in the days when I was working I
also had access to a Data Analyser which was a great help in fixing
problems.

I suggest you start by replacing the pushbutton1_onClick() event handler
with the following.


    function PUSHBUTTON1_onClick()
       oS = form.serialcomm1
       oS.openPort('COM1',9600,'n',8,1)
       oS.writeString(form.entryfield1.value)
       oS.writeString(form.entryfield2.value)
       oS.closePort()

If this works type two new messages into the entryfields and see what
happens when you click the pushbuttton.

Mervyn.