Hi all I have this project im converting from vb6 to vb.net when i run the code advisor for vb6 it keep getting this fixit code. 'FIXIT: Declare 'currentdate' and 'tempDay' and 'tempMonth' with an early-bound data type FixIT90210ae-R1672-R1B8ZE Dim currentdate, tempDay, tempMonth, tempYear As String Dim tempDate As String I go to the help file for this fixit but it does not explane it very well. Can any one explane it to me. The Dim statements are my original code. Ed:)
ido233
Posts
-
Converting vb6 to vb.net -
Convert Visual Basic to Visual C++Hi everyone What I have is a vb program that I am converting to visual C++ iv done most of the convert but am having a problem with this one. All I want to do is when my VC++ program runs that it show the current Month Day Year in seperate boxes here is the vb code. Public Sub today() 'Get today's date from system Dim currentdate, tempDay, tempMonth, tempYear As String Dim tempDate As String Dim location, StrLen As Integer Dim convert_month As String tempDate = Date$ tempMonth = Month(CDate(tempDate)) tempDay = Day(CDate(tempDate)) tempYear = Year(CDate(tempDate)) currentdate = tempMonth & "/" & tempDay & "/" & tempYear StrLen = Len(currentdate) location = InStr(currentdate, "/") txtMonth.Text = Left(currentdate, location - 1) convert_month = Convert_Date_Int2Str(txtMonth.Text) txtMonth.Text = convert_month currentdate = Right(currentdate, StrLen - location) location = InStr(currentdate, "/") txtDay.Text = Left(currentdate, location - 1) currentdate = Right(currentdate, 2) If (CInt(currentdate) < 90) Then txtyear.Text = "20" & currentdate Else txtyear.Text = "19" & currentdate End If ' End Sub any help is appreciated :omg: