Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Public Server - Single Use
Message
From
30/04/2002 02:04:35
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00650244
Message ID:
00650756
Views:
57
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
Map
View

Click here to load this message in the networking platform