Community discussion forum

Regarding cut the string

  • 9 months ago
    Dear Freind, sch_name = Replace(Txt_Filepath.Text.Trim.ToUpper.Substring(T xt_Filepath.Text.Trim.LastIndexOf("\") + 1), ".XLS", "") In sch_name get the file name 90101595958_CHQLV_FCF--%A_27092008_D. Now i want from this file FCF cut and store in another variable. Like scm_file = FCF Can u plz tell me how to do it ? Thanks nd Regards Harish Patil
    Post was edited on 12/02/2009 04:58:34 Report abuse
  • 9 months ago
    Hi, if your file always has that pattern, then you can split the string on the dash, and then retrieve the last 3 characters of that string. Si

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!