Как увеличить количество таблиц до имени таблицы?
static string foldername; //foldername = table changes according to name. foreach (string tbl in tablecontrol) { if(table1) { foldername= table1.foldername; //table1:A so table name: A } else if(table1) { foldername= table2.foldername; //table1:B so table name: B } else { foldername= table3.foldername; //table1:B so table name: C }
//напишите следующий код
Directory.CreateDirectory(FilePath); --> I want to table3 is be called incrementally. For example name for 1 foldername1 ,name for 2 foldername1....etc.
Что я уже пробовал:
foreach (string tbl in tablecontrol) { if(table1) { foldername= table1.foldername } else if(table1) { foldername= table2.foldername } else { newcount++; foldername= table3.foldername +newcount --> foldername1,foldername2,foldername3 } This code is not run.And the newcount++; foldername= table3.foldername +newcount // I want to C1,C2,C3 but not run. How do I increase the number of tables to the table name?
ZurdoDev
Я не понимаю вашего вопроса.