Home » Developer & Programmer » Forms » Data Reading from COM Port
Data Reading from COM Port [message #86152] Sat, 04 September 2004 06:14
fanni
Messages: 96
Registered: March 2004
Member
hi

i want to read and send data on my COM Port. for this i want to use MSCOMM.OCX

I placed OCX control from the tool pallet on my form of forms6. in the properties of the OCX item i selected the MSCOMMLib.MSComm.1 libtrary from its collection of classes then i right clicked on the OCX item and  selected the Microsoft Communication Control from the insert object window of the OCX item.

OCX item shows a telephone shaped object on my OCX Item.

I also find the trigger ON-DISPATCH-EVENT and found the following code there

DECLARE
    eventname VARCHAR2(32767) := :system.custom_item_event;
BEGIN
 message(eventname);
 message(eventname);
    IF eventname = 'EVENT1' THEN
        -- Code for OnComm
        NULL;
    ELSE
        message('Unknown Event: ' || eventname);
    end if;
END;

Now how to use the properties of this MSCOMM Object. and how will i reference the object i placed on the form.

 

Any Suggestions or any tip will be really appreciated.

regards

Farhan Ashraf

 

 
Previous Topic: SQLFORMS3.0 doubt
Next Topic: RE : Stores Procedures
Goto Forum:
  


Current Time: Sun May 19 08:25:48 CDT 2024