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

CodePudding user response:

refer to the second floor zhao4zhong1 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

The solution I know, I want to know is the case, what is the cause of,

CodePudding user response:

The professor likes study theory especially the basic theory;
Engineers are good at roundabout way to solve the problem, not good at exploring the root of the problem,

CodePudding user response:

reference 4 floor zhao4zhong1 response:
professor like research theory especially the basic theory;
Engineers are good at roundabout way to solve the problem, not good at exploring the root of the problem,

no one can answer this question for several days why have to last

CodePudding user response:

reference haroldx reply: 3/f
Quote: refer to the second floor zhao4zhong1 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

The solution I know, I want to know is the case, what is the cause of,

I guess it is traditional and simplified corresponding DLL function or a slightly different version,

CodePudding user response:

refer to 6th floor zhao4zhong1 response:
Quote: refer to the third floor haroldx response:

Quote: refer to the second floor zhao4zhong1 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

The solution I know, I want to know is the case, what is the cause of,

I guess it is traditional and simplified version corresponding DLL function or slightly different,

Simplified I haven't try, because my company's computer system is a traditional, but I tried to uninstall my original traditional vb6.0 by use of into English, the result is still the same, and then try the visual studio, is still the same,,
  • Related