Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data of an open file
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00473051
Message ID:
00473354
Vues:
22
Vlad,
Hi!

>As far as I know, OpenFile() function with 0 as last parameter allow to open even file that opened elsewhere in VFP in exclusive mode (at least works for DBF files).

Do you mean the OpenFile method of the Class browser? I don't know of any OpenFile() function.

>However, I'm wondered, because wontop() is not a file name, but just a name of the window. When you use filetostr(wontop()), this will try to read from a disk file with a name that matches to the topmost window name. Make no sense for me...
>
>>Is the data in an open file available to a system variable or API call? For example, you cannot do a filetostr(wontop()) cause of a file acess denied. How does the Print function from File/Print work on an open file? Thanks

I meant STRTOFILE not FILETOSTR. :) And ya I'm drawing at straws with WONTOP(). I don't think that is what I need.
Essentially what I need I guess is a dump to disk of the current contents of a window. Let me further illustrate. You open a .txt file in notepad that was saved with the content "Hello world!" in it. That is saved to disk. You edit it to "Hello FoxPro developers!" You're new contents are not saved to disk yet but if you File/Print you the current contents ("Hello FoxPro developers!") are printed not your old content which is still the saved file until you save. So Notepad, Windows or something knows the current contents of that window you just printed. So in VFP for a PRG if you edit it w/o saving yet. Where is the value or buffer of the contents held? How can I access it?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform