General information
Category:
Windows API functions
Thank you, this clears things up for me!
However, here is the latest I am stuck on.
In this object.class, there is a property that I need to set to true to continue. currently it is set to false and I can see that it is false in the watch list.
Here is from the help file of the component (examples are for VB)
-----------------------
TColumnOn (Transducer column on or off.)
Function:
boolean = TColumnOn( mux as integer, channel as integer, errr as integer )
TColumnOn( mux as integer, channel as integer, errr as integer) = boolean
Description: Turns transducer column display update on or off.
Arguments: mux is any valid multiplexer on the port, 1 to 8.
channel is any number from 1 to 16.
errr is return error code.
Example: DM916.TColumnOn( 1, 2, errr ) = true
if DM916.TColumnOn( 1, 2, errr ) then
print “Is on”
endif
-----------------------
I can run it just as it is, but if I try to set a boolean to it, fox can't handle it. It works in VB of course. I've tried many ways, including..
dm916.TColumnOn(1,1,err) = .T.
of which fox yields
Err #31
Invalid subscript reference
it just doesnt like that = .t. ...fox only see's it as a function, not a property?
Ideas?
THANKS!
>Hi Joe,
>
>See help on CREATEOBJECT and look at the ClassName parameter description. It says:
>
>OLE objects are created using the following syntax for ClassName:
>ApplicationName.Class
>For example, to create a Microsoft Excel worksheet (which supports Automation), you can use the following syntax:
>x = CREATEOBJECT('Excel.Sheet')
>
>In Windows registry, you'd find the object registered as Api916.Dm916port (the application and a class of that application). This is a standard for any OLE object.
>
>Hope this helps.
>Sylvain Bujold
>
>>Who knew I had to use a "." and refer to the object and it's class to create the object? Fox Help had NOTHING on this.
>>
>>So the correct answer was:
>>
>> dm916 = CREATEOBJECT('api916.dm916port')
>> dm916.CommPort(AsiResult) = 2
>>
>>Thanks for your help guys.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only