Home > database >  A text box how to display the select out a collection
A text box how to display the select out a collection

Time:09-30

The select statement is as follows:
Select the name from the student table

Select results:
Zhang SAN
Li si
Fifty

I'd like to send the results displayed in the form of a text box, text box shows the content is as follows:
Zhang SAN, li si, fifty

Could you tell me how to write the text box code?

CodePudding user response:

Select the name from the student table into array aTemp
Cc='
For 2=1 to _Tally
Cc=cc + ', '+ aTemp [ii]
Endfor
Thisform. Text1. Value=https://bbs.csdn.net/topics/substr (cc, 3)

CodePudding user response:

Select the name from the student table into array aTemp
Cc=atemp (1)
For 2=2 to _Tally
Cc=cc + ', '+ aTemp [ii]
Endfor
Thisform. Text1. Value=https://bbs.csdn.net/topics/cc

CodePudding user response:

Select the name from the student table into array aTemp
Cc=atemp (1)
For 2=2 to _Tally
Cc=cc + ', '+ aTemp (ii)
Endfor
Thisform. Text1. Value=https://bbs.csdn.net/topics/cc

CodePudding user response:

Only such, want to write the code above
  •  Tags:  
  • VFP
  • Related