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

QOPENDIALOG Component

QOpenDialog displays Window's file selection dialog

QOpenDialog Properties
FieldTypeR/WDefaultSupport
CaptionSTRINGRWW
FileNameSTRINGRWWX
FilterSTRINGRWW
FilterIndexINTEGERRW1W
InitialDirSTRINGRWW

QOpenDialog Methods
MethodTypeDescriptionParamsSupport
ExecuteFUNCTIONReturns TRUE or FALSE0WX


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 Component Contents Next Component
Hosted by uCoz
Hosted by uCoz