hex - hex$ ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: hex - hex$ ?

  1. #1
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    11

    hex - hex$ ?

    Sorry for the question, but I'm VB beginner ;-}

    What is the/Is there a difference between hex and hex$ statement?


  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: hex - hex$ ?

    The former returns a Variant (of VarType String) and the latter returns a true String.

    Due to Visual Basic's implicit type conversion this rarely makes any difference at all but there is a (minute) speed penalty for using Hex() and then coercing it into a String.

    HTH,
    Duncan


    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center