Convert C# to VB

Hi

Could someone convert

if(iMessage.Substring(i,1).Equals("a"))

{

tmpString+=((char)29).ToString();

}

to VB.NET

/nOrphf



Answer this question

Convert C# to VB

  • swimmer

    Hi,

    I ran the code in C# and VB now and I get the same output in both cases. I get a square box character.

    Regards,
    Vikram

  • wenliang

    thanks

    but it does not do as supposed.

    I am making a application that sends an sms via a GSM modem.

    I have the C# code for another program that sends sms'er via the same kind of GSM modem.

    The reason why I have to do this is that the modem does not understand "a".

    But why does it work in C# and not in VB. Are the char set different

  • Larkin Y

    Hi,

    Code in VB.NET


    If (iMessage.Substring(i, 1).Equals("a")) Then
          tmpString += Convert.ToChar(29).ToString()
    End If

     


    Regards,
    Vikram



  • Convert C# to VB