Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying a directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01086006
Message ID:
01086025
Vues:
35
>>>>>Instead of having a user browse in windows explorer for an adobe acrobat file to view which can be cumbersome for some, I want the user type in the name of the file(in a textbox on a vfp form). These files are arranged in certain pre arranged(hardcodable) directories and given the name of the file he types in, it will be a specific directory. What useful vfp commands/functions will allow a certain directory to be displayed so user can double click on his file?
>>>>
>>>>GETFILE() ?
>>>
>>>Would that "get" the file and be able to open it as a normal adobe acrobat file would?
>>
>>It will return the name of the file selected by user. After that you can use SHELLEXECUTE() API or WSH Run() method to launch whatever application is associated with the file.
>
>Yes, I just read a tutorial about ShellExecute() and it's just what I'm after. However, I don't have ShellExecute on my system.Does it come with XP? I got an error when I tried this : ShellExecute(0,cAction,cFileName,"","",1)
>"ShellExecute.prg does not exist"

You've to DECLARE it. See Re: Menu hyperlinks Thread #1042067 Message #1086024
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform