Results 1 to 2 of 2

Thread: Writing in binary mode using a variable

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    38

    Writing in binary mode using a variable

    So basically, my question is how do I get this accomplished?

    stream.WriteByte(&H & byt6)

    I want it to recognize the variable as a hex byte, in vb6 i could have done something along the lines of chr$("&H" & byt6)

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Writing in binary mode using a variable

    What are you actually saying? You want to write a text file that contains hexadecimal byte values or you want to write byte values to a binary file? They are quite different and your description is far from clear.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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