Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Saturday, July 23, 2011

VB-59 : Concatenate 2 strings and find its length

Write an event procedure and develop an application to intake 2 strings,concatenate them and find the length of the resultant string.

(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: