[AccessD] Constant for quote characters?

Susan Harkins ssharkins at setel.com
Sat May 12 15:56:43 CDT 2007


Why do you call functions instead of defining constants? 

Susan H. 

My preferred choice is a pair of functions called q() and qq(), which accept
a string and return the string encapsulated in either single or double
quotes.

Function q( s As String)
    q = Chr(39) & s & Chr(39)
End Function

Function qq( s a String )
    qq = Chr(34) & s & Chr(34)
End Function





More information about the AccessD mailing list