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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set up string constant like vbcrlf

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
GB
Is it possible to set up a string constant containing a binary or hex value. The code below achieves what I want:
Code:
Private Const FldDelim As String = "ÿ"
but ideally I'd use something like:
Code:
Private Const FldDelim As String = Chr(255) 'This
Private Const FldDelim As String = "&HFF"   'or this
but one is illegal and the other is nonsense. If there is an answer, I imagine it's very simple!

Thanks in advance.
 
This is precisely one of those things we had hoped to see corrected in VB7, which we never got.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top