// GetFile dialog displays .txt files

// Title is "Choose File"

// No database combobox will display

// No fourth parameter,so "Files of Type" combobox contains default list of

// file types

filename = getFile("*.txt", "Choose File", true)

 

// GetFile dialog displays .txt files

// Title is "Choose File"

// No database combobox will display

// Fourth parameter is empty string, so "Files of Type" combobox only

// contains: All (*.*)

filename = getFile("*.txt", "Choose File", true, "")

 

// GetFile dialog displays .txt files

// Title is "Choose File"

// No database combobox will display

// Fourth parameter specifies that Files of Type combobox contain:

// Text (*.txt) - matches internal type so description used

// doc Files (*.doc) - does not match internal type

// cpp Files (*.cpp) - does not match internal type

// Program Source (*.prg) - matches internal type so description used

// All (*.*) - ".*" specifies All (*.*)

filename = getFile("*.txt", "Choose File", true, "txt; doc; cpp; prg; .*")