ASP grammar Daquan (updated at any time)

xiaoxiao2021-03-06  44

Statement call [call] name [argumentlist] shifts control to function or subroutine. When a function or subroutine is called, the call is writable. But if you use Call, then argumentlist must be enclosed in parentheses. Const [public | private] constantname = expression is used to declare constants. You can declare multiple constants in a row, and you must use a comma to assign a constant assignment statement. DIMDIM VARNAME [([Subscripts])] [, VarName [([Subscripts])] ... Create a new variable and assign storage space. DO. LOOP Syntax 1: Do [{While | Until} Condition] [Statements] [EXITD] LOOP Syntax 2: Do [Statements] [EXIT DO] [Statements] loop [{while | unsil} conputing ] When the condition condition is true or until the condition case is true, both forms repeat the statement. Eraserase Array cleans an array, reinitializing the elements for an array of fixed length; reset storage space for dynamic arrays. ExitExit Do exits a Do.. Loop loop. EXIT FOR exits a for.. Next loop or for each.. Next cycle. EXIT function exits a function. EXIT SUB exits a subroutine. Nextfor counter = start to end [step step] [exit for] NEXT Repeat the Statements statement group by the LOOP counter specified by the LOOP counter. For Each.. Nextfor Each Element in group [statements] Next [ELEMENT] Repeat the Statements statement group for each element in an array or collection. Function [public | private] [statements] [name = expression] [nit = expression] [state "] [name = expression] End function defines a function, indicating function name, parameter, and code. IF.................................................. .. Conditions a series of statements. ON Erroron Error Resume Next When an error occurs, this statement performs the statement behind the error statement, or performs the following statements behind the calling process. Option ExplicitOption Explicit Force prior to use variables to clearly define this variable, you can define variables with DIM, private, public, or redim statements. PrivatePrivate Varname [([Late])] [, VarName "]... Create a private variable and assign the storage space. (Private variables can only be used in the script defined) PublicPublic VarName [([subscript])] [, VarName "].... Create a public variable and assign a storage space.

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

New Post(0)