devxlogo

How to access your comport

How to access your comport

Question:
How can I access my comport? How can I send bytes to the datatransfer pin? I’m using Delphi 1.0

I’ve tried writecomm and transmitcommchar (and I’ve opened the port with opencomm) but I don’t think it sends anything. Is there an easier way? I saw something about writefile/ex but couldn’tfind it in my help.

Answer:
Look up the Ports array in the online help. Ports gives you direct access tothe comm port, but it will only work in a 16-bit Windows environment.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist