Rapid-Q Documentation by William Yu (c)1999 | Appendix A: QOPENDIALOG |
|
Field | Type | R/W | Default | Support |
|
|
|
|
|
Caption | STRING | RW | W | |
FileName | STRING | RW | WX | |
Filter | STRING | RW | W | |
FilterIndex | INTEGER | RW | 1 | W |
InitialDir | STRING | RW | W |
Method | Type | Description | Params | Support |
|
|
|
|
|
Execute | FUNCTION | Returns TRUE or FALSE | 0 | WX |
'-- Simple demo DIM OpenDialog AS QOpenDialog IF OpenDialog.Execute THEN ShowMessage "You selected "+OpenDialog.FileName END IF
'-- Using filters DIM OpenDialog AS QOpenDialog OpenDialog.Filter = "Picture files|*.BMP;*.ICO|All Files|*.*" OpenDialog.FilterIndex = 2 '' Use "All Files" as our default IF OpenDialog.Execute THEN ShowMessage "You selected "+OpenDialog.FileName END IF