Subroutines
I'm building a system that flags Spam phrases and brings them to the attention of admins. I have a table with a list of about 90 terms and I want to show any rec ords that display them so Admins can determine if they should be deleted. The method I'm using is:
Building String
Code:
oString = "SELECT int_RecordID, txt_RecordName, txt_RecordDescription FROM dbo.qryRecords
WHERE txt_RecordName LIKE '%Viagra%' " & Call subSPAM & "
ORDER BY dte_RecordStarted ASC"
View Replies
I have a script in ASP:
If strReport = "OrderDetail" then
strReport1 = strReport & ".rpt"
End If
If strReport1 <> "" Then
strReport1 = strReport & Year(strPeriod) & ".rpt"
End If
Now based on the kind of value in strReport1, I would like to do 2 different set of work.... Like for instance,
If strReport = "OrderDetail" then
call SubReportDB
End If
If strReport1 <> "" Then
Call SubOrderDetail
End If
Is that the right syntax?
View Replies
View Related
how can I can a sub routine in ASP which has been given attribute runat=server
View Replies
View Related
There is a chapter on SUBROUTINES, FUNCTIONS AND INCLUDES.what is the difference between SUBROUTINES and FUNCTIONS. If not mistaken, in VB, the SUBROUTINES return no value, but FUNCTIONS do have return value.Variable in ASP: global versus local.variable not in betweeb function is Global (what about subrountine, is it the same) and variable in between function is local, am I right?
View Replies
View Related
I am using IIS 5.0, ASP and VBScript. I am puzzled by recurrences of errors when I nest subroutines, and I'd like to know if there are rules for that which I don't know. Would functions work better instead? I am not much of a coder.
View Replies
View Related
In ASP, if I define a subroutine as private
Private Sub mySubroutine(arg1, arg2)
I understand that the variables I define inside the subroutine are local only to the
subroutine. If the same variable is defined outside the subroutine, it won't conflict
(right?) What about variables that are defined outside the subroutine, but not inside? Are they available inside the subroutine?
View Replies
View Related
I am wanting to call a server-side sub when I click on a button.
Code:
<%@ language="vbscript" %>
<%
sub cmdButton_Click
code
end sub
%>
how do I call this sub from an input button.I have tried the onlclick property but it doesn't seem to work. Is this possible.
View Replies
View Related
Can I have this: Code:
<!-- #include file="myFunc.asp" -->
<form name="myform" method="post" action="<% function1(); %>" >
..form stuff
</form>
I tried it but it was as if the page was trying to process the function before the page rendered.
View Replies
View Related
I'm having a bit of trouble with a subroutine I am calling when it is
invoked for the first time. When the subroutine runs, I expect it to return
a value for every time it is called. However, it seems as though the first
time it is run, I don't get any returned values. However, subsequent
returns will get me something back. Code:
View Replies
View Related