Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disallow blank in getfile
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01397586
Message ID:
01397588
Views:
69
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform