Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Foxpro 5.0 and Win95
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00056944
Message ID:
00057061
Views:
28
>Yeah.... But in VFP 5.0 , there is some properties that cann't run,
>eq : portopen
>and when I try to write com2 with syntax
> thisform.olecontrol1.output="Test"
>the error said that port must be open, but portopen property cann't be access in vfp5.0,
>any idea, but thanks for your help?
>
>Thank's
>Andri
>
>>>Some Can't help me...????
>>>I had a problem, when i used FOPEN() Command in Visual foxpro 5.0 under win95, return value is -1
>>>the command line script :
>>>
>>> ? FOPEN("Com2",12)
>>>
>>>I just try write to Com2 port. But i always receipt return value -1
>>>
>>>someone can't help me...???
>>>thankyou..
>>>Andri_thaslim
>>
>>Andri
>>
>>For communicating with the serial port, you might try using the MSCOMM32 ActiveX control.
>>
>>hth,
>>
>>George

I don't have that much experience with the control, but I have seen some threads here with some people using it. You can programmatically set the PortOpen property of the control with:

ThisForm.Olecontrol1.PortOpen = .T.

I've found that even if you get OLE errors with some versions of the control, you still can set the properties programmatically, rather than through the property sheet.

While the documentation says that you can open a communications port with FOPEN() in VFP, I don't know if anyone's actually done it. Under FPW, you couldn't.

hth,

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform