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

Thread: Padding values

  1. #1
    Guest

    Padding values

    The following put command needs to fill up 3 bytes but i dont know how to pad the value so it will. can someone please help


    Put #gFileNum, &H104, CInt(.txtP1Exp)





  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Padding values

    to "left pad" a number with spaces try this

    Dim i as Integer
    i = 15
    MsgBox "'" & Format(CStr(i), "@@@") & "'"





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

Featured