Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETFILE() problem
Message
De
03/08/1999 13:57:25
 
 
À
03/08/1999 13:39:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00249329
Message ID:
00249341
Vues:
21
>Hi All ---
>
>I have a stupid, little problem that is driving me nuts. I need the equivalent of a GETFILE() function that has the File name already put into the File name textbox.
>
>Better still would be the equivalent where the user cannot change the file name.
>
>I know that there is a standard API call that will solve this problem but I'm suffering from an extended brain fart.

If the target systems are known to have at least Shell version 4.71 on them, you might want to look at using the Shell.Application object's BrowseForFolders methodn as a starting point. there's an example in the FAQ that I wrote for an enhanced GetDir using Shell.Application; you can get BrowseForFolders to return files as well using some of the parameters documented there. You also might want to investigate the Common Dialogs, which includes a getfile equivalent. You laos might look at the latest version of Bela Bodec's BBGETDIR.OCX, which might have similar functionality in it; I haven't looked at it in a while, but it's a great GetDir replacement, and he's probably got what you're looking for...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform