}catch(Exception ex){
}
privatevidbtnimport _ Click(object sender,EventArgse){
如果(這個。CheckItems()){
stringselectedValue = this . drop files . selected value;stringpath=Path。結合(這個。_dataPath,路徑。getfilename without textension(selected value));
importadapteriporter = transfer helper。get importer(this . drop import versions . selected value,new object[0]);-這條線錯了。
intcategoryId = this . drop categories . selected value . value;int?brandId = this . dropbrandlist . selected value;產品銷售狀態刪除=產品銷售狀態。刪除;
if(this . radin stock . checked){ delete = ProductSaleStatus。OnStock
} if(this . radunsales . checked){ delete = ProductSaleStatus。賣不出去;}
if(this . radon sales . checked){ delete = ProductSaleStatus。OnSale}選擇的值=路徑。結合(這個。_dataPath,selected value);
如果(!文件。Exists(selectedValue)){
擴展數據:
通常以整個字符串為操作對象,比如在字符串中找到壹個子串,找到壹個子串,在字符串中的某個位置插入壹個子串,刪除壹個子串。兩個字符串相等的充要條件是:長度相等,每個對應位置的字符相等。設p和q是兩個字符串,尋找q在p中第壹次出現的位置的操作叫做模式匹配。字符串的兩種最基本的存儲方式是順序存儲和鏈接存儲。
壹般標記為s = "a1a2 an" (n > =0)。它是壹種用編程語言表示文本的數據類型。在編程中,字符串是符號或數值的連續序列,如符號串(壹串字符)或二進制數串(壹串二進制數)。
百度百科-字符串