Results 1 to 4 of 4

Thread: newbie question .. please help

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    newbie question .. please help

    At VB6 We known below:

    string$
    abs
    chr$
    dim myarray(0 to 4)

    I question is simple .. in Vb.NET what 's the replacement for the above ..

    please advise .. thanks a lot in advance

    Regards
    Winanjaya

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    string$ :
    I think you can use ToString() method to return the string representation of value .

    abs
    ???? .

    chr$
    ????


    dim myarray(0 to 4)
    dim myarray(4)


  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Abs returns the absolute value.
    I think that in .NET is something like Maths.Abs() or Math.Abs()

    the chr$ can be done in many ways:
    If you're using C# just do "string"[char_position].ToString()
    If you're using VB.NET then(I dont know without going to see) but a easy way would be "string".Substring(char_position,1)
    \m/\m/

  4. #4
    Addicted Member
    Join Date
    Aug 2003
    Posts
    153
    System.Math.Abs(myNumber)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width