G
Guest
In a Property Set statement, I'm trying to retrieve a value from My.Resources
like this:
Public Property TimeEnd() As DateTime
<System.Runtime.CompilerServices.MethodImpl(Runtime.CompilerServices.MethodImplOptions.NoInlining)> _
Get
Return _timeEnd.Date
End Get
<System.Runtime.CompilerServices.MethodImpl(Runtime.CompilerServices.MethodImplOptions.NoInlining)> _
Set(ByVal value As DateTime)
CanWriteProperty(True)
If Not _timeEnd.Equals(value) Then
_timeEnd.Date = DateAdd(DateInterval.Year,
CInt(My.Resources.SqlMinYear), value.TimeOfDay)
End If
End Set
The purpose of SqlMinYear is to allow the UI to receive a time only and to
store it by appending SQL Server's min date. However, when I try to retrieve
this Resources string, I get this error:
"'My.Resources.SqlMinYear' is not declared or the module containing it is
not loaded in the debugging session."
I get the same thing if I try to get the value in the immediate window.
Any ideas?
like this:
Public Property TimeEnd() As DateTime
<System.Runtime.CompilerServices.MethodImpl(Runtime.CompilerServices.MethodImplOptions.NoInlining)> _
Get
Return _timeEnd.Date
End Get
<System.Runtime.CompilerServices.MethodImpl(Runtime.CompilerServices.MethodImplOptions.NoInlining)> _
Set(ByVal value As DateTime)
CanWriteProperty(True)
If Not _timeEnd.Equals(value) Then
_timeEnd.Date = DateAdd(DateInterval.Year,
CInt(My.Resources.SqlMinYear), value.TimeOfDay)
End If
End Set
The purpose of SqlMinYear is to allow the UI to receive a time only and to
store it by appending SQL Server's min date. However, when I try to retrieve
this Resources string, I get this error:
"'My.Resources.SqlMinYear' is not declared or the module containing it is
not loaded in the debugging session."
I get the same thing if I try to get the value in the immediate window.
Any ideas?