Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with GetFile() function. Bug?
Message
De
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:
01380182
Vues:
60
>>>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).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform