in my vfp application i use the mscomm to read from com1 values my scale sends.
how to use in lianja to read on com1 ?
in my vfp application i use the mscomm to read from com1 values my scale sends.
how to use in lianja to read on com1 ?
Hi Leon,
How are you reading com1 in VFP?
If you are using the Microsoft activex communication actions control in VFP you will be able to use that in Lianja.
Last edited by barrymavin; 2021-11-04 at 19:06.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Hi Barry,
in VFP i use the mscomm32.ocx as ole control on a form.
i open a port by: thisform.olecontrol1.portopen = .t.
i command to send info by sending command to the scale thisform.olecontrol1.output="S"+CHR(13)+CHR(10)
i read out the input (is weighing info from the scale) ctext=SUBSTR(RTRIM(thisform.olecontrol1.input),3,1 4)
i have now idea how to use this in lianja.
Hi Leon
See this doc article
https://www.lianja.com/doc/index.php...nja_on_Windows
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
is there some sample code?
really have now idea how to code
Hi Leon,
see old VFP doc
https://docs.microsoft.com/en-us/pre...using-mscomm32
Code:PUBLIC TestCom TestCom = createObject("MSCOMMLib.MSComm") Testcom.CommPort = 2 && Use Comm2, The second Serial Port. Testcom.Settings = "14400,N,8,1" && 14.4 Kbaud, No Parity, 8 data Bits, 1 Stop Bit Testcom.PortOpen = .T. Testcom.Output = "ATDT555-1234" + chr(13) && Dialing the number * The chr(13) is needed to complete the modem command sequence Testcom.PortOpen = .F.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks