Home » Developer & Programmer » Reports & Discoverer » Problem when using MScomm32.ocx in form 6i
Problem when using MScomm32.ocx in form 6i [message #424285] Thu, 01 October 2009 05:02
imme
Messages: 3
Registered: September 2009
Location: vietnam
Junior Member

Hi everybody,
I have a Scale connet to PC through COMPORT.
I want to read the data from ComPort using MSCOMM control in Oracle FORMS 6i.

here my code(when-button-pressed):
DECLARE
W NUMBER;
WCOUNT NUMBER :=1;
comm_hnd OLEOBJ;
BEGIN

comm_hnd := ole2.create_obj('block2.MSC');

MSCOMMLib_IMSComm.CommPort(comm_hnd,1); --Form is "OUT"

MSCOMMLib_IMSComm.Settings(comm_hnd,'9600,n,8,1');

..........
END;


I compile success! but in Oracle Forms Runtime,
when click button, my form is "Out"
Can you help me!
thankz!!!

-----------------
dinhthienthanh@yahoo.com
  • Attachment: port2.fmb
    (Size: 288.00KB, Downloaded 1469 times)
Previous Topic: Application Crashes Using MSCOMM Control
Next Topic: Controlling Parameter Lists in Reports 10g
Goto Forum:
  


Current Time: Wed Nov 27 05:43:38 CST 2024