Jul 26, 2024 #1 IlyaRabyy Programmer Joined Nov 9, 2010 Messages 572 Location US Colleagues, Picture worth 1K words, so here it is: AHWBGA! Regards, Ilya
Jul 26, 2024 #2 mikrom Programmer Joined Mar 27, 2002 Messages 3,016 Location SK It seems that instance goFW_Txt of FileSystemWatcher does not exist Upvote 0 Downvote
Jul 26, 2024 Thread starter #3 IlyaRabyy Programmer Joined Nov 9, 2010 Messages 572 Location US Exist it does. It was declared way above in the code. I moved it down so I could "take a picture". Regards, Ilya Upvote 0 Downvote
Exist it does. It was declared way above in the code. I moved it down so I could "take a picture". Regards, Ilya
Jul 26, 2024 1 #4 mikrom Programmer Joined Mar 27, 2002 Messages 3,016 Location SK variable type declared, but create a new instance using New: Code: goFW_Txt = New FileSystemWatcher("C:\path\to\folder") see the complete working example: https://learn.microsoft.com/en-us/d...dfrom=MSDN#System_IO_FileSystemWatcher_Filter Upvote 0 Downvote
variable type declared, but create a new instance using New: Code: goFW_Txt = New FileSystemWatcher("C:\path\to\folder") see the complete working example: https://learn.microsoft.com/en-us/d...dfrom=MSDN#System_IO_FileSystemWatcher_Filter
Jul 26, 2024 Thread starter #5 IlyaRabyy Programmer Joined Nov 9, 2010 Messages 572 Location US Scheise! It seems that I'll never learn when to declare a pointer-on-oject memvar with just "As", and when with "As New"! Albeit... "String" is also an object... err... class that becomes an object when declared just with "As", ain't it? Anyway, thank you very much, Mikrom! Problem's resolved. Case's being closed. Regards, Ilya Upvote 0 Downvote
Scheise! It seems that I'll never learn when to declare a pointer-on-oject memvar with just "As", and when with "As New"! Albeit... "String" is also an object... err... class that becomes an object when declared just with "As", ain't it? Anyway, thank you very much, Mikrom! Problem's resolved. Case's being closed. Regards, Ilya