gcTableName = "" DO WHILE EMPTY(gcTableName) gcTableName = GetFile('txt','Convert File') IF EMPTY(gcTableName) MessageBox("Please select a file for converting") ENDIF ENDDOYou 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.