hello experts, have generate series of folders textbox
specified location.i having 2 textboxes specify limit of folders(say 30 folders).the problem facing folder names providing alpha-numeric(say 121cs3h101) .
how set limit when provide alpha-numeric values?
(for example: provide textbox1=12cs3h101
, textbox2=12cs3h131
, need series limit generated). working visual studio 2013 in c# windows form application. in advance.
ok try give lead.
to parse string or find specific characters 1 can use regex.match or simler method called string.split. in both cases have aware how string structured , how can vary. limits of variation important.
if beginning always"12cs3h"
can either split string @ character 'h'.
string[] sa = s.split('h');
or can use index of 'h' (since length seems fixed) , take rest of string numbers.
int index = s.indexof('h');
the rest you, ... convert, enumerate , on.
edit: there nice method enumeration job you: enumerable.range luck
Comments
Post a Comment