Rapid-Q Documentation by William Yu (c)1999 Appendix A: QOPENDIALOG


QOPENDIALOG Component

QOpenDialog displays Window's file selection dialog

QOpenDialog Properties
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

QOpenDialog Methods
Method Type Description Params Support





Execute FUNCTION Returns TRUE or FALSE 0 WX


QOpenDialog Examples
  '-- 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

Prev ComponentContentsNext Component