>>>I am trying to set up a form with an MSCOMM control. I am selecting it thru the OLE Container object and selecting the mscomm ocx. Most of the properties show an "Unknown OLE status error" and I cannot change them unless I do it run time. (via set step on and change thru the command box)
>>>
>>>Any ideas or guesses would be appreciated!
>>
>>I found that some properties can only be set at runtime.
>>
>>Craig
>That would be ok, but upon starting up the form I get a messagebox repeating the error. I have tried setting the mscomm.init to turn openport property off. Perhaps I am setting it up incorrectly. How do you add the mscomm object to your forms?
When I've used MSCOMM, the MSCOMM properties show OLE errors, but they've never given me any problems at runtime. I wonder why I never got a messagebox. Maybe I'm doing something wrong here!
I'm setting the MSCOMM properties programmatically as needed. I've put MSCOMM in a container class, which has a bunch of methods to set the various properties and invoke various MSCOMM methods. For example, I have a closeport method with:
if this.mscomm1.portopen
this.mscomm1.portopen = .f.
endif
The port gets closed (in the form) by invoking thisform.classname.closeport().
I don't know if this is a good way to do it -- but it's been working for us for 3 or 4 months!
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only