I can't figure out how to get the new Request ID from a Private Function in a class. It is called from a Public Function but only checks to see if it True.
This is the original code. I'm only including the pertinent code:
This is what I tried and didn't work:
This doesn't work. Can someone help me?
Thanks,
Debbie
This is the original code. I'm only including the pertinent code:
Code:
[b][u]process_scripts.asp[/u]
<include file = func_lib.asp>
errMsg = oRequest.ScriptDB[/b]
-------------------------------------------------
[b][u]func_lib.asp[/u]
public function ScriptDB()[/b]
If [b]obj.DBRequest[/b] = True Then
'Response.Write "No problemo"
Else
Response.Write obj.FailedMsg
End If
-------------------------------------------------
[b] [u]clsRequest[/u]
Public[/b] Function [b]DBRequest[/b] () As Boolean
If [b]InsertRequest[/b] = False Then bComplete = False
[b]Private[/b] Function [b]InsertRequest[/b] () As Boolean
[b]m_RequestNumber[/b] = cmdDB.Parameters("Return").Value
This is what I tried and didn't work:
Code:
[b] [u]process_scripts.asp[/u]
<include file = func_lib.asp>
RequestID = oRequest.ScriptDB[/b]
--------------------------------------------------------
[b][u]func_lib.asp[/u]
public function ScriptDB()[/b]
If [b]obj.DBRequest[/b] = True Then
[b]iReqID = iRequestID[/b]
Else
Response.Write obj.FailedMsg
End If
--------------------------------------------------------
[b][u]clsRequest[/u]
Public[/b] Function [b]DBRequest[/b] () As Boolean
If [b]InsertRequest[/b] = False Then
bComplete = False
Else
[b]iRequestID = m_RequestNumber[/b]
End If
[b]Private[/b] Function [b]InsertRequest[/b]() As Boolean
[b]m_RequestNumber[/b] = cmdDB.Parameters("Return").Value
This doesn't work. Can someone help me?
Thanks,
Debbie