Results 1 to 4 of 4

Thread: Need some advice/assistance

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    2

    Need some advice/assistance

    Not sure if this is the correct forum to post this in, if it's not, go ahead and move it.

    So anyways I am in quite a bundle, I am clueless as to how to accomplish this feat.

    Coding it in vb 2008.

    I need help/the knowledge on how to add "0x" before every line of text, and after.

    For example, I have this;


    09070400 3c080907
    09070404 8d09fffc
    09070408 25390050
    0907040c 1338ff05
    09070414 25ef0001
    09070418 a12f0000
    0907041c 1000fefb
    09070424 25290001
    09070428 03e00008

    I would like help coding something that automatically does it, and adds 0x in front, and behind it.

    Such as;

    0x09070400 0x3c080907
    0x09070404 0x8d09fffc
    0x09070408 0x25390050
    0x0907040c 0x1338ff05
    0x09070414 0x25ef0001
    0x09070418 0xa12f0000
    0x0907041c 0x1000fefb
    0x09070424 0x25290001
    0x09070428 0x03e00008

    Thank you,

    ~Starfox

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Need some advice/assistance

    Here is the data coming from a file?
    Look at split...
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    2

    Re: Need some advice/assistance

    Quote Originally Posted by GaryMazzone View Post
    Here is the data coming from a file?
    Look at split...
    No, it is output from a generator, so to speak.

    Might I ask what "split" is?

  4. #4
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Need some advice/assistance

    Look at the String data type. There is something called Split. It will take a line and split it up based on what you say brakes up the peices.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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