Click to See Complete Forum and Search --> : Padding values


September 14th, 1999, 01:32 PM
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)

Lothar Haensler
September 15th, 1999, 01:53 AM
to "left pad" a number with spaces try this

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