You are on page 1of 7

!

"
:( )

. # $ %& !" -
* (Name) 8"9 : ; * <) (code) () *+ , -. /0 10 23 -
I - J . 8" K 3 8"9 A ; # L MNO < 8" K 3 Properties @+ AB
.
.% . P" Q%R ; -
K I W<X Y : Z [ -. # "% . P . V" ,U "" * " S * @ P -
. _ ` R K I W<X 8a Shift
c# 8a (=) 8a : B 8" 8a (.) 8a *+ 8" V . I P -

f- Y M 1#% 8 !& K 3 d2 8" < e . V ,U

Form1.Caption = "f- Y M 1#% 8 !& "

1 !j3 *+ 8" :B 1 !j3

:( Z!. k N ! ` 3 # , < -

k N ! ,< . lSm ` 3 k N ! ` O

d2 1 n Q%& () l c#

-1-
! "
. ;p / () c # / * q r0 ` & # sA # t-N Z [ -. - -
. u r 8a u j . 8 9#0 u ! r0 v [" [" ,- - j .8 -
: wU
Private Sub Form_Load()
GoTo 10
label1.Caption = " 8 !& "
10
End Sub
8" < uN u ‚# (N U [- # ƒ„ 8S1 [- K 3 PV uN u ‚# Y#$ [-
. ƒ„ 8S1 W ) … U [- # / 8 !& K 3 label1 *+
[- PV2 Y#$ [- () q J [I0 uN90 (N U [- .8 * % I †&w
. (N U [- , " ƒ„ [- # ƒ„ 8S1
[ , " W ) f- Y M) () j Z M) † R (I 9 -
:

Complete Word ; # 1 * 1L W<c


* uj R. + * ;

.% j , k N ! , "f # + ˆ "0 () ˆ [;$ * , . [ J V#


. ‰ B e %B " *I n r Š e%B " -

: ‹ P 1%.
. 1ΠK I W<X. % I f P& @N u ) d1%. k N N
: • P 1%.
. , "Ž # K IŽ # 1 - # + f R e k N N

-2-
! "
: Y #% # ’

:( R A R : * Y Nw ) ;p d2 N Š ) # ( R d2 ˆ ;3 (ƒ
Me.Hide
Form2.Show
Hide# , – N r m "form1 ! ) form1 ,U R R A ( . me … &
. 1 ‚3 ( . show # (N U d2 V form2 # ˆ ;3 V
: ,U 8S ‰ A , R e . Val (—
ƒ„ () 8S ™ X k N ! š%. 8a # @N () P . /0 wU % . l
:™ [ V V
Label1.Caption = Val(Text1.Text) * 10
Q%& 1 BN # u;% . 8 Command 1Œ # Label • Text (. 0 ) cO d R. #
. Click 1L K I W<X V # 90 P"
% !S e%B " 8S 1 9 ( # r I (+ I 8S1 M Ÿ (V # Rnd % (‹
Randomize .(Randomize)
Label1.Caption = Rnd
: Y U Š R: %I r 8S , M e . Int % (•

Label1.Caption = Int(1.95667899)
. ƒ 8S V M N/ "

. () @N K 3 8S , R e . Str % (¦

[ L % P e . Round % (§
Label1= Round(2.56789, 1)
. 8S % ƒ c # N9 I L ™ S0 K 3 —©¦§ª«¬ 8S ™ N N3 J V#
—©§ V # ™ M k N ! [ " #
: ,U ( ! %I ™ S$ ™ N 8S /#% #
Label1= Round(2.56789)
. ‹™ M / "#

: ‹ P 1%.
.1 9 (+ I 8S1 1 ‚- e k N N
: • P 1%.
#( 1 M #P #Z K.®. # ™ X. # 8- . # Z M. # ¯ [. p N
. Š- 1Œ

-3-
! "
PN M ² r0 Š , -. # fM N 1 - )
% -N # (App.Path) (ª
. &9 U "#k N !
, " fM N % M – 1 A * # ³ fM N ! B 1 : ² X. ² wU
:
Me.Picture = LoadPicture(App.Path & "\bak.jpg")
form d2 8" (VMe
ΠB 1 : P j *I #m- : B (V Picture
1- ;% PM # 1 : P j *I #m- M j (VLoadPicture()
. 1 A
C:\\nowfolder ,U k N ! 1 - P M. App.Path
* AN * j * W L 1 (V &
# 1 A 8" bak 1 A K I ,;% ( \ # AN j N$ @ A "\bak.jpg"
. 1 A I N V .jpg

: ( ,U j ` &0 %I ) e%B -. # len («


Label2.Caption = Len("*-&")
e S10 ‹ ` &$ %I /9 ‹ 8S (V M / "#

!" Trim (¬
# $% & '(% )%*+ , , - &% , . / 0&
: 12% 34,.
Label1.Caption = Trim(Text1.Text)

: 12% 78 . $% 9 & '( " LTrim (ƒ„


Label1.Caption = LTrim(Text1.Text)

: 12% 78 , $% 9 & '( " RTrim (ƒƒ


Label1.Caption = RTrim(Text1.Text)

e .( YU ,U P [ P-& ` &$ #0 e S1$ * * %I ¸ e . Left (ƒ—


: 8S #0 @ % * %& # 8S1 @
Label1.Caption = Left(Text1.Text, 1)

( YU ,U P [ P-& ` &$ # e S1$ * * %I ¸ e . Right (ƒ‹


: 8S #0 @ N * %& # 8S1 @ e .
Label1.Caption = Right(Text1.Text, 1)

: ƒ / " 1 ! k. ) ƒ V ‹ K I • -S (S ,U - (S ¸ e . Mod (ƒ•


Label1.Caption = 4 Mod 3

-4-
! "
: if _ 0
: º % / . <:# _# q s ![ $ J V, -. #
If _ P V then ( N

: Click Q%& () Zc # š# () Command1 # label2 # label1 Zc


Private Sub Command1_Click()
If Text1.Text = "*-&" Then Label2.Caption = " R R: j "
End Sub

10 2 R R:
j3 k N ! f [ " ¯ 1 Command1 K I l[<c # *-& text1 ,; % l! k N ! N 23
:( k N ! R ! <N ³³ *-& » 8" ¹ ; j3 f [ /
If Text1.Text = "*-&" Then
Label2.Caption = " R R: j "
Else
Label2.Caption = " ¹ ; j "
End If

_ s R 8 23 (.® N V # else (V [" awa () <. r

0s» V End If # . ¹ ; j3 K 3 - :; » V Label2.Caption = " ¹ ; j" X0#


. 1 !j3 (V # _
:( ! / ._ q* U f% 2 *
#0 V #Or , M * W # 0 ¼%&3 ² XN :— 23 #0 V # elseif then ² XN ƒ:
.# V # and W 0 #0 If Text1.Text = "*-&" Then
If Text1.Text = "*-&" or Text1.Text = "% & " Then Label2.Caption = " R R: j "
Label2.Caption = " R R: j " Elseif Text1.Text = "% & " Then
Else Else
Label2.Caption = " ¹ ; j " Label2.Caption = " ¹ ; j "
End If End If

: V 8 . (V # .(+) % , -. /0 * #&L , " * j * W . /0 10 23


Text1.Text = "*-&" & " % & "
: M M N ,U % & *-& / " M #
Text1.Text = "% & *-&"
. 8S1 # j * W . K & #p

-5-
! "
: # $%&' ' (
: ,U * a * q s R. 10 23 ( = ) , s *I 8 1!; * (=) -
If a = 0 Then b = 0
: ,U r# -. 9 V # (<>) -
If a <> 0 Then b = 0
: ,U r# -. #0 ! 0 V # (>=) -
If a >= 0 Then b = 0
: ,U r# -. #0 <:0 V # (<=) -
If a <= 0 Then b = 0

M , M W 10 U 0 #0 * %&0 s R. ! B. 10 23 ( #0 V # ) (or) -
: ,U (or)
If a = 0 Or c = 1 Then b = 0

: ,U (and) # W 0 e%B " %& # /p () _# q %I s R. Pj# 23 (and) -


If a = 0 And c = 1 Then b = 0

e%B " Vw – # %& # /p () * %&0 s R. Pj# 23 ( 23 #0 V ) (Xor) -


: ,U (Xor) W 0
If a = 0 Xor c = 1 Then b = 0
e%B " ®[B Y & () # RA Y & () * s R. Pj# 23 (Eqv) -
: ,U (Eqv) W 0
If a = 0 Eqv c = 0 Then b = 0
: ,U (Not) W 0 e%B " R R: / . 1 ! ) _ s R 8 23 K (Not) -
If Not a = 0 Then b = 0

-6-
! "
: <
#1 " fM N () S <. 10 23( Long-Integer) S < -ƒ
:( ,U < e %B " K 3 ®M . /0 % w) &9 S e %B "
Dim n As Integer <: ( S1 < uI N # n u " < ) I Y#$ [-
ƒ u- N K I NLB ZM < j (N U [-
n=n+1

Dim n2 As Long ! ( S1 < uI N # n2 u " < ) I Y#$ [-


‹ u- N K I Z M < j (N U [-
N2 = N2 + 3
: wU @N Z () < (+ 8S I! * () #
Label1 = n
Label1.Caption = n V #0

: (String) (A < (—
:( ,U (A < , -) 1 " < . , j f % lN 23
Dim person As String (AN uI N # person u " (AN < ) I Y#$ [-
# l -&0 K 3 label1 K 3 - : ; N » (N U [-
Label1 = " l -&0 " & person
. * M k % " r0 person < V [ 1

: Flase– True (Boolean) ( [ < (‹


Dim yesno As Boolean
yesno u " ([ < ) I Y#$ [-
If yesno = False Then /-) false u S %j# 23 < S ! BN (N U [-
b=6 S, M …& - M l R. 23 V [- … U [-
b=6 ._ s R. e%I Y & () 1 !j3 j Z [-
_ s R 8 23 b=4 S , M – B [-
Else 1 !j3 (V # _ j ( Ç - [-

b=4
End If

-7-

You might also like