Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Error - Status is a method, event or object. HEL
Message
From
19/06/2001 02:09:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520856
Message ID:
00520864
Views:
21
>I have an OLE control with a Status Property.
>
>Here is my code:
>THISFORM.FaxManJr1.Status
>
>When I run the above command I get an error.
>
>Program Error
>STATUS is a method, event, or object.
>
>I really need to be able to check the Status Property of my OLE control because that's where I find out what the status of the control is.
>
>1 means the Device is ready
>2 means the Modem is currently sending a fax
>3 means the Modem is waiting for a RING
>4 means the Modem is receiving a fax
>
>Is there any work around for this problem?
>
>In Visual Basic the command is FaxManJr1.Status
>
>In Visual C++ the command is CString pFaxControl->GetNumProperty("Status")
>
>The reason I presented the other examples is to help you possibly help me find a work around. Thanks much.

First, the really obvious - your code is actually something like
lnStatus = ThisForm.FaxManJr1.Status

... some actions based on value of lnStatus ...
Assuming the above is true, STATUS is a reserved word (SET STATUS, DISPLAY STATUS etc.) in VFP, which may be the root cause of this error. If that's the case and it's a 3rd party control you might be in trouble. If it's your own, you could rename the property :-)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform