Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETFILE() with .LNKs
Message
 
À
08/01/1999 08:38:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00173977
Message ID:
00174000
Vues:
54
>I am having a frustrating time getting GETFILE() to return the name of a selected link file in VFP 6 (VFP 5 does the same). If a link file is selected using GETFILE(), it returns the name and path of the file linked instead of the link file itself. For example, I have a link file called "Visual FoxPro.lnk". It's target is "C:\vfp\vfp.exe". If I select it with GETFILE(), it returns "C:\vfp\vfp.exe" instead of "Visual FoxPro.lnk" (which is what I want it to return).
>
>Any clue what it happening here? Thanks.
>
Hi Matt,

AFAIK, there's no way to control this behavior. You can use ADIR() to retrieve the contents of a particular directory, however, in VFP 5.0 you won't get the link files with multiple periods such as C:\WINDOWS\DESKTOP\Visual FoxPro 5.0.lnk. This is corrected in 6.0. I believe that even the Common Dialogs ActiveX Open File dialog behaves the same way.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform