how do i loop through a list of variables, and apply a function to each in a loop (instead of indivudually)
for example, right now, i am using the following function, and calling it for each variable:
<%
Function ParseQuotes( _
ByVal strToRenderSafe _
)
ParseQuotes = Replace(strToRenderSafe,""", """")
End Function
pgOne_province=ParseQuotes(Session("provinceofRes"))
pgOne_referralMeth=ParseQuotes(Session("referralMeth"))
pgOne_purpose=ParseQuotes(Session("purpose"))
pgOne_purpose_other=ParseQuotes(Session("purpose_other"))
pgOne_refBy=ParseQuotes(Session("refBy"))
pgOne_refByPhone=ParseQuotes(Session("refByPhone"))
pgOne_CreditLimit=ParseQuotes(Session("CreditLimit"))
pgOne_soleOwner=ParseQuotes(Session("soleOwner"))
pgOne_CA_rel=ParseQuotes(Session("CA_rel"))
----------
but i would like something that goes through each one and applies the fuction automatically.
what is the best way to do this?
thanks in advance
for example, right now, i am using the following function, and calling it for each variable:
<%
Function ParseQuotes( _
ByVal strToRenderSafe _
)
ParseQuotes = Replace(strToRenderSafe,""", """")
End Function
pgOne_province=ParseQuotes(Session("provinceofRes"))
pgOne_referralMeth=ParseQuotes(Session("referralMeth"))
pgOne_purpose=ParseQuotes(Session("purpose"))
pgOne_purpose_other=ParseQuotes(Session("purpose_other"))
pgOne_refBy=ParseQuotes(Session("refBy"))
pgOne_refByPhone=ParseQuotes(Session("refByPhone"))
pgOne_CreditLimit=ParseQuotes(Session("CreditLimit"))
pgOne_soleOwner=ParseQuotes(Session("soleOwner"))
pgOne_CA_rel=ParseQuotes(Session("CA_rel"))
----------
but i would like something that goes through each one and applies the fuction automatically.
what is the best way to do this?
thanks in advance