c# - Remove everything after the pipe -


I am trying to remove everything after the pipe but in my code currently he is doing the opposite, it Prior to this the pipe is removing everything. I want to remove everything after the pipe, which has white space. Here I have tried to address the code: drop-down list in the dropdown list as WPC1 = DV_InputForm.FindControl ( "ddl_WPC");

  string WPC_Selected = WPC1.SelectedValue; String WPC = Dblupisiaisiakted Sbstring (Dblupisiaiakted. Last Indeksof ( "|") + 1);    

you 0 should begin with index pipe sign indicator .

Substring method.

  string WPC_Selected = "abc | def"; String WPC = Dblupisiaiakted Sbstring (0, Dblupisiaiaktedklistindaks ( "" ")); // abc string WPC1 = WPC_Selected.Substring (0, WPC_Selected.LastIndexOf (" | ") + 1); // ABC |  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -