Can anyone explain the logic of pressing CANCEL should return TRUE ?
Seems to me that an affirmative response should return true.
If Dialog.OpenFile() Then
Return ' User pressed Cancel -
Endif
If Dialog.OpenFile() Then
Return ' User pressed Cancel -
Endif
I think I see where you are coming from Bruce, but I don't think True indicates an error in this case.BruceSteers wrote: ↑Thursday 31st December 2020 10:02pm It's based on the return is an error value I think.
So if true an error has occurred.
If Dialog.OpenFile() Then Return ' "True" = User canceled
' use the file
Thank for the feedback
Public Sub FileChooser1_Activate()
' Sends selected name to global variable
Global.CopyCmd = FileChooser1.Value
Me.Close
End
Public Sub FileChooser1_Cancel()
Me.Close
End
That's a good question.