.


:




:

































 

 

 

 


If. ThenElseIfThen ElseEnd If




Visual Basic

sinX cos tg arctg SIN() COS() TAN() ATN() . (-π/2; + π /2)
      eX   ln     lgX       ()   LOG()     LOG(x)/LOG(10)     SQR(X)   ≤87   >0     >     X≥0  
|| ABS() ABS(-5) 5
  FIX() FIX(12.76) 12
SGN() +1 >0 0 =0 - 1 <0
][ INT() INT (34.67) 34 (-5.1) -6
0 1     RND [(X)]
  A MOD B C = 17 MOD 3 C = 2

 

Byte byt
Integer int
Long lng
Single sng
Double dbl
Boolean bln
String str
Currency cur
Date dtm
Object obj
Variant ( ) vnt
  udt
  con
  VB vb

Visual Basic

.

, True () False ().

= <>

> >=

< <=

And () True (), True. False ();

Or () True, True. , False, False;

Xor ( ) True (), , True. False;

Not (HE) . , . . True, False, False, True.

(1 And 2 And 3) _

Or (4 r 5)

If... Then

IF Then 1 [: 2 [: 3 ] ]

If... ThenElse

IF Then 1 Else 2

If... ThenEnd If

IF Then

End If

If... ThenElseEnd If

IF Then

1

Else

2

End If

If... ThenElseIfThen ElseEnd If

IF 1 Then

1

ElsrIf 1 Then

2

.

Else

N

End If





:


: 2016-11-24; !; : 235 |


:

:

, .
==> ...

1325 - | 1246 -


© 2015-2024 lektsii.org - -

: 0.011 .