Hi Douglas
There are two different things to check
1) If the control (OCX) is properly installed on the machine
2) If the COM ports are properly configured and accessed by the OS
Regarding the first point, if you have setup VFP 5.0 on the machine, the control is installed. You can verify it looking at the list in Options / Controls / ActiveX Controls, it should appear as Microsoft Communication Control (you don't need to check the option, that only means adding it or not to the form designer toolbox).
I guess this is not the problem because if it was not installed, it should fail when you try to instanciate the control, not in the Open command
The second point is probably failing.
First of all, look for the port at My PC -> Properties -> Hardware -> Device Manager -> Ports; the corresponding port should be listed there and its properties (General tab) should show that the device is enabled and working properly.
If it is not, try to install it / fix it with the Hardware Wizard.
(It may even be disabled by the BIOS setup, you may need to check there if the Hardware Wizard cannot find it)
Hope this helps,
Jose
>I've got a computer w/W98 on it and it reads a scale input to get weight and enter it into a form in VFP 5.0 I'm trying to move this to a newer computer with W2K but I get an OLE Control error code when I try to open the port.
>Of the code below we get the error at the 'portopen' command:
>
>*Set it to COM1
>thisform.olecontrol1.commport = 1
>
>* Tell the control to read the entire buffer when i/p is used.
>thisform.olecontrol1.inputlen = 0
>
>* Open the COM port for communications
>thisform.olecontrol1.portopen = .T.
>
>I've heard that when the programmer who setup the w98 computer tried to add the OLE Control he ended up having to Edit the Registry to get it to work.
>
>Does anyone have a MS-Q article# on this or some advise on how to get it added. I thought it was just the MSComm.ocx or MSComm32.ocx but I go to add these in VFP Tools/Options/Controls/Add and I do not know what it looks like in the ActiveX Controls listing.
>
>Help!