Home » Developer & Programmer » Forms » Problem when using MScomm32.ocx in form 6i (XP)
Problem when using MScomm32.ocx in form 6i [message #424776] Tue, 06 October 2009 00:11 Go to next message
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!!!
  • Attachment: port2(2).fmb
    (Size: 288.00KB, Downloaded 429 times)
Re: Problem when using MScomm32.ocx in form 6i [message #426805 is a reply to message #424776] Mon, 19 October 2009 18:16 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Search this forum for 'mscomm' and you will find http://www.orafaq.com/forum/m/86184/67467/?srch=mscomm#msg_86184

David
Previous Topic: Oracle Form 4.5
Next Topic: Converted Forms and Reports from 6i to 10g, but...
Goto Forum:
  


Current Time: Sun Dec 04 12:39:10 CST 2016

Total time taken to generate the page: 0.10715 seconds