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

Friday, July 29, 2011

VB-74 : Resultant Length of 2 concatenated Strings

Write a VB program to accept 2 given strings , concatenate them and find the  length of the  resultant string.

Refer  Total words,Characters,sentence,length of ... also.



(A)Program Design : 


(B) Property(Controls Used) :
  • 4 Labels 
  • 4 Text Boxes (Text 1,2,3,4)
  • One Command Button (Caption-Concatenate)

(C) Attaching Code to the Object :


Private Sub Command1_Click()

Text3.Text = Text1.Text & Text2.Text

Text4.Text = Len(Text3.Text)

End Sub


(D) Output :




(E) Errors :

If found any errors while running your VB program, or want to put your comment about any  program , please click Comment section , to post.


===============================================
===============================================


No comments: