Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>Hi Experts,
>
>When you use the low level command eg FCREATE(), eg nHandle=FCREATE('Textfile.Txt') it creates the file named "Textfile.txt" and nHandle holds the handle Number. Assuming nHandle ends up being 22, Is there a direct way of knowing that the handle 22 relates to file "Textfile.txt' ?
AFAIK no. But you can write a class coupling FName with nHandle as properties and use accordingly.
>I know that these File handle Numbers and the respective files are visible in the DISPLAY STATUS output.
>
>I need this to track log-ins in my application.
Would a table logging log-ins not be a better idea? Has been used extensively and offers right off the bat multiple fields if you need them. Don't try to reinvent the wheel, build on existing and debugged concepts and code.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement