Home > Software engineering >  Before and after & Combo1. Text & two & can be removed?
Before and after & Combo1. Text & two & can be removed?

Time:10-11

The front learn & amp; Character, the book says it's a character in one of the connection, no other description, but see instances in the code, such as the title says the drop-down text box displays the contents of the USES is "& amp; Combo1. Text & amp; "Rather than" Combo1. Text ",
I think before the latter two & amp; As if no effect, but remove the tip error, baidu can't find the answer, don't too simple?
Old birds are also please feel free to simply give directions? Thank you very much!!

CodePudding user response:

This means that, Combo1. The Text is connected as part of a string,

CodePudding user response:

You should give a complete relevant code block!

CodePudding user response:

 aa='Combox1. Text'. The value of aa is Combox1 Text, is a constant 
Aa='" & amp; Combox1. Text & amp;" 'aa is the value of the combox1 controls text content, is a variable

CodePudding user response:

Original bank code is the first student id search the database for content in the drop-down box is recorded, as follows:
Data1. You. FindFirst "student id='" & amp; Combo1. Text & amp; "'
"Also please have a look

CodePudding user response:

.
"Student id='" & amp; Combo1. Text & amp; "'
"
Is to give Combo1. TXT on both sides with quotes. Combo1 itself not in quotation marks, and you look carefully.

In front of a pair of double quotes: "student id='is a string"
Behind a pair of double quotes: "'" a single quotes is string

Combo1 and connected to the two strings.

CodePudding user response:

reference 5 floor WallesCai reply:
...
"Student id='" & amp; Combo1. Text & amp; "'
"
Is to give Combo1. TXT on both sides with quotes. Combo1 itself not in quotation marks, and you look carefully.

In front of a pair of double quotes: "student id='is a string"
Behind a pair of double quotes: "'" a single quotes is string

Combo1 and connected to the two strings.

The original code is this: single and double quotation marks
"Student id='" & amp; Combo1. Text & amp; "'"

CodePudding user response:

refer to 6th floor zhao_mg response:
Quote: refer to the fifth floor WallesCai reply:

.
"Student id='" & amp; Combo1. Text & amp; "'
"
Is to give Combo1. TXT on both sides with quotes. Combo1 itself not in quotation marks, and you look carefully.

In front of a pair of double quotes: "student id='is a string"
Behind a pair of double quotes: "'" a single quotes is string

Combo1 and connected to the two strings.

The original code is this: single and double quotation marks
"Student id='" & amp; Combo1. Text & amp; "'"


Yes, it is a simple three strings are linked together.
The first string: "student id='
"The second string: Combo1. Text
The third: "'"

CodePudding user response:

Data1. You. FindFirst parameter is a string,

Suppose your Combo1. The contents of the Text is 1, in fact, this sentence is:

Data1. You. FindFirst "student id='1'"

CodePudding user response:

reference Leftie reply: 3/f
 aa='Combox1. Text' '. The value of aa is Combox1 Text, is a constant 
Aa='" & amp; Combox1. Text & amp;" 'the value of aa is combox1 controls text content, is a variable

Original bank code is the first student id search the database for content in the drop-down box is recorded, as follows:
Data1. You. FindFirst "student id='" & amp; Combo1. Text & amp; "'
"Here in the first form (Data1. You. FindFirst "student id='Combo1. Text'") why not?
Not is also said to find the drop-down box shows the text content?

CodePudding user response:

"Student id='Combo1. Text"

//

This is the string "Combo1. Text", student id is this?

CodePudding user response:

Give you a simple way to verify the results after string concatenation, that is to use the debug. The print output, or use msgbox.

So you can see what's the result of the connection.

CodePudding user response:

He put the "student id" this two word and the words in the drop-down list you merged into one long string

CodePudding user response:

Software is poorly written, the drop-down box should only deal data, other commands required character, should be connected in executing code inside,
  • Related