Dec 15

Safe Escape Function (escp)

Check to see if a value is null prior to passing it to the vb escape function to prevent errors using the escape function.

function escp(input)
	if isnull(input) then
		escp = ""
	else
		escp = escape(input)
	end if
end function

Permanent link to this article: https://www.wperry.net/code/escp/

Leave a Reply

Your email address will not be published.