Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Filename from File Handle
Message
From
15/08/2013 05:51:32
 
 
To
15/08/2013 03:18:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows Server 2008
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01580517
Message ID:
01580524
Views:
45
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform