Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cyclic SET PROC problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01064310
Message ID:
01064489
Views:
17
First, where else would I put it?

This particular class is going to be compiled as a COM object. It needs
to reference my PRG based SQL procedures class.

The SQL class cannot be compiled as a COM object, therefore I need to
SET PROC to it.



Second, I found the cause of the problem. Both classes were based off a class
called 'ProcBase'. I have been unable to reproduce the problem with test
PRG's, but when I changed the base class names, all works fine.





>I don't think that class method is a correct place for SET PROCEDURE.
>
>>I have 2 PRG bases classes, one in each PRG.
>>
>>PRG ReconProcs has a method OpenConnection:
>>
>>
>>PROCEDURE OpenConnection
>>SET PROCEDURE TO d:\projects\vfp1\sqlprocs\sqlprocs.prg ADDITIVE
>>.oSQLProcs = CREATEOBJECT("SQLStuff")
>>.
>>.
>>.
>>
>>
>>When the CREATEOBJECT() runs, it called back into the Init of ReconProcs.
>>
>>There are no references to ReconProcs in SQLStuff.
>>
>>This is really crazy and I have no idea what is wrong.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform