Home > Software engineering >  How to use VB. Length () attribute?
How to use VB. Length () attribute?

Time:11-09

I am using vb2010 learning edition
Figure 1 is the topic request
Figure 2 is the code I wrote
Figure 3 is the picture of the runtime, use the Len () can find out the length of the string, and. Length () no, should write code was wrong, but I don't know where is wrong
Hope and directions, thank you very much!

CodePudding user response:

Help me ...

CodePudding user response:

 
TextBox3. Text=TextBox1. Text. Length

CodePudding user response:

Is write the third line to you?

CodePudding user response:

To solve, thank you. 'omega `?)

CodePudding user response:

refer to the second floor milaoshu1020 response:
 
TextBox3. Text=TextBox1. Text. Length

Before that you can tell me where is wrong??????? Shouldn't declare variables first?

CodePudding user response:

TextBox1 TextBox is the object of the class;
TextBox1. Is the Text String class object;
String object has Length attribute;

CodePudding user response:

So my statement is wrong? Is that right

CodePudding user response:

refer to 7th floor m0_46546362 response:
so my statement is wrong? Is that right

Yes;
  • Related