'Seleccionar archivo
Sub FileSelecter()
On Error GoTo ErrorFileSelecter
gstrFullFilename = ""
frmMainMDI.cdlgMain.CancelError = True
frmMainMDI.cdlgMain.Filter = gstrFilter
frmMainMDI.cdlgMain.DialogTitle = gstrDialogTitle
frmMainMDI.cdlgMain.FilterIndex = gintFilterIndex
frmMainMDI.cdlgMain.FileName = gstrFilename
frmMainMDI.cdlgMain.InitDir = gstrWorkDir
frmMainMDI.cdlgMain.DefaultExt = "txt"
frmMainMDI.cdlgMain.Action = gintDlgAction
gstrFullFilename = frmMainMDI.cdlgMain.FileName
gstrCurrentPath = CurDir
gstrFilename = ExtractFilename(gstrFullFilename)
Exit Sub
ErrorFileSelecter:
If Err <> cdlCancel Then
GenErrorHandler "modFile/FileSelecter() ", Err.Number, Err.Description
End If
Exit Sub
End Sub