I agree with Kent. Here is my code:
*set up comport
lncomport = (defaali.mcomport)
lnbaud = (defaali.mbaud)
lnbits = (defaali.mbits)
lnparity = (defaali.mparity)
lnstopbits = (defaali.mstopbits)
ret = w8250_init(nPortID, lncomport, lnbaud, lnbits, lnparity,
lnstopbits, 2048, 128)
If ret < 0
Wait wind 'Comport could not be initialized ' + str(ret)
*reset the modem
Do cleanup
Cancel
Endif
where the default table defaali.mcomport = 2 (numeric value)
On Thu, Dec 22, 2011 at 8:31 AM, Kent Belan <[email protected]> wrote:
> Hello William,
>
> Just checked my program and I am passing a parameter, something like this
>
> Do case
> case lcPort = 'COM1'
> lnPort = 1
> case lcPort = 'COM2'
> lnPort = 2
> case lcPort = 'COM3'
> lnPort = 3
> case lcPort = 'COM4'
> lnPort = 4
> endcase
>
> lnRc = w8250_init(lnPortID, lnPort, lnBaud, lnDataBits, lnParity,
> lnStopBits, lnRXBuffSize, lnTXBuffSize)
>
> HTH,
> Kent
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/CAB4ymPAfFXXKv5RRgZ023_PwnHWqNza0RDQy=hq-p_ukoez...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.