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)
Printable View
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)
to "left pad" a number with spaces try this
Dim i as Integer
i = 15
MsgBox "'" & Format(CStr(i), "@@@") & "'"