General information
Category:
COM/DCOM and OLE Automation
Thanks a lot for your answer.
I tried to make a test class programmatically :
DEFINE CLASS test_class AS custom OLEPUBLIC
PROCEDURE Init
SET EXCLUSIVE OFF
*SET DATASESSION TO 1
USE C:\TEST1\TEST.DBF IN 0 SHARED
ENDPROC
PROCEDURE INSERT_RECORDS
FOR i=1 TO 1000
INSERT INTO TEST VALUES (i,ALLTRIM(STR(i)))
ENDFOR
ENDPROC
ENDDEFINE
From the VFP command window I called the method INSERT_RECORDS as follow :
OX=CREATEOBJECT('PROJ1.TEST_CLASS')
OX.INSERT_RECORDS
Everything is ok
Then I opened another VFP and i tried the same thing but I get "File is in Use"
How can I make the class as session ?
Thanks again for your help
Peter
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