ASP.NET common functions

xiaoxiao2021-03-06  81

ABS (Number)

The absolute value of the value is obtained.

ASC (String)

A string expression of the first character

ASCII

code.

ATN (Number)

A angle cutting value is obtained.

CallbyName (Object, Procname, UsecallType, [Args ()])

Perform an object's method, setting or return the properties of the object.

CBOOL (Expression)

Conversion expression is

Boolean

Type.

CBYTE (Expression)

Conversion expression is

Byte

Type.

Cchar (Expression)

The conversion expression is a character type.

CDATE (Expression)

Conversion expression is

Date

Type.

CDBL (Expression)

Conversion expression is

Double

Type.

CDEC (Expression)

Conversion expression is

Decimal

Type.

CINT (Expression)

Conversion expression is

Integer

Type.

CLNG (Expression)

Conversion expression is

Long

Type.

COBJ (Expression)

Conversion expression is

Object

Type.

Cshort (Expression)

Conversion expression is

Short

Type.

CSNG (Expression)

Conversion expression is

Single

Type.

CSTR (Expression)

Conversion expression is

String

Type.

Choose (index, choice-1 [, choice-2, ... [, choice-n]])

Select and return to the set parameters with an index value.

CHR (Charcode)

In

ASCII

Code to get character content.

Close (filenumberlist)

End of use

Open

Open file.

Cos (Number)

Take an angle cosine value.

CType (Expression, TypeName)

Convert expression of the expression.

Dateadd (DateInterval, Number, DateTime)

Add or subtraction of date or time.

DateDiff (DateInterval, Date1, Date2)

Calculate two dates or time differences.

DatePart (DateInterval, Date)

By receiving date or time parameters back to year, month, day or time.

Dateserial (Year, Month, Day)

Combining the received parameters into one only date

Date

The data of the type.

DateValue (datetime)

A date value that meets the style of the country and contains time.

Day (date)

Pay back the day according to the date parameters received.

Eof (Filenumber)

When the end of the file is arrived, it will be later.

True

.

Exp (Number)

By receiving parameters

e

The secondary value.

FileDatetime (Pathname)

The date of transmitting the file is established, time.

Filelen (Pathname)

The length of the file is transmitted, the unit is

Byte

.

Filter (SourceRay, Match [, include [, compare]])

Search for specified strings in the array array, all array elements contain specified strings, combine them into new strings arbitraries and back. If you want to pass the array elements that do not contain the specified string,

Include

Parameter is set to

False

.

Compare

The parameter is whether it is case sensitive when setting the search. Just give

Textcompare

Constant or

1

I.e.

FIX (Number)

Remove the fractional part of the parameter and pass it back.

Format (Expression [, Style [, Firstdayofweek [, Firstweekofyear]]])

Transform the date, time, and numerical data to the format that can be accepted by each country.

Formatcurrency (Expression [, NumdigitsAfterDecimal [, includeEleadingdigit]])

Output numerical outputs as an amount. NumdigitsAfterDecimal

The parameter is a small number,

IncludeEadingDigit

The parameter is when an integer is

0

Whether it is added to the number of characters.

Formator (Date [, namedFormat])

Retrieve the formatted date or time data.

FormatNumber (Expression [, NumdigitsAfterDecimal [, IncludeEdingDigit]])

Reverse formatting

Numerical data.

NumdigitsAfterDecimal

The parameter is a small number,

IncludeEadingDigit

The parameter is when an integer is

0

Whether it is added to the number of characters.

Formatpercent (Expression [, NumdigitsAfterDecimal [, IncludeEdingDigit]])

Revert to convert to a percentage format value data.

NumdigitsAfterDecimal

The parameter is a small number,

IncludeEadingDigit

The parameter is when an integer is

0

Whether it is added to the number of characters.

Getattr (filename)

Remove the properties value of the file or directory.

HEX (Number)

Convert numeric parameters to

16

Enter value.

Hour (Time)

The hourly field of the back time is

Integer

.

IIF (Expression, TruePart, Falsepart)

When the transmission value of the expression is

True

Execution

Truepart

The program of the field,

Falsepart

Field.

INSTR ([Start,] string1, string2)

search

String2

The character set by the parameter appears in the first few characters of the string,

Start

Search for the first character,

String1

For the string to search for,

String2

To search for characters.

Int (Number)

The maximum integer value is transmitted less than or equal to the reception parameter.

Isarray (varName)

Determine if a variable is an array pattern, if an array is returned

True

It is that it is

False

.

Isdate (Expression)

Decades if the expression content is

Datetime

Strike, if it is back

True

It is that it is

False

.

ISDBNULL (EXPRESSION)

Decades if the expression content is

NULL

If it is back

True

It is that it is

False

.

IsNumeric (Expression)

Judging whether the expression content is a numerical state, if it is back

True

It is that it is

False

.

Join (SourceRay [, DELIMITER])

Combine the character strings and unique strings,

Delimiter

The parameter is set to add new strings between each element.

LCASE (String)

Convert strings to lowercase fonts.

LEFT (String, Length)

Get it from the left side of the string

Length

The parameter sets the length of the character.

Len (String)

Take the length of the string.

Log (NUMBER)

Natural logarithm of obtaining a value.

Ltrim (String)

Remove the left blank portion of the string.

MID (String, Start [, Length])

Remove the string

Strat

After the character sets the character set

Length

Length string, if

Length

The parameter is not set, then retrieve

Start

All characters in the future.

Minute (time)

The partial part of the time content is obtained.

Integer

.

Mkdir (PATH)

Establish a new directory.

Month (Date)

The monthly part of the date, the type is

Integer

.

Monthname (Month)

The full way to get the month is obtained according to the received month value. Now ()

Obtain the current date and time.

OCT (Number)

Convert numeric parameters to

8

Enter value.

Replace (Expression, Find, Replace)

In the string

Find

The string specified by the parameter is converted to

Replace

The string specified by the parameter.

Right (String, Length)

Get it from the right side of the string

Length

The parameter sets the length of the character.

RMDir (PATH)

Remove an empty directory.

RND ()

Gain

0

Until

1

Between the decimal, if you have different values ​​each time, you need to add it before use.

Randomize

Narrative.

Rtrim (String)

Remove the right blank section of the string.

SECOND (TIME)

The second part of the time content is obtained.

Integer

.

Sign (Number)

The value of the obtained value is a positive or negative number, and the positive transmission is back.

1

Negative number

-1

,

0

Pass back

0

.

Sin (Number)

Take a sinusoidal value of an angle.

Space (Number)

Obtain

Number

Blank string set by parameters.

Split (Expression [, Delimiter])

In

Delimiter

The conditional string set by the parameter is divided into a string array.

SQRT (NUMBER)

A number worth the square root.

STR (Number)

Transfer the number to a string.

Strreverse (Expression)

The result of the string content reverse.

Tan (Number)

Take a positive cut value of an angle.

TimeOfDay ()

It is time to obtain the current time.

Timer ()

Obtain by

0:00

The number of seconds in the current time is

Double

.

TimeSerial (Hour, Minute, Second)

Combining the received parameters into one time

Date

The data of the type.

TimaValue (Time)

A time value that meets the style of the country is obtained.

Today ()

Take the date that does not contain time today.

Trim (String)

Remove the head of the string and the end of the end.

Typename (varName)

Type of variables or objects.

Ubound (arrayname [, dimension])

Get the final index value of the array,

Dimension

The parameters are the final index value that specifies the session.

Ucase (String)

Convert the string to uppercase.

Val (String)

Convert a string of characters represent to a numerical state. If the contents containing non-numbers in the string are removed, the merge is a number.

Weekday (date)

The date in the parameters is the first few days of the week, Sunday is

1

Monday

2

On Tuesday

3

So on and so forth.

WeekdayName (Number)

The name of the week is obtained according to the received parameters, and the acceptable parameters are

1

Until

Seduce

Sunday

1

Monday

2

On Tuesday

3

So on and so forth.

转载请注明原文地址:https://www.9cbs.com/read-107474.html

New Post(0)