you could use a counter like so
*******************************
Dim objFile
dim iCounter
iCounter=0
For Each objFile in objFolder.Files
'Print out the name
If InStr(1, objFile, strSearch, 1) Then
iCounter=iCounter+1
Response.Write "<L1><A...
You can do that but you need to use remote scripting or create a web service and use the webservice behavior(webservice.htc is available for download on the microsoft site)
Here are some links that may help...
use the datediff function
Returns the number of intervals between two dates.
DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])
The DateDiff function syntax has these parts:
Arguments
interval
Required. String expression that is the interval you want to use to calculate...
You could use ado and mdx (Multidimensional Expressions)
use this link for an into to mdx (use topcount function for your needs)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolap/html/intromdx.asp?frame=true
and here is a link showing vb and ado...
First == means they are the same So this statement
document.form1.pwd.value == document.form1.pwd2.value
says that if pwd=pwd2 then execute the code with in the block.
I assumed that you do want them to be not equal to execute the code in the block since you have the alert
alert('The passwords...
try this for your function
function ValidateForm(){
if (document.form1.pwd.value != document.form1.pwd2.value)
{
alert('The passwords did not match');
document.form1.pwd.value = "";
document.form1.pwd2.value = "";
document.form1.pwd.focus()...
I changed this
for (m = temp.options.length - 1; m > 0; m--) temp.options[m] = null;
to
this
for (m = temp.options.length - 1; m >= 0; m--) temp.options[m] = null;
the select starts at 0.
I also put fixed width for the table to prevent jumping around.
try this:
<HTML>
<HEAD>
</HEAD>
<BODY>...
...Case 11:
GetMonthName = "November"
Case 12:
GetMonthName = "December"
Case else:
GetMonthName = "**INVALID MONTH**"
End Select
End Function
'Get current date
Dim dbCurrentDate
dbCurrentDate = Date()
'Create array that will...
...Case 11:
GetMonthName = "November"
Case 12:
GetMonthName = "December"
Case else:
GetMonthName = "**INVALID MONTH**"
End Select
End Function
'Get current date
Dim dbCurrentDate
dbCurrentDate = Date()
'Create array that will...
try this
cookie1 = "Your browser settings are set to reject cookies. You can either
lower your settings by choosing Medium in the Internet Options located in
the Tools Menu or you can visit <a
href='www.abc.com/agentlogin.asp'>www.abc.com/agentlogin.asp</a> to login without using...
You could try something like this
dim sDate
sDate="12/29/2003 - 01/05/2003"
dim arrDate
arrDate=split(sDate," - ")
sdate1=cdate(arrDate(0))
sDate2=cdate(arrDate(1))
if (year(sDate1) <> year(sDate2) ) then
msgbox "Year has changed"
else
msgbox "Year has not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.