Home > Software engineering > Vb textbox in pasting excel cells directly, why behind the string to display a carriage return and a
Vb textbox in pasting excel cells directly, why behind the string to display a carriage return and a
Time:10-15
As title, my operating system is Windows 7, vb6.0 by use is the traditional Chinese version, played traditional sp6 patch, paste the textbox will show the back of the two blank, when comparing strings results that make a mistake, and my colleague's computer operating system is xp, vb6.0 by use is English version, calling the English version of the patch, patch textbox paste does not show, also do not need to consider when comparing strings, but if use the len function display length, will be more than copy the string two bytes, Why is my colleague's computer program will not be affected by a carriage return and a newline? And I development program would have to consider this reason, is this why?
CodePudding user response:
someone know? Please answer
CodePudding user response:
a1=replace (a, vbCr, "") : a=replace (a1, vbLf," ") B1=replace (b, vbCr, "") : b=replace (b1, vbLf," ") If a=b then 'ignore a newline carriage returns of a and b after the comparison of a and b