⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbscript_ref_functions.asp

📁 W3Schools tutorial..web designing
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>VBScript Functions</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<link rel="stylesheet" type="text/css" href="../stdtheme.css" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>

<body>
<a name="top"></a>

<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*txtimg*/
google_ad_slot = "5330033957";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<noscript>
<a href="../default.asp" target="_blank"><img src="../banners/w6.gif" border="0" alt="W3Schools" /></a>
</noscript>

<br /></th>
</tr>
</table>

<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<b>VBScript Tutorial</b><br />
<a class="left" target="_top" href="default.asp" >VB HOME</a><br />
<a class="left" target="_top" href="vbscript_intro.asp" >VB Introduction</a><br />
<a class="left" target="_top" href="vbscript_howto.asp" >VB How to</a><br />
<a class="left" target="_top" href="vbscript_whereto.asp" >VB Where to</a><br />
<a class="left" target="_top" href="vbscript_variables.asp" >VB Variables</a><br />
<a class="left" target="_top" href="vbscript_procedures.asp" >VB Procedures</a><br />
<a class="left" target="_top" href="vbscript_conditionals.asp" >VB Conditional</a><br />
<a class="left" target="_top" href="vbscript_looping.asp" >VB Looping</a><br />
<a class="left" target="_top" href="vbscript_summary.asp" >VB Summary</a><br />
<br />
<b>Examples</b><br />
<a class="left" target="_top" href="vbscript_examples.asp" >VB Examples</a><br />
<br />
<b>References</b><br />
<a class="left" target="_top" href="vbscript_ref_functions.asp" style='font-weight:bold;'>VB Functions</a><br />
<a class="left" target="_top" href="vbscript_ref_keywords.asp" >VB Keywords</a><br />


<br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="../quality/default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>

<h1>VBScript Functions</h1>
<a href="vbscript_examples.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="vbscript_ref_keywords.asp"><img alt="next" border="0" src="../images/btn_next.gif" /></a>
<hr />

<p>This page contains all the built-in VBScript functions. The page is divided into following sections:</p>
<table border="0" width="100%">
  <tr>
    <td width="33%" valign="top" align="left">
    <ul>
      <li><a href="#date">Date/Time functions</a></li>
      <li><a href="#conversion">Conversion functions</a></li>
      <li><a href="#format">Format functions</a></li>
    </ul>
    </td>
    <td width="33%" valign="top" align="left">
    <ul>
      <li><a href="#math">Math functions</a></li>
      <li><a href="#array">Array functions</a></li>
    </ul>
    </td>
    <td width="34%" valign="top" align="left">
    <ul>
      <li><a href="#string">String functions</a></li>
      <li><a href="#other">Other functions</a></li>
    </ul>
    </td>
  </tr>
</table>

<h2><a name="date">Date/Time Functions</a></h2>
<table class="ex" cellspacing="0" width="100%" border="1">
  <tr>
    <th width="32%" align="left">Function</th>
    <th width="68%" align="left">Description</th>
  </tr>
  <tr>
    <td valign="top"><a href="func_cdate.asp">CDate</a></td>
    <td valign="top">Converts a valid date and time expression to the variant of 
    subtype Date</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_date.asp">Date</a></td>
    <td valign="top">Returns the current system date</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_dateadd.asp">DateAdd</a></td>
    <td valign="top">Returns a date to which a specified time interval has been 
    added</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_datediff.asp">DateDiff</a></td>
    <td valign="top">Returns the number of intervals between two dates</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_datepart.asp">DatePart</a></td>
    <td valign="top">Returns the specified part of a given date</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_dateserial.asp">DateSerial</a></td>
    <td valign="top">Returns the date for a specified year, 
    month, and day</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_datevalue.asp">DateValue</a></td>
    <td valign="top">Returns a date</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_day.asp">Day</a></td>
    <td valign="top">Returns a number  that represents the day 
    of the month (between 1 and 31, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_formatdatetime.asp">FormatDateTime</a></td>
    <td valign="top">Returns an expression formatted as a date or time</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_hour.asp">Hour</a></td>
    <td valign="top">Returns a number that 
    represents the hour of the day (between 0 and 23, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_isdate.asp">IsDate</a></td>
    <td valign="top">Returns a Boolean value that indicates if the evaluated 
    expression can be converted to a date</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_minute.asp">Minute</a></td>
    <td valign="top">Returns a number that 
    represents the minute of the hour (between 0 and 59, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_month.asp">Month</a></td>
    <td valign="top">Returns a number  that 
    represents the month of the year (between 1 and 12, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_monthname.asp">MonthName</a></td>
    <td valign="top">Returns the name of a specified month</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_now.asp">Now</a></td>
    <td valign="top">Returns the current system date and time</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_second.asp">Second</a></td>
    <td valign="top">Returns a number that 
    represents the second of the minute (between 0 and 59, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_time.asp">Time</a></td>
    <td valign="top">Returns the current 
    system time</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_timer.asp">Timer</a></td>
    <td valign="top">Returns the number of seconds since 12:00 
    AM</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_timeserial.asp">TimeSerial</a></td>
    <td valign="top">Returns the time for a 
    specific hour, minute, and second</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_timevalue.asp">TimeValue</a></td>
    <td valign="top">Returns a time</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_weekday.asp">Weekday</a></td>
    <td valign="top">Returns a number that represents the day of the week 
    (between 1 and 7, inclusive)</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_weekdayname.asp">WeekdayName</a></td>
    <td valign="top">Returns the weekday name of a specified day of the week</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_year.asp">Year</a></td>
    <td valign="top">Returns a number that represents the year</td>
  </tr>
</table>
<br />

<table border="0" width="100%">
  <tr>
    <td width="70%" align="left"><h2><a name="conversion">Conversion Functions</a></h2></td>
    <td width="30%" align="right"><a href="#top">Top</a></td>
  </tr>
</table>
<table class="ex" cellspacing="0" width="100%" border="1">
  <tr>
    <th width="32%" align="left">Function</th>
    <th width="68%" align="left">Description</th>
  </tr>
  <tr>
    <td valign="top"><a href="func_asc.asp">Asc</a></td>
    <td valign="top">Converts the first letter in a string to ANSI code</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_cbool.asp">CBool</a></td>
    <td valign="top">Converts an expression to a variant of subtype Boolean</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_cbyte.asp">CByte</a></td>
    <td valign="top">Converts an expression to a variant of subtype Byte</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_ccur.asp">CCur</a></td>
    <td valign="top">Converts an expression to a variant of subtype Currency</td>
  </tr>
  <tr>
    <td valign="top"><a href="func_cdate.asp">CDate</a></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -