Click here to Skip to main content
12,944,475 members (51,674 online)
Click here to Skip to main content

Tagged as


Posted 3 Oct 2012

Problem with substring

, 3 Oct 2012 CPOL
Thats because if charindex is not present then substring will become 0-1 =-1 but the index itself starts from 0 and no element would be at -1 index.For eg, if 5/2012D is one of the value, then in substring function it becomessubstring(sender_index_code,1,(0-1)) and it will throw errortry...



Compare Revision Minor Date Status Editor
3 - publicly available No 3-Oct-12 21:42 Available Santhosh Kumar Jayaraman
Updates in content. 118 changes had been made.
2 No 3-Oct-12 21:34 Available Santhosh Kumar Jayaraman
Updates in content. 7 changes had been made.
1 No 3-Oct-12 21:29 Available Santhosh Kumar Jayaraman


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Santhosh Kumar Jayaraman
Software Developer Radiometer
India India
Currently i am trying to learn all about javascripts . I have experience in Microsoft technologies like WPF, WCF, ASPNET, WinForms,Silverlight, VB.NET, C-Sharp, Entity framework,SSRS, LINQ, Extension methods and SQL server. I started with my career in Infosys in the year 2009 and i worked with Trigent, Education First (EF) in the recent years before joining my current company Radiometer.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170518.1 | Last Updated 4 Oct 2012
Article Copyright 2012 by Santhosh Kumar Jayaraman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid