Using a form to return information
My program copies files from a user's hard drive to a network drive. In one case, the user must decide into which subdirectory a file should go. I want to pop up a form that asks, "Should this file go into subdirectory A?" and give two radio buttons of yes and no and an OK button.
I'd like the popup form to return a 1 if the yes radio button is checked and a 0 if the no radio button is checked so I could use the result in an if statement like:
VB Code:
Dim Frm2 As Form2
Dim dir As String
If Frm2.show().result() Then
dir = "SubdirectoryA"
Else
dir = "SubdirectoryB"
End If
I have Frm2.show().result(), but I don't know what should go there.
Does this make any sense?