Write an event procedure and develop an application to intake 2 strings,concatenate them and find the length of the resultant string.
(B) Property(Controls Used) :
Find the Length..? Do as your homework...Or , Click VB-74 : Resultant Length of 2 concatenated Strings...
(A)Program Design :
(B) Property(Controls Used) :
- 3 Text Boxes with name Text1,Text2,Text3 respectively.
- 1 Label with Caption "First String+Second String" and name Label1
(C) Attaching Code to the Object :
Private Sub Text1_Change() Text3 = Text1.Text + "" + Text2.Text End Sub |
Private Sub Text2_Change() Text3 = Text1.Text + "" + Text2.Text End Sub |
(D) Output :
Find the Length..? Do as your homework...Or , Click VB-74 : Resultant Length of 2 concatenated Strings...
===============================================
===============================================
No comments:
Post a Comment