Page 1 of 1

Which COM Port # to Open?

Posted: Wed Dec 06, 2006 4:53 am
by Kashif
Dear Memebrs.

I have a Time attendance Machine. Which can Connect to any COM Port (i.e 1,2 3,4 .....).
How My Form can Know the Machine is Connected to any Specific Port Number.
If i Hard Code in the Oracle Forms. using this code
MSCOMMLib_IMSComm.CommPort(objVAR,1);
objVar has the Reference of COM PORT OCX Control
This Statment is Assiging the PORT #1 to this Control
Then Its Working Well.
but if the Machine is Connected to PORT number 2 then how do i DO this.

I little Complex Question. if any thig is not understand able then please let me know. i will try to explain it.

Thankx