Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disallow blank in getfile
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01397586
Message ID:
01397588
Vues:
70
>is there a way to disallow closing the box in getfile without selecting a file - in other words disallow a blank selection.
>
>(disallow blank - code??)
>gcTableName = GETFILE('txt', 'Convert file:')
>
>thanks for your help
>
>k
gcTableName = ""
DO WHILE EMPTY(gcTableName)
     gcTableName = GetFile('txt','Convert File')
     IF EMPTY(gcTableName)
         MessageBox("Please select a file for converting")
     ENDIF
ENDDO
You might want to provide your user a way out without choosing a file in case they changed their mind and don't want to convert any files right now.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform