Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN Bug?
Message
From
09/10/1998 10:19:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00145379
Message ID:
00145417
Views:
24
>>>Can someone out there try this and see if they get the same response.
>>>
>>>Open a table as shared from a database in a private datasession.
>>>Then run the following command on the fullpath to the table you have opened, using another form with its own private data session.
>>>
>>>lcfile = FULLPATH TO THE TABLE YOU HAVE OPENED e.g. c:\temp\table1.dbf
>>>lnfilehandle=fopen(lcfile,0)
>>>
>>>Is the result in lnfilehandle less than 0, which indicates that fopen could not get a readonly open, which I think means that the table is being seen as exclusively opened.
>>>
>>>Let me know your results.
>>>
>>>I am trying this where the table resides on our Novell server, but I would be interested in any results.
>>>
>>>Thanks for your time.
>>Brett,
>>Table is shared but fopen tries to open it exclusive. To open in shared mode you should use winapi. You might try focus functions (www.fastwrite.com).
>>Cetin
>
>According to the help files an FOPEN(fname,0) with the 0 option trys to open the fname file as read only. This worked in FoxPro 2.x or seemed to, but VFP reports back differently.
Brett,
AFAIK it was the same in Fox 2.x too. I couldn't find a way to read it yet. Lemme know if you succeed.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform