Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


problem passing strings from VBScript to Automatio

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,587
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> problem passing strings from VBScript to Automatio
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 problem passing strings from VBScript to Automatio - 3/2/2002 2:31:45 AM   
  tim_1003

 

Posts: 1
Score: 0
Joined: 3/2/2002
From:
Status: offline
I am having a problem passing strings from VB Script to an automation server.

Here is the VBScript:

Dim strUserPW

Dim strUserName 'Holds the user name
Dim obj
Dim nValid


'Initalize the strUserName variable

set strUserName = Request.Form("txtUserName")
set strUserPW = Request.Form("txtUserPass")


set obj = Server.CreateObject("PtreeCOM.CPtreeSrv.1")
set nValid = obj.VerifyUser(strUserName, strUserPW)

if nValid <> 0 then
'If the password is correct then set the session variable to True
Session("blnIsUserGood") = True
'Close Objects before redirecting
'Redirect to the authorised user page and send the users name
Response.Redirect"authorised_user_page.asp?name=" & strUserName
End If



Here is the interface declaration from the automation server:

STDMETHOD(VerifyUser)(/*[in]*/ BSTR strCustNum, /*[in]*/ BSTR strPwd, /*[out, retval]*/ int* pVal);



The VBScript isn't working...

please help!
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> problem passing strings from VBScript to Automatio Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts