Converting vb6 to vb.net
-
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:)
-
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:)
Declaring multiple variables with a single "Dim" strongly types only the variables with an "As" clause. So your first declaration declares three variants in VB6 and one string. You get the message when upgrading since you *may* want to keep it as three objects and one string (the original intent of the VB6 code) - or more likely you originally intended four strings - VB.NET would regard it as four strings. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB.NET to C# Converter Instant VB: C# to VB.NET Converter Instant C++: C# to C++ Converter Instant J#: VB.NET to J# Converter Clear VB: Cleans up outdated VB.NET code
-
Declaring multiple variables with a single "Dim" strongly types only the variables with an "As" clause. So your first declaration declares three variants in VB6 and one string. You get the message when upgrading since you *may* want to keep it as three objects and one string (the original intent of the VB6 code) - or more likely you originally intended four strings - VB.NET would regard it as four strings. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB.NET to C# Converter Instant VB: C# to VB.NET Converter Instant C++: C# to C++ Converter Instant J#: VB.NET to J# Converter Clear VB: Cleans up outdated VB.NET code
Of course, I meant: Declaring multiple variables with a single "Dim" strongly types only the variables with an "As" clause ***IN VB6*** David Anton www.tangiblesoftwaresolutions.com Instant C#: VB.NET to C# Converter Instant VB: C# to VB.NET Converter Instant C++: C# to C++ Converter Instant J#: VB.NET to J# Converter Clear VB: Cleans up outdated VB.NET code