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

How come I can't declare these as constants

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
0
0
US
How come I can't declare these as constants

Public Const QUOTE As String = Chr$(34)
Public Const SKIPLINE As String = Chr$(13) & Chr$(10)

How do you declare these as constants?

Thanks,
Rewdee
 
I can't help you on the first one, but VB has a built in constant for the skipline - vbcrlf.

There may also be a constant for the " character, but I'm not sure.

Michael




 
Hi Rewdee

You could use...

Public Const quote As String = """"

pjm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top