SharpDevelop VB missing constants

SharpDevelop VB missing constants

GaryOrrMBI
Advisor Advisor
690 Views
2 Replies
Message 1 of 3

SharpDevelop VB missing constants

GaryOrrMBI
Advisor
Advisor

I've been using VB to write code for years now. In every editor that I have ever used I have the constants vbCr and vbLf to add carriage returns and line feeds into strings like so:

 

                    Dim parVal As String
                    For Each param As RDB.Parameter In paramList
                        If param.StorageType = RDB.StorageType.String Then
                            parVal = param.AsString
                        Else
                            parVal = param.AsValueString
                        End If
                        notifyMsg = notifyMsg &
                            param.Definition.Name & ":   " & parVal & vbCr
                    Next

 

yet SharpDevelop does not seem to recognize the vbCr constant.

 

Anyone know why? What I can do about it? My goal is to develop small bits of code (functions and subs) in SharpDevelop where I can easily debug them line by line, then copy and paste them into larger code blocks that I am developing in Visual Studio but... 

 

Gary J. Orr
GaryOrrMBI (MBI Companies 2014-Current)
aka (past user names):
Gary_J_Orr (GOMO Stuff 2008-2014);
OrrG (Forum Studio 2005-2008);
Gary J. Orr (LHB Inc 2002-2005);
Orr, Gary J. (Gossen Livingston 1997-2002)
0 Likes
Accepted solutions (1)
691 Views
2 Replies
Replies (2)
Message 2 of 3

RPTHOMAS108
Mentor
Mentor
Accepted solution

Yes you just need to add the following statement to top of file as this namespace is where they reside:

 

Imports Microsoft.VisualBasic.Constants

0 Likes
Message 3 of 3

GaryOrrMBI
Advisor
Advisor

Thank you kindly.

 

Gary J. Orr
GaryOrrMBI (MBI Companies 2014-Current)
aka (past user names):
Gary_J_Orr (GOMO Stuff 2008-2014);
OrrG (Forum Studio 2005-2008);
Gary J. Orr (LHB Inc 2002-2005);
Orr, Gary J. (Gossen Livingston 1997-2002)
0 Likes