How do I use the Server.URLEncode method (in the ASP Type Library) in a normal VB program?
I know I've got it on my machine (I've got PWS installed which uses it) and I've added it to my project's references.
Basically I want to use a line of code like:
Code:sTemp = Server.URLEncode(txtMessage)
I'm using this sotra code to set it up:
But I can't get it to work... I either get an error about ActiveX not being able to create the (Server) object, or object variable or with block not set.Code:Dim objURLFix As Server Set objURLFix = CreateObject("Server")
So come on guys...what's the correct syntax to declare the server object?




Reply With Quote