Quoted Function vb 2005?

lameness

Member
Joined
Jun 6, 2008
Messages
5
Programming Experience
Beginner
Hello,

I am interested to know if vb.et 2005 has the equivalent of the quoted function from previous vb version.

Eg. (from vb6)

Quoted(Format(dtEntered(1).Value, "yyyy-mm-dd")

this code would put quotes around the value.....

I cant find anything like it in vb.net....can anyone help?

Thanks in advance
 
VB.NET:
Shared Function Quoted(Dim o as Object) As String
  Return String.Format("""{0}""", o)
End Function
 
Back
Top