Colleagues,
The subject line may sound cryptic, but I dunno how else to describe this problem:
The "Get Dir" dialog correctly returns the selected path (as String), but the memvar lsSel[ected]Dir is not updated!
Here's the code:
What am I missing or doing wrong?
OR
Could that be that dot in the last subdir's name, "C:\Ilya_Docs\2023_Tax_Forms\2023 Puerto Rico\480.7c_2022_informativo_files"? Coz when I selected some other dir (just alpha-numeric+underscores, no dot) it worked correctly.
Please advise!
Regards,
Ilya
The subject line may sound cryptic, but I dunno how else to describe this problem:
The "Get Dir" dialog correctly returns the selected path (as String), but the memvar lsSel[ected]Dir is not updated!
Here's the code:
Code:
'====================================================================================================================================
Private Sub cmdSrcDir_Click(sender As Object, e As EventArgs) Handles cmdSrcDir.Click
'====================================================================================================================================
Dim lsSrcDir As String = AddBackSlash(Me.txtSrcDir.Text.Trim()), lnRet As DialogResult = Forms.DialogResult.None, lsSelDir As String
objDirDlg.SelectedPath = txtSrcDir.Text
lnRet = objDirDlg.ShowDialog()
If Not (lnRet = Forms.DialogResult.OK) Then
Directory.SetCurrentDirectory(lsSrcDir)
Exit Sub
End If
lsSelDir = AddBackSlash(objDirDlg.SelectedPath)
If lsSelDir.Length = 0 Then
Directory.SetCurrentDirectory(lsSrcDir)
Exit Sub
End If
txtSrcDir.Text = lsSelDir
What am I missing or doing wrong?
OR
Could that be that dot in the last subdir's name, "C:\Ilya_Docs\2023_Tax_Forms\2023 Puerto Rico\480.7c_2022_informativo_files"? Coz when I selected some other dir (just alpha-numeric+underscores, no dot) it worked correctly.
Please advise!
Regards,
Ilya