Hi!
If you're sure class is loaded in the memory, always use createobject() function, like following.
loTS = createobject("if_timesync", ...{parameters}...)
It comes from older VFP versions (newobject() appeared only recently), so most developers do not got this. Strange, one more item to add for troubleshooting list...
HTH.
>I found the problem (which is kind of interesting). The VCX was fine, but I had following line of code in one of my methods
>
loTS = newobj("if_timesync", "", "", .T.)
>The compiler did not like having the class reference empty, and stopped complaining when I changed the code to
>
loTS = newobj("if_timesync", "classes\iflexcls.vcx", "", .T.)
>
>Very strange. Even though the compiler complained, the code still worked in the EXE [I do have classlib set to the iflexcls.vcx]. But at least I got ride of the error.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.