If dw_1. Rowcount () & gt; 0 then Dw_1. Scrolltorow (1) End the if The else Dw_1. Visible=false Openwithparm (w_add dataname, w_login) W_add. Sle_product_type. Text=it_new. Label End the if End the if
Problem: 1, datanamelist='# admininfo#' + '# shuruguanli#' + '# product_type #' + '# merchant# and dw_1 object. # 1. The key="yes" what is the meaning of the two lines of code why a "#", 2, the if dataname=' * 'rookie to this line of code what mean ah ha ha
CodePudding user response:
1, datanamelist, just string, this depends on the purpose of the developer, here he just wanted to put the string separated completely # 1 on behalf of the first field, the key is his property, instead of yes value 2, the if dataname='*', this sentence can only answer is, 'if dataname equals *... The code, the dataname is tree is selected item value
CodePudding user response:
1 Datanamelist='# admininfo#' + '# shuruguanli#' + '# product_type #' + '# merchant#'; Is Datanamelist='# # # # # admininfo# shuruguanli# product_type merchant#'; The original programmer, made delimiter #, is used to find it_new. Data (see his logic, is the name of the table in the database), whether in the one of the four tables.
Dw_1. Object. The # 1. The key Is the first column of the dw_1 (not you see the first column, but the first column in the SQL statement), it seems that the original programmer's habit is only an ID is done advocate key.
2.//the randomness, code is not complete, because you need to check the TREEVIEW. Insertitem (... ) such a statement You look at that label (label) is "all tables" or "all data"