Colleagues,
What's described in the Subject line is very strange! Especially considering that it always worked before!
Let's say, you have a main module (e.g. Form), in which you have something like
You, programmatically, obtain and assign this SMTP Client and SMTP Port values (in my case - from INI file).
Then, in another module, you have a code like this:
and it should work, right?
It did, when it was in WinForms app type.
I have another (WinForms) program that starts with Main, and all the global memvars declared there are visible for another dozen modules in that project.
But in the Service type app it errs: "'[highlight #FCE94F]gsSMTPClient' is not declared[/highlight]" - ?!
Same with the all Global memvars declared (and assigned!) in that other module...
And the Q. is: is it pertinent to the Service type apps that one module can't "see" a global (Public) memvar declared in another module?
Regards,
Ilya
What's described in the Subject line is very strange! Especially considering that it always worked before!
Let's say, you have a main module (e.g. Form), in which you have something like
Code:
Public Class Form1
Public gcSMTPClient As String, giSMTPPort As Integer
You, programmatically, obtain and assign this SMTP Client and SMTP Port values (in my case - from INI file).
Then, in another module, you have a code like this:
Code:
Dim loMailClient As New SmtpClient(gcSMTPClient, giSMTPPort)
and it should work, right?
It did, when it was in WinForms app type.
I have another (WinForms) program that starts with Main, and all the global memvars declared there are visible for another dozen modules in that project.
But in the Service type app it errs: "'[highlight #FCE94F]gsSMTPClient' is not declared[/highlight]" - ?!
Same with the all Global memvars declared (and assigned!) in that other module...
And the Q. is: is it pertinent to the Service type apps that one module can't "see" a global (Public) memvar declared in another module?
Regards,
Ilya