.


:




:

































 

 

 

 


InputBox

5_2

 

: For... Next Do... Loop ( ) .

: , , .

:

. , . Visual Basic : For... Next , Do... Loop .

For... Next

, . :

 

For _ = _ To _ [ Step ]

[ ]

[ Exit For ]

[ ]

Next [_]

 

. . 1 . (, ) , . , . Exit For , .

Do While(Until)...Loop / Do...Loop While (Until)

, For , . While(Until) , , . , . , , . Visual Basic :

( );

( ).

. :

Do [{ While | Until } ]

[ ]

[ Exit Do ]

[ ]

Loop

. :

Do

[ ]

[ Exit Do ]

[ ]

Loop [{ While | Until } ]

: While (), Until ().

While , , .

Until , .

Exit Do , .

GoTo

. .

:

GoTo line

line , GoTo.

 

line '

GoTo line ' line

GoTo , line.

 

InputBox

 

InputBox .

InputBox :

;

(Prompt);

, ;

( Cancel).

:

InputBox (""[, ""] [, " "]

[, x_] [,y_ ])

, ,

; , ,

, ,

x_ y_ . .

InputBox , . Cancel .

Str () .

:

Str ()

Chr () , .

:

Chr (_)

 

1. (For... Next)

: () 10 ().

: 4500 . (), 12 ().

: = + ∙

:

= + ∙


 




<== | ==>
, . | .
:


: 2016-12-18; !; : 435 |


:

:

, .
==> ...

1780 - | 1609 -


© 2015-2024 lektsii.org - -

: 0.018 .