amalik75
asked on
Subscription out of range: '[number: 46]'
Microsoft VBScript runtime error '800a0009'
subscription out of range: '[number: 46]'
/eventRegistrationASP/save registrati on.asp, line 58
subscription out of range: '[number: 46]'
/eventRegistrationASP/save
better post your code then....
ASKER
<%option explicit%>
<!-- #include file="../CommonASP/CommonF unctions.a sp" -->
<!-- #include file="../CommonASP/Replaci ng.asp" -->
<!-- #include file="../CommonASP/DataStr ingToArray .asp" -->
<%
dim intRegCode,intCtr,intCtr1
dim strCompanionName,strRegRec d,strCurrD ate,strChe ckPONum,st rAdditiona lComp,strA pprovalNum ,strDateCa ncelled
dim strArrDate,strDepDate,strO ccupancy,s trRecdBy,s trIRIUser, strUpdated ,strCountr yName,strO fficialEma ilComID
dim strOfficialFaxComID,strOff icialPhone ComID,strP mtCountryN ame,strNom CountryNam e
dim dblAdditionalFee,dblAmtRec d,dblRefun dAmt
dim intFirstTime,intCompFirstM eeting,int NbrAttendi ng,intRepG olfHcap,in tCompGolfH cap,intBow lScore,int CompBowlSc orer
dim intBillTo,intMailTo,intNom Addr,intNo minatorId
dim SessionArray()
Dim AddressArray(0,12)
dim PaymentArray(0,13)
dim ComNumberArray(2,6)
dim BillingArray(0,20)
dim strSessionArray
dim NewSession
dim objSelect
dim objRegInsert
''''''''''Declaration start for mail component '''''''
Dim strtouser
Dim strFromUser
Dim strSubject
Dim strMessage
Dim var_eventName
Dim var_eventDate
Dim var_eventLocation
Dim var_Itinerary
Dim var_eventdetails
Dim rstEventDetails
''''''''''Declaration end for mail component '''''''
Dim blnCompanion,blnRegistrant ,strAddres sType,strT ype,strReg Code
Dim rsTemp,rstRegCode
''''''''''functions for creating arrays and other variables'''''''
Sub CreateSessionArray()
intctr = 0
strSessionArray=""
For intctr1 = 0 To UBound(Session("SessionGro up"), 2)
If Session("SessionGroup")(1, intctr1) <> "No" Then
blnCompanion = "0"
blnRegistrant = "0"
If Session("SessionGroup")(2, intctr1) = "R" Then
If Session("SessionGroup")(0, intctr1) = Session("SessionGroup")(0, intctr1 + 1) And Session("SessionGroup")(1, intctr1 + 1) <> "No" Then
blnCompanion = "1"
End If
Else
If Session("SessionGroup")(0, intctr1) = Session("SessionGroup")(0, intctr1 - 1) And Session("SessionGroup")(1, intctr1 - 1) <> "No" Then
blnRegistrant = "1"
End If
End If
If blnRegistrant = "0" Then
ReDim Preserve SessionArray(10,intctr)
strSessionArray=strSession Array & "A"
SessionArray(0,intctr) = "A"
strSessionArray=strSession Array & "|" & intctr + 1
SessionArray(1,intctr) = intctr + 1
strSessionArray=strSession Array & "|" & ""
SessionArray(2,intctr) = ""
If blnCompanion = "1" Then
strSessionArray=strSession Array & "|2"
SessionArray(3,intCtr) = "2"
Else
strSessionArray=strSession Array & "|1"
SessionArray(3,intctr) = "1"
End If
If Session("SessionGroup")(2, intctr1) = "R" And Session("SessionGroup")(1, intctr1) <> "Yes" Then
strSessionArray=strSession Array & "|" & Session("SessionGroup")(1, intctr1)
SessionArray(4,intctr) = Session("SessionGroup")(1, intctr1)
Else
strSessionArray=strSession Array & "|" & ""
SessionArray(4,intctr) = ""
End If
If blnCompanion = "1" Then
If Session("SessionGroup")(1, intctr1 + 1) <> "Yes" Then
strSessionArray=strSession Array & "|" & Session("SessionGroup")(1, intctr1 + 1)
SessionArray(5, intctr) = Session("SessionGroup")(1, intctr1 + 1)
Else
strSessionArray=strSession Array & "|" & ""
SessionArray(5, intctr) = ""
End If
Else
'If Session("SessionGroup")(1, intctr1) <> "Yes" Then
' strSessionArray=strSession Array & "|" & Session("SessionGroup")(1, intctr1)
' SessionArray(5, intctr) = Session("SessionGroup")(1, intctr1)
'Else
strSessionArray=strSession Array & "|" & ""
SessionArray(5, intctr) = ""
'End If
End If
strSessionArray=strSession Array & "|0" & ""
SessionArray(6, intctr) = "0"
strSessionArray=strSession Array & "|" & ""
SessionArray(7, intctr) = ""
If blnCompanion = "1" Then
strSessionArray=strSession Array & "|" & blnCompanion
SessionArray(8, intctr) = blnCompanion
Else
If Session("SessionGroup")(2, intctr1) = "C" Then
strSessionArray=strSession Array & "|1"
SessionArray(8, intctr) = "1"
Else
strSessionArray=strSession Array & "|0"
SessionArray(8, intctr) = "0"
End If
End If
strSessionArray=strSession Array & "|" & Session("SessionGroup")(0, intctr1)
SessionArray(9, intctr) = Session("SessionGroup")(0, intctr1)
strSessionArray=strSession Array & "|" & "" & "^"
SessionArray(10, intctr) = ""
If blnCompanion = "1" Then
intctr1 = intctr1 + 1
End If
intctr = intctr + 1
End If
End If
Next
if strSessionArray>"" then
strSessionArray=left(strSe ssionArray ,len(strSe ssionArray )-1)
end if
NewSession=MakeTwoDimentio nalArray(s trSessionA rray)
End Sub
Sub CreateAddressArray()
'ReDim Preserve AddressArray(10,0)
if Session("blnAddress")=true then
AddressArray(0,0) = "U"
else
AddressArray(0,0) = "A"
end if
AddressArray(0,1) = "1"
if objSelect.DoExecSelect("tb lAddressTy peByType", "Employer" ) <>false then
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strType=trim(rsTemp("A_Id" )) & ""
end if
set rsTemp=nothing
end if
AddressArray(0,2) = strType
AddressArray(0,3) = Session("MemberInfoArray") (intAddres s)
AddressArray(0,4) = Session("MemberInfoArray") (intCity)
AddressArray(0,5) = Session("MemberInfoArray") (intState)
AddressArray(0,6) = Session("MemberInfoArray") (intZip)
if Session("MemberInfoArray") (intCountr y)<>"-1" then
if objSelect.DoExecSelect("tb lCountry", Session("M emberInfoA rray")(int Country)) <>false then
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strCountryName=trim(rsTemp ("CountryN ame")) & ""
end if
set rsTemp=nothing
end if
AddressArray(0,7) = strCountryName
else
AddressArray(0,7) = ""
end if
AddressArray(0,8) = ""
AddressArray(0,9) = ""
AddressArray(0,10) = Session("AddressID")
AddressArray(0,11) = ""
AddressArray(0,12) = ""
End Sub
Sub CreatePaymentArray()
strCurrDate=now() 'to be removed
'ReDim Preserve PaymentArray(12, 0)
PaymentArray(0,0) = "A"
PaymentArray(0,1) = "1"
PaymentArray(0,2) = Session("PaymentInfoArray" )(intPmtCa rdName)
PaymentArray(0,3) = strCurrDate
PaymentArray(0,4) = Session("PaymentInfoArray" )(intPmtCa rdHolder)
PaymentArray(0,5) = "***" & right(Session("PaymentInfo Array")(in tPmtCardNo ),4)
PaymentArray(0,6) = Session("PaymentInfoArray" )(intPmtEx pMonth)
PaymentArray(0,7) = Session("PaymentInfoArray" )(intPmtEx pYear)
PaymentArray(0,8) = ""
PaymentArray(0,9) = Session("EventTotalCost")
PaymentArray(0,10) = "0"
PaymentArray(0,11)= "0"
PaymentArray(0,12)= Session("MemberInfoArray") (intName)
PaymentArray(0,13)= "0"
End Sub
Sub CreateComNumberArray()
if objSelect.DoExecSelect("tb lComTypeAl l") <>false then
set rsTemp = objSelect.rsMain
do while not rsTemp.eof
if rsTemp("Type")="Office" then
strOfficialPhoneComID=rsTe mp("Commun icationID" )
elseif rsTemp("Type")="FAX" then
strOfficialFaxComID=rsTemp ("Communic ationID")
elseif rsTemp("Type")="E-Mail" then
strOfficialEmailComID=rsTe mp("Commun icationID" )
end if
rsTemp.movenext
loop
end if
set rsTemp=nothing
'ReDim Preserve ComNumberArray(3,0)
if Session("blnOfficePhone")= true then
ComNumberArray(0,0) = "U"
else
ComNumberArray(0,0) = "A"
end if
ComNumberArray(0,1) = "1"
ComNumberArray(0,2) = strOfficialPhoneComID
ComNumberArray(0,3) = Session("MemberInfoArray") (intOffice Phone)
ComNumberArray(0,4) = Session("PhoneComId")
ComNumberArray(0,5) = ""
ComNumberArray(0,6) = ""
'ReDim Preserve ComNumberArray(3, 1)
if Session("blnOfficeFax")=tr ue then
ComNumberArray(1,0) = "U"
else
ComNumberArray(1,0) = "A"
end if
ComNumberArray(1,1) = "2"
ComNumberArray(1,2) = strOfficialFaxComID
ComNumberArray(1,3) = Session("MemberInfoArray") (intOffice Fax)
ComNumberArray(1,4) = Session("FaxComId")
ComNumberArray(1,5) = ""
ComNumberArray(1,6) = ""
'ReDim Preserve ComNumberArray(3, 2)
if Session("blnOfficeEmail")= true then
ComNumberArray(2,0) = "U"
else
ComNumberArray(2,0) = "A"
end if
ComNumberArray(2,1)= "3"
ComNumberArray(2,2) = strOfficialEmailComID
ComNumberArray(2,3) = Session("MemberInfoArray") (intOffice Email)
ComNumberArray(2,4) =Session("EmailComId")
ComNumberArray(2,5) = ""
ComNumberArray(2,6) = ""
End Sub
Sub CreateBillingArray()
'ReDim Preserve BillingArray(9, 0)
BillingArray(0,0) = "A"
BillingArray(0,1) = "1"
BillingArray(0,2) =Session("PaymentInfoArray ")(intPmtF ullName)
BillingArray(0,3) =Session("PaymentInfoArray ")(intPmtC ompanyName )
BillingArray(0,4) =Session("PaymentInfoArray ")(intPmtA ddress)
BillingArray(0,5) =Session("PaymentInfoArray ")(intPmtC ity)
BillingArray(0,6) =Session("PaymentInfoArray ")(intPmtS tate)
BillingArray(0,7) =Session("PaymentInfoArray ")(intPmtZ ip)
BillingArray(0,8) =Session("PaymentInfoArray ")(intPmtP hone)
if Session("PaymentInfoArray" )(intPmtCo untry)<>"- 1" then
if objSelect.DoExecSelect("tb lCountry", Session("P aymentInfo Array")(in tPmtCountr y)) <>false then
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strPmtCountryName=trim(rsT emp("Count ryName")) & ""
end if
set rsTemp=nothing
end if
BillingArray(0,9) = strPmtCountryName
else
BillingArray(0,9) = ""
end if
'''''
BillingArray(0,10) =Session("MemberInfoArray" )(intNomPr efix)
BillingArray(0,11) =Session("MemberInfoArray" )(intNomFi rstName)
BillingArray(0,12) =Session("MemberInfoArray" )(intNomMI )
BillingArray(0,13) =Session("MemberInfoArray" )(intNomLa stName)
BillingArray(0,14) =Session("MemberInfoArray" )(intNomTi tle)
BillingArray(0,15) =Session("MemberInfoArray" )(intNomAd dress)
BillingArray(0,16) =Session("MemberInfoArray" )(intNomCi ty)
BillingArray(0,17) =Session("MemberInfoArray" )(intNomSt ate)
BillingArray(0,18) =Session("MemberInfoArray" )(intNomZi p)
if Session("MemberInfoArray") (intNomCou ntry) <> "-1" and Session("MemberInfoArray") (intNomCou ntry) > "" then
if objSelect.DoExecSelect("tb lCountry", Session("M emberInfoA rray")(int NomCountry )) <>false then
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strNomCountryName=trim(rsT emp("Count ryName")) & ""
end if
set rsTemp=nothing
end if
BillingArray(0,19) = strNomCountryName
else
BillingArray(0,19) = ""
end if
''''''
BillingArray(0,20) = "0"
End Sub
Sub CreateOtherVariables()
'strCompanionName=Session( "MemberInf oArray")(i ntComPrefi x) & " " & Session("MemberInfoArray") (intComFir stName)
'if Session("MemberInfoArray") (intComMI) >"" then
' strCompanionName=strCompan ionName & " " & Session("MemberInfoArray") (intComMI)
'end if
'strCompanionName=strCompa nionName & " " & Session("MemberInfoArray") (intComLas tName)
strCompanionName=Session(" MemberInfo Array")(in tComLastNa me)
strArrDate=Session("Member InfoArray" )(intHotAr rDay) & "-" & mid(monthname(Session("Mem berInfoArr ay")(intHo tArrMonth) ),1,3) & "-" & Session("MemberInfoArray") (intHotArr Year)
strDepDate=Session("Member InfoArray" )(intHotDe pDay) & "-" & mid(monthname(Session("Mem berInfoArr ay")(intHo tDepMonth) ),1,3) & "-" & Session("MemberInfoArray") (intHotDep Year)
intNominatorId=0 ' to be changed
if trim(Session("MemberInfoAr ray")(intC omLastName ))>"" then
If objSelect.DoExecSelect("tb lRegistrat ionCodesBy Descriptio n","Partic ipant with companion")=true Then
Set rstRegCode = objSelect.rsMain
strRegCode=rstRegCode("Reg Code")
else
strRegCode=""
End if
else
If objSelect.DoExecSelect("tb lRegistrat ionCodesBy Descriptio n","Partic ipant")=tr ue Then
Set rstRegCode = objSelect.rsMain
strRegCode=rstRegCode("Reg Code")
else
strRegCode=""
End if
end if
set rstRegCode=nothing
strRegRecd=Now()
strCurrDate=Now()
dblAdditionalFee=0
strCheckPONum=""
dblAmtRecd=Session("EventT otalCost") ' it is the total cost of the event
dblRefundAmt=0
intFirstTime=0
intCompFirstMeeting=0
strAdditionalComp=""
intNbrAttending=0
strApprovalNum=""
strDateCancelled="null"
strOccupancy=""
intRepGolfHCap=0
intCompGolfHCap=0
intBowlScore=0
intCompBowlScorer=0
strRecdBy=""
strIRIUser=""
strUpdated=Now()
intBillTo=0
intMailTo=0
intNomAddr=0 ' to be changed
End Sub
''''''''''functions for creating arrays and other variables*************ende d
Set objSelect = server.CreateObject("WebBC .clsSelect ")
objSelect.connString = Session("strConnectionStri ng")
objSelect.DoOpenConnection
Set objRegInsert = server.CreateObject("WebBC .clsRegist ration")
objRegInsert.connString = Session("strConnectionStri ng")
objRegInsert.DoOpenConnect ion
'''''''''making of SessionGroup array
Call CreateSessionArray()
If Session("MemberInfoArray") (intIsUpda te)="ON" then
'''''''''making of address array
Call CreateAddressArray()
'''''''''making of Com Number array
Call CreateComNumberArray()
end if
'''''''''making of Payment array
Call CreatePaymentArray()
'''''''''making of Payment array
Call CreateBillingArray
'''creation of other variables
Call CreateOtherVariables()
intRegCode=objRegInsert.Do ExecInsert Registrati on(Session ("MemberIn foArray")( intName),s trRegCode, _
Session("SessionEventId"), intNominat orId,strRe gRecd,strC urrDate,_
Session("PaymentInfoArray" )(intPmtCa rdName),db lAdditiona lFee,strCh eckPONum,_
"***" & right(session("PaymentInfo Array")(in tPmtCardNo ),4),dblAm tRecd,dblR efundAmt,s trCurrDate ,intFirstT ime,_
strCompanionName, intCompFirstMeeting,strAdd itionalCom p,intNbrAt tending,_
session("MemberInfoArray") (intBadgeN ame),strAp provalNum, strDateCancelled,strArrDat e,_
strDepDate,Session("Member InfoArray" )(intHotSm oking),str Occupancy, Session("MemberInfoArray") (intHotDie tary),_
Session("MemberInfoArray") (intHotSpe cial),intR epGolfHcap ,intCompGo lfHcap,int BowlScore, _
intCompBowlScorer,strRecdB y,strIRIUs er,strUpda ted,intBil lTo,intMai lTo,intNom Addr,_
Session("MemberInfoArray") (intEmerge ncyName),S ession("Me mberInfoAr ray")(intE mergencyPh one),_
Session("MemberInfoArray") (intHotRoo ming),Sess ion("Membe rInfoArray ")(intMisc 1),_
Session("MemberInfoArray") (intMisc2) ,Session(" MemberInfo Array")(in tMisc3),_
Session("MemberInfoArray") (intMisc4) ,NewSessio n,PaymentA rray,Addre ssArray,Co mNumberArr ay,Billing Array)
''''''''''''''code to send execution to Event_Itenerary.asp
if intRegCode>0 then
Session("RegCode")=intRegC ode
Response.redirect "Event_Itinerary.asp"
else
Response.redirect "errormsg.asp"
end if%>
<!-- #include file="../CommonASP/CommonF
<!-- #include file="../CommonASP/Replaci
<!-- #include file="../CommonASP/DataStr
<%
dim intRegCode,intCtr,intCtr1
dim strCompanionName,strRegRec
dim strArrDate,strDepDate,strO
dim strOfficialFaxComID,strOff
dim dblAdditionalFee,dblAmtRec
dim intFirstTime,intCompFirstM
dim intBillTo,intMailTo,intNom
dim SessionArray()
Dim AddressArray(0,12)
dim PaymentArray(0,13)
dim ComNumberArray(2,6)
dim BillingArray(0,20)
dim strSessionArray
dim NewSession
dim objSelect
dim objRegInsert
''''''''''Declaration start for mail component '''''''
Dim strtouser
Dim strFromUser
Dim strSubject
Dim strMessage
Dim var_eventName
Dim var_eventDate
Dim var_eventLocation
Dim var_Itinerary
Dim var_eventdetails
Dim rstEventDetails
''''''''''Declaration end for mail component '''''''
Dim blnCompanion,blnRegistrant
Dim rsTemp,rstRegCode
''''''''''functions for creating arrays and other variables'''''''
Sub CreateSessionArray()
intctr = 0
strSessionArray=""
For intctr1 = 0 To UBound(Session("SessionGro
If Session("SessionGroup")(1,
blnCompanion = "0"
blnRegistrant = "0"
If Session("SessionGroup")(2,
If Session("SessionGroup")(0,
blnCompanion = "1"
End If
Else
If Session("SessionGroup")(0,
blnRegistrant = "1"
End If
End If
If blnRegistrant = "0" Then
ReDim Preserve SessionArray(10,intctr)
strSessionArray=strSession
SessionArray(0,intctr) = "A"
strSessionArray=strSession
SessionArray(1,intctr) = intctr + 1
strSessionArray=strSession
SessionArray(2,intctr) = ""
If blnCompanion = "1" Then
strSessionArray=strSession
SessionArray(3,intCtr) = "2"
Else
strSessionArray=strSession
SessionArray(3,intctr) = "1"
End If
If Session("SessionGroup")(2,
strSessionArray=strSession
SessionArray(4,intctr) = Session("SessionGroup")(1,
Else
strSessionArray=strSession
SessionArray(4,intctr) = ""
End If
If blnCompanion = "1" Then
If Session("SessionGroup")(1,
strSessionArray=strSession
SessionArray(5, intctr) = Session("SessionGroup")(1,
Else
strSessionArray=strSession
SessionArray(5, intctr) = ""
End If
Else
'If Session("SessionGroup")(1,
' strSessionArray=strSession
' SessionArray(5, intctr) = Session("SessionGroup")(1,
'Else
strSessionArray=strSession
SessionArray(5, intctr) = ""
'End If
End If
strSessionArray=strSession
SessionArray(6, intctr) = "0"
strSessionArray=strSession
SessionArray(7, intctr) = ""
If blnCompanion = "1" Then
strSessionArray=strSession
SessionArray(8, intctr) = blnCompanion
Else
If Session("SessionGroup")(2,
strSessionArray=strSession
SessionArray(8, intctr) = "1"
Else
strSessionArray=strSession
SessionArray(8, intctr) = "0"
End If
End If
strSessionArray=strSession
SessionArray(9, intctr) = Session("SessionGroup")(0,
strSessionArray=strSession
SessionArray(10, intctr) = ""
If blnCompanion = "1" Then
intctr1 = intctr1 + 1
End If
intctr = intctr + 1
End If
End If
Next
if strSessionArray>"" then
strSessionArray=left(strSe
end if
NewSession=MakeTwoDimentio
End Sub
Sub CreateAddressArray()
'ReDim Preserve AddressArray(10,0)
if Session("blnAddress")=true
AddressArray(0,0) = "U"
else
AddressArray(0,0) = "A"
end if
AddressArray(0,1) = "1"
if objSelect.DoExecSelect("tb
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strType=trim(rsTemp("A_Id"
end if
set rsTemp=nothing
end if
AddressArray(0,2) = strType
AddressArray(0,3) = Session("MemberInfoArray")
AddressArray(0,4) = Session("MemberInfoArray")
AddressArray(0,5) = Session("MemberInfoArray")
AddressArray(0,6) = Session("MemberInfoArray")
if Session("MemberInfoArray")
if objSelect.DoExecSelect("tb
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strCountryName=trim(rsTemp
end if
set rsTemp=nothing
end if
AddressArray(0,7) = strCountryName
else
AddressArray(0,7) = ""
end if
AddressArray(0,8) = ""
AddressArray(0,9) = ""
AddressArray(0,10) = Session("AddressID")
AddressArray(0,11) = ""
AddressArray(0,12) = ""
End Sub
Sub CreatePaymentArray()
strCurrDate=now() 'to be removed
'ReDim Preserve PaymentArray(12, 0)
PaymentArray(0,0) = "A"
PaymentArray(0,1) = "1"
PaymentArray(0,2) = Session("PaymentInfoArray"
PaymentArray(0,3) = strCurrDate
PaymentArray(0,4) = Session("PaymentInfoArray"
PaymentArray(0,5) = "***" & right(Session("PaymentInfo
PaymentArray(0,6) = Session("PaymentInfoArray"
PaymentArray(0,7) = Session("PaymentInfoArray"
PaymentArray(0,8) = ""
PaymentArray(0,9) = Session("EventTotalCost")
PaymentArray(0,10) = "0"
PaymentArray(0,11)= "0"
PaymentArray(0,12)= Session("MemberInfoArray")
PaymentArray(0,13)= "0"
End Sub
Sub CreateComNumberArray()
if objSelect.DoExecSelect("tb
set rsTemp = objSelect.rsMain
do while not rsTemp.eof
if rsTemp("Type")="Office" then
strOfficialPhoneComID=rsTe
elseif rsTemp("Type")="FAX" then
strOfficialFaxComID=rsTemp
elseif rsTemp("Type")="E-Mail" then
strOfficialEmailComID=rsTe
end if
rsTemp.movenext
loop
end if
set rsTemp=nothing
'ReDim Preserve ComNumberArray(3,0)
if Session("blnOfficePhone")=
ComNumberArray(0,0) = "U"
else
ComNumberArray(0,0) = "A"
end if
ComNumberArray(0,1) = "1"
ComNumberArray(0,2) = strOfficialPhoneComID
ComNumberArray(0,3) = Session("MemberInfoArray")
ComNumberArray(0,4) = Session("PhoneComId")
ComNumberArray(0,5) = ""
ComNumberArray(0,6) = ""
'ReDim Preserve ComNumberArray(3, 1)
if Session("blnOfficeFax")=tr
ComNumberArray(1,0) = "U"
else
ComNumberArray(1,0) = "A"
end if
ComNumberArray(1,1) = "2"
ComNumberArray(1,2) = strOfficialFaxComID
ComNumberArray(1,3) = Session("MemberInfoArray")
ComNumberArray(1,4) = Session("FaxComId")
ComNumberArray(1,5) = ""
ComNumberArray(1,6) = ""
'ReDim Preserve ComNumberArray(3, 2)
if Session("blnOfficeEmail")=
ComNumberArray(2,0) = "U"
else
ComNumberArray(2,0) = "A"
end if
ComNumberArray(2,1)= "3"
ComNumberArray(2,2) = strOfficialEmailComID
ComNumberArray(2,3) = Session("MemberInfoArray")
ComNumberArray(2,4) =Session("EmailComId")
ComNumberArray(2,5) = ""
ComNumberArray(2,6) = ""
End Sub
Sub CreateBillingArray()
'ReDim Preserve BillingArray(9, 0)
BillingArray(0,0) = "A"
BillingArray(0,1) = "1"
BillingArray(0,2) =Session("PaymentInfoArray
BillingArray(0,3) =Session("PaymentInfoArray
BillingArray(0,4) =Session("PaymentInfoArray
BillingArray(0,5) =Session("PaymentInfoArray
BillingArray(0,6) =Session("PaymentInfoArray
BillingArray(0,7) =Session("PaymentInfoArray
BillingArray(0,8) =Session("PaymentInfoArray
if Session("PaymentInfoArray"
if objSelect.DoExecSelect("tb
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strPmtCountryName=trim(rsT
end if
set rsTemp=nothing
end if
BillingArray(0,9) = strPmtCountryName
else
BillingArray(0,9) = ""
end if
'''''
BillingArray(0,10) =Session("MemberInfoArray"
BillingArray(0,11) =Session("MemberInfoArray"
BillingArray(0,12) =Session("MemberInfoArray"
BillingArray(0,13) =Session("MemberInfoArray"
BillingArray(0,14) =Session("MemberInfoArray"
BillingArray(0,15) =Session("MemberInfoArray"
BillingArray(0,16) =Session("MemberInfoArray"
BillingArray(0,17) =Session("MemberInfoArray"
BillingArray(0,18) =Session("MemberInfoArray"
if Session("MemberInfoArray")
if objSelect.DoExecSelect("tb
set rsTemp = objSelect.rsMain
if not (rstemp.eof and rstemp.bof) then
strNomCountryName=trim(rsT
end if
set rsTemp=nothing
end if
BillingArray(0,19) = strNomCountryName
else
BillingArray(0,19) = ""
end if
''''''
BillingArray(0,20) = "0"
End Sub
Sub CreateOtherVariables()
'strCompanionName=Session(
'if Session("MemberInfoArray")
' strCompanionName=strCompan
'end if
'strCompanionName=strCompa
strCompanionName=Session("
strArrDate=Session("Member
strDepDate=Session("Member
intNominatorId=0 ' to be changed
if trim(Session("MemberInfoAr
If objSelect.DoExecSelect("tb
Set rstRegCode = objSelect.rsMain
strRegCode=rstRegCode("Reg
else
strRegCode=""
End if
else
If objSelect.DoExecSelect("tb
Set rstRegCode = objSelect.rsMain
strRegCode=rstRegCode("Reg
else
strRegCode=""
End if
end if
set rstRegCode=nothing
strRegRecd=Now()
strCurrDate=Now()
dblAdditionalFee=0
strCheckPONum=""
dblAmtRecd=Session("EventT
dblRefundAmt=0
intFirstTime=0
intCompFirstMeeting=0
strAdditionalComp=""
intNbrAttending=0
strApprovalNum=""
strDateCancelled="null"
strOccupancy=""
intRepGolfHCap=0
intCompGolfHCap=0
intBowlScore=0
intCompBowlScorer=0
strRecdBy=""
strIRIUser=""
strUpdated=Now()
intBillTo=0
intMailTo=0
intNomAddr=0 ' to be changed
End Sub
''''''''''functions for creating arrays and other variables*************ende
Set objSelect = server.CreateObject("WebBC
objSelect.connString = Session("strConnectionStri
objSelect.DoOpenConnection
Set objRegInsert = server.CreateObject("WebBC
objRegInsert.connString = Session("strConnectionStri
objRegInsert.DoOpenConnect
'''''''''making of SessionGroup array
Call CreateSessionArray()
If Session("MemberInfoArray")
'''''''''making of address array
Call CreateAddressArray()
'''''''''making of Com Number array
Call CreateComNumberArray()
end if
'''''''''making of Payment array
Call CreatePaymentArray()
'''''''''making of Payment array
Call CreateBillingArray
'''creation of other variables
Call CreateOtherVariables()
intRegCode=objRegInsert.Do
Session("SessionEventId"),
Session("PaymentInfoArray"
"***" & right(session("PaymentInfo
strCompanionName, intCompFirstMeeting,strAdd
session("MemberInfoArray")
strDepDate,Session("Member
Session("MemberInfoArray")
intCompBowlScorer,strRecdB
Session("MemberInfoArray")
Session("MemberInfoArray")
Session("MemberInfoArray")
Session("MemberInfoArray")
''''''''''''''code to send execution to Event_Itenerary.asp
if intRegCode>0 then
Session("RegCode")=intRegC
Response.redirect "Event_Itinerary.asp"
else
Response.redirect "errormsg.asp"
end if%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Although that may screw up with other code inside the loop. You may need to do it another way, such as checking to see if intctr1 = UBound(Session("SessionGro up"")), and if it does, then skip the part where you are checking the next item in the array.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by MannSoft
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GaryC123
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by MannSoft
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GaryC123
EE Cleanup Volunteer