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:
00473359
Vues:
22
Hi!

Hmm, probably you will be able to use these functions. I guess IntelliSenseX for VFP6 use exactly these functions.

>Vlad,
>I got it. Someone sent me some FoxTools functions that handle it. Mainly _EdGetPos & _EdGetStr. Documentated in the API library routines of the FoxPro help file. (You may have to shake the dust off it to see < s > ) I was having a hard time saying what I want and did a poor job describing it. Thanks.
>
>How's it going? Coming back to states anytime soon? Do you miss us here yet?

No plans for close months.

>
>>It looks like you're trying to mix completely different things. File/Print option is internal VFP option (code written on C++), thus this code have access to all internal buffers and structures, allowing, for example, to print content of any window. You cannot do this (get the content of window), however, in VFP code, no such commands.
>>
>>You can, however, organize this using memo editing window, if you need this for end users. Make temporary cursor with memo field and no buffering. Open memo field editing window. Thus you will allow to print content of memo field by File/Print option and will be able to get the content of text from memo field itself.
>>
>>HTH.
>>
>>>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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform