library_vb » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2017-06-25 | 2017-06-26 | ||
updating link (martin) (hidden) | Restored revision 1484205382. Undoing revision 1498408943. (martin) (hidden) | ||
Line 22: | Line 22: | ||
* Implement your interactions with WinSCP .NET assembly in a class module; | * Implement your interactions with WinSCP .NET assembly in a class module; | ||
* Declare private variable in your class module referring to ''[[library_session|Session]]'' class; | * Declare private variable in your class module referring to ''[[library_session|Session]]'' class; | ||
- | * Use ''[[https://msdn.microsoft.com/VBA/Language-Reference-VBA/articles/on-error-statement|WithEvents]]'' keyword, when declaring the private variable; | + | * Use ''[[msdn>gg251653|WithEvents]]'' keyword, when declaring the private variable; |
* Define private function (method) with name ''<variablename>_<event>'' and two arguments (e.g. ''sender'' and ''e'') for every event you need to handle. | * Define private function (method) with name ''<variablename>_<event>'' and two arguments (e.g. ''sender'' and ''e'') for every event you need to handle. | ||