Home > Software engineering > Trim (txtUserName. Text="") and Trim (txtUserName. Text)=" "is there a differenc
Trim (txtUserName. Text="") and Trim (txtUserName. Text)=" "is there a differenc
Time:10-31
Trim (txtUserName Text="") this is as a student management system source code, the Trim (txtUserName. Text=" ") and Trim (txtUserName. Text)="" is there a difference? The former is correct?
CodePudding user response:
Trim (txtUserName. Text="") is not reasonable, should be not correct,
CodePudding user response:
Well, because of the implicit type conversion, grammar, but clearly write wrong,
CodePudding user response:
Should be written on the Trim (txtUserName. Text)="", the Trim () function is clear space function, namely the txtUserName. The Text of the Spaces before and after take out,