Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with GetFile() function. Bug?
Message
 
 
À
08/02/2009 19:21:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01380178
Message ID:
01380186
Vues:
59
>>>>Hi,
>>>>
>>>>When I specify the first parameter to the GetFile() function as "DOC,PDF,XLS" all works well. The GetFile window shows the Type as "*.DOC,*.PDF,*.XLS" But if I include in the parameter string "JPG" and/or "GIF" (e.g. ".DOC,PDF,XLS,GIF,JPG") the GetFile window shows only JPG or GIF as the type of file.
>>>>
>>>>Is this a bug or am I missing something?
>>>
>>>It certainly looks like a bug for me. Nor can I find a quick workaround.
>>>
>>>I tried this in VFP 9 and in VFP 6 (with SP5), and get the same bug in VFP 6.
>>
>>Thank you for confirming this issue.
>
>I see that the behavior is completely different if a comma is substituted by a semicolon, e.g.:
>
>
>? GETFILE("ini;gif;jpg;txt")
>
>
>In this case, it will only show files of the first type (INI in the example), but give you options to select the other file types. I don't like this, either: I would prefer to list all files of the specified types, perhaps with an option of seeing only a specified subset (like JPG, in the example).

I agree with you. I will take out the GIF and JPG from the parameter string. And the user will be able to select All types and select any file, if they need to.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform