Click here to Skip to main content
15,892,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with IIF() Pin
J4amieC21-Sep-06 23:59
J4amieC21-Sep-06 23:59 
Questiontrim away last 4 characters of a string Pin
Support12321-Sep-06 21:23
Support12321-Sep-06 21:23 
AnswerRe: trim away last 4 characters of a string Pin
Stefan Troschuetz21-Sep-06 21:34
Stefan Troschuetz21-Sep-06 21:34 
GeneralRe: trim away last 4 characters of a string Pin
Support12321-Sep-06 21:46
Support12321-Sep-06 21:46 
GeneralRe: trim away last 4 characters of a string Pin
Stefan Troschuetz21-Sep-06 21:51
Stefan Troschuetz21-Sep-06 21:51 
GeneralRe: trim away last 4 characters of a string Pin
Support12321-Sep-06 21:53
Support12321-Sep-06 21:53 
AnswerRe: trim away last 4 characters of a string Pin
Guffa22-Sep-06 0:04
Guffa22-Sep-06 0:04 
GeneralRe: trim away last 4 characters of a string Pin
Support12322-Sep-06 0:17
Support12322-Sep-06 0:17 
it was this part....

On another note, something faster, and optimized than substring or trimending<br />
(think what shall happen calling substring on a very huge string?)<br />
<br />
strNum[strNum.Length-1] = string.Empty;<br />
<br />
There are few scenarios where this will be the best and others where this wont be a better idea.<br />
<br />
Excelsior<br />
Arjun Bahree<br />
"By The Might of Mjolnir"<br />
<br />
I Came! I Coded! I Conquered!


its from the following post i made a while back....

http://www.codeproject.com/script/comments/forums.asp?forumid=1649&XtraIDs=1649&searchkw=trimend&sd=1+jan+1995&ed=22+Sep+2006&stype=1&select=1662836&df=100&fr=1642.5#xx1662836xx[^]

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: trim away last 4 characters of a string Pin
Guffa22-Sep-06 0:34
Guffa22-Sep-06 0:34 
GeneralRe: trim away last 4 characters of a string Pin
Support12322-Sep-06 0:42
Support12322-Sep-06 0:42 
GeneralRe: trim away last 4 characters of a string Pin
Support12322-Sep-06 0:20
Support12322-Sep-06 0:20 
Questioncheck boxes in C#.net 2005 Pin
Rohit Dev21-Sep-06 21:13
Rohit Dev21-Sep-06 21:13 
AnswerRe: check boxes in C#.net 2005 Pin
Guffa21-Sep-06 21:23
Guffa21-Sep-06 21:23 
AnswerRe: check boxes in C#.net 2005 Pin
Malcolm Smart21-Sep-06 21:38
Malcolm Smart21-Sep-06 21:38 
AnswerRe: check boxes in C#.net 2005 Pin
Christian Graus22-Sep-06 0:13
protectorChristian Graus22-Sep-06 0:13 
QuestionReading from a text Pin
cnr36921-Sep-06 21:06
cnr36921-Sep-06 21:06 
AnswerRe: Reading from a text Pin
Stefan Troschuetz21-Sep-06 21:42
Stefan Troschuetz21-Sep-06 21:42 
Questionhow to move form in a main form Pin
Parshant Verma21-Sep-06 20:58
Parshant Verma21-Sep-06 20:58 
AnswerRe: how to move form in a main form Pin
Nader Elshehabi21-Sep-06 21:55
Nader Elshehabi21-Sep-06 21:55 
QuestionRichEditCtrl Pin
shan2k21-Sep-06 20:11
shan2k21-Sep-06 20:11 
AnswerRe: RichEditCtrl Pin
Stefan Troschuetz21-Sep-06 21:46
Stefan Troschuetz21-Sep-06 21:46 
QuestionProblem set parameter value in Crystal report Pin
hieunts21-Sep-06 19:31
hieunts21-Sep-06 19:31 
QuestionReg: Webservies projects Pin
guru_41821-Sep-06 18:44
guru_41821-Sep-06 18:44 
AnswerRe: Reg: Webservies projects Pin
Christian Graus21-Sep-06 18:49
protectorChristian Graus21-Sep-06 18:49 
AnswerRe: Reg: Webservies projects Pin
guru_41821-Sep-06 18:57
guru_41821-Sep-06 18:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.