Aug 3rd, 2000, 07:18 AM
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:
sTemp = Server.URLEncode(txtMessage)
I'm using this sotra code to set it up:
Dim objURLFix As Server
Set objURLFix = CreateObject("Server")
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.
So come on guys...what's the correct syntax to declare the server object?
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:
sTemp = Server.URLEncode(txtMessage)
I'm using this sotra code to set it up:
Dim objURLFix As Server
Set objURLFix = CreateObject("Server")
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.
So come on guys...what's the correct syntax to declare the server object?