

Many functions missing in PowerBuilder can be found in the Windows API. Using the COMM-DRV libraries >I am sure others will join in with their favorites >HTH >John Vanleeuwe >.

Use the port as a file, open it as a file,read from, write to >3. I have implemented the CommX 1.1 ocx from >they have a free trial period. IO-Active X CTRL from has a very reasonable cost $75 I think and I've been using it for about 4 years to communicate from a PB program to OCR scanners from Scantron and ScanningSystems. > i just want to know if i can get data from serial port or usb, and how? Regards 'Xiaotao, Lu' escribi en el mensaje > hi,all > i know powerbuilder is powerful in database development.

You then can call its methods and use its properties. Once you install it in your machine, you can use it from PB by declaring an OLE object container. I have read data from the serial port by using the Microsoft plugin MSCOMM32.OCX that is included in several of Microsoft's products, but specifically it is included with VISUAL STUDIO. I've used a product called SoftwareWedge from TAL Technologies to communicate with serial devices like credit card readers and modems. Serial ports are treated in Win 32 like files and it is possible to use the PB file operations plus the Win API to do some of what you're trying to do.
