Results 1 to 3 of 3

Thread: [RESOLVED] invert chars

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Resolved [RESOLVED] invert chars

    hello guys, some1 can help ?

    I read a byte from a file, and convert to hex,

    now i got: 20 03
    i want to invert it to 03 20

    understand?

    how can I do it'?

    thank u

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: invert chars

    Just 4 chars? theString = Right$(theString, 2) & Left$(theString, 2)
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: invert chars

    Dim theString As String
    theString = "2003"
    theString = Right$(theString, 2) & Left$(theString, 2)
    MsgBox theString

    it resolvs my problem, thank you!

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