Thanks for the suggestions Juergen. Paul Newton
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of juergen@wondzinski.de Sent: 05 August 2019 09:26 To: profoxtech@leafe.com Subject: AW: Get file path and name from file handle
Sent by an external sender ------------------------------
Hio Paul,
Add a collection (or Array) to _screen, with two columns. One for the filehandle, one for the filename. That way you can search for handle or name.
Or, more sophisticated: Create an helperobject for the various F* functions to work directly with that collection, which would then be part of that object. That way you could add a GetFileNameFromHandle method and many more. Added benefit would be an automatic FClose if that object goes south. :)
-----Ursprüngliche Nachricht----- Von: ProFox profox-bounces@leafe.com Im Auftrag von Paul Newton Gesendet: Montag, 5. August 2019 09:48 An: profox@leafe.com Betreff: RE: Get file path and name from file handle
Hi Juergen
The FCREATE/FOPEN is used in several places throughout the code and I would need to somehow store and preserve the open file details. Being able to find the file from the file handle would be much more convenient
Paul Newton
[excessive quoting removed by server]