Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem accessing a known good property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Problem accessing a known good property
Divers
Thread ID:
00421330
Message ID:
00421330
Vues:
40
I have created an ActiveX control (in VC++) and I am finding some odd
behavior when I run it under VFP 6.0 SP3. The following code in a .PRG fails (on the line shown) with the error:

"Unrecognized command verb"

oPort = CREATEOBJECT('MyControl.Port.1') && create object
IF TYPE('oPort') == 'O' && object was created correctly
oPort.PortName = "COM1"
oPort.Speed = 2400 <=== fails on this line
...

The reason that this is odd is that if I type the above code into the
command window it runs fine (i.e. property 'Speed' does exist!). Needless to say the equivalent VB code to the above runs fine as well.

Why would 'oPort.Speed = 2400' fail only in a .PRG?

Many thanks.
---------------------------------------
Magna Carta Software, Inc.
WEB: www.magnacartasoftware.com
Support: support@magnacartasoftware.com
Sales: sales@magnacartasoftware.com
FAX: +1 (972) 377-9074
7000 Independence Pkwy., Ste. 160-227
Plano, TX 75025, USA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform