Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Filename from File Handle
Message
De
15/08/2013 05:51:32
 
 
À
15/08/2013 03:18:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows Server 2008
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580517
Message ID:
01580524
Vues:
44
>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
Fil
Voir

Click here to load this message in the networking platform