- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an object library which has a function with the unfortunate name of "STAT".
I want to use the IFPORT module routine which also has the unfortunate name of "STAT".
How do I specify that the IFPORT STAT should be called, and not the object library STAT?
I tried the following statement:
USE IFPORT, ONLY: File_Info => STAT
then calling File_Info, but that did not help.
(Is there a better way to get a file modification date in Windows than using STAT?)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about GETFILEINFOQQ?
The problem you have is that the actual portability routine is named STAT, so even if you hide the identifier the linker will still get the wrong one. That's a risk with the portability routines. I long for the days of VMS and its standards for keeping user and system namespaces separate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. GETFILEINFOQQ worked fine.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page