Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does anyone have any ideas that might help me?
Message
From
26/09/1997 11:40:55
Susan Piro
Northwestern University
Evanston, Illinois, United States
 
 
To
26/09/1997 08:45:08
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00051719
Message ID:
00051786
Views:
36
>>>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
Map
View

Click here to load this message in the networking platform