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.