
VB.net Date类型 常量 如何初始化
自己做了些尝试,BirthDay_Date正确编译不过是Nothing,BirthDay_Date2编译报错。PublicStructureSpecialDatesPub...
自己做了些尝试,BirthDay_Date正确编译不过是Nothing,BirthDay_Date2编译报错。
Public Structure SpecialDates
Public Const BirthDay_Date As Date = Nothing
Public Const BirthDay_Date2 As Date = New Date(1988, 4, 4)
Public Const BirthDay_string As String = "19880404"
End Structure
请问如何用常量去初始化Date类型呢? 展开
Public Structure SpecialDates
Public Const BirthDay_Date As Date = Nothing
Public Const BirthDay_Date2 As Date = New Date(1988, 4, 4)
Public Const BirthDay_string As String = "19880404"
End Structure
请问如何用常量去初始化Date类型呢? 展开
1个回答
展开全部
Public Const BirthDay_Date2 As Date = #4/4/1988#
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询