User Profile

Collapse

Profile Sidebar

Collapse
jeepzhen
jeepzhen
Last Activity: Mar 21 '18, 08:24 AM
Joined: Jan 31 '18
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jeepzhen
    started a topic A constants value expected in switch case

    A constants value expected in switch case

    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:...
    See more | Go to post

  • jeepzhen
    started a topic Problem converting vb6 code to c#

    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
    ...
    See more | Go to post
    Last edited by jeepzhen; Mar 15 '18, 05:17 AM. Reason: not specific with error

  • jeepzhen
    started a topic Problems with Converting VB.NET Code to C#.NET

    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
    ...
    See more | Go to post

  • jeepzhen
    started a topic problem with vb variant and c# object

    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
    ...
    See more | Go to post

  • 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
    ...
    See more | Go to post
No activity results to display
Show More
Working...