Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create value with HEX(0C)

Status
Not open for further replies.

WordTechinc

Programmer
Sep 4, 2009
38
I would like to add as new line with HEX(0C)(2F) before Barcode. Could you help the coding?

input = 07017-221360
output = /07017-221360 - want to add HEX(0C) (2F)
- this should be recognize as new starting line.
 
Will this work?
Code:
Dim input As String = "07017-221360"
Dim output As String = Chr(12) & Chr(47) & input 'Hex 0C = Dec 12, Hex 2F = Dec 47
 
Thank you very much DaveInIowa
Your code worked.....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top