Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOpen() II
Message
De
15/07/1998 09:25:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00117265
Message ID:
00117555
Vues:
14
>Since there's no such thing as record looking with a file that has been opened via FOPEN() then I would say that you wouldn't want to open it shared for anything other than read-only access. (Won't that work?)
>
>You could come up with a big mess if you wish to let two people write to the same file at the same time.
>
>>>>When trying variations of the FOpen() command in the command window, it will except 0-12 as the second parameter, but only 0,1,2,10,11, and 12 are documented. Does anyone know what 3-9 are and if you can set fopen to open a file shared? Thanks.
>>>
>>>Joe,
>>>
>>>Even going back to FPD 2.5 these values aren't documented. I can't detect anything in the bit pattern that's helpful either. For example, bit 0 set being read, bit 1 write, etc. It obviously doesn't work like that. Further more, since the values have remained the same since the DOS days, it's unlikely that you can find any direct relationship between these parameters and the flags that are used by the Win32 function CreateFile() (which this probably maps to). So, in short, it looks like pretty much of a "test and guess" situation.
>>
>>Oh well. Thanks. I'll fool with them some and see what I come up with. Thanks again.


I only want to open it with read access, another app opens it for writing.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform