Hi experts, I'm now working on a project to convert vb6 code to c#.net. I am facing a problem when using switch case in side a for loop which concatenating a constant value with for loop counter in the switch case. It tells me an error which is "A constant value expected" but I have no clue about this error and searched quite a long time on internet. Anyone can give me a hint on how to get it solved?
Please see the code belows:...
User Profile
Collapse
Profile Sidebar
Collapse
jeepzhen
Last Activity: Mar 21 '18, 08:24 AM
Joined: Jan 31 '18
Location:
-
A constants value expected in switch case
-
Problem converting vb6 code to c#
Hi experts, I have a problem when converting vb codes to c# codes. I have no idea about the below codes with synthax error "String is a type but it's used like a variable" been searched around internet quite a long time but no clues found. Anyone can give me a hint to convert below codes into c# format?
Thank in advance.
Code:If sNullEnding = True Then oNItem.Value = oVfei.Var("CARRIER_ID").Value
-
Problems with Converting VB.NET Code to C#.NET
Hi experts, I'm Currently working on a project converting VB codes to C#. Now I'm facing a problem and not understand the VB Code to convert below codes into C# synthax.
Please help to explain the below codes and provide me some hint on how to convert it.
Code:Private Function Power2(ByVal exponent As Long) As Long Static result(0 To 31) As Long, i As Integer ' Evaluate all powers of 2 only
-
problem with vb variant and c# object
Hi experts, I have a problem when converting vb code to c# code. There is getUpperBound method in variant class of vb, But when I convert it into c# code there is no variant type in c#. After I searched on internet there is a way to turn vb variant to object type in c#. There is no getUpperBound method in object type and how should I do? Please help and thanks in advance.Below are the vb codes.
Code:Private Sub DisplaySlotsSelected(ByVal
-
problems with C# equivalent in VB.NET Folder & File Class
Hi experts, I have a problem when converting vb codes to c# codes. What library should I import? Anyone can tell me how to convert below codes into c# format?
Thank in advance.
Code:Private Sub Filechecking(ByRef fso As Scripting.FileSystemObject, ByVal iDataKeepDays As Integer, ByVal tmpPath As String) Dim Folder As Folder Set Folder = fso.GetFolder(tmpPath) Dim f As File
No activity results to display
Show More