Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
AnswerRe: Source of Integral Calculation Program Using Random Numbers Generation (Kaufman) Pin
OriginalGriff23-Nov-21 3:21
mveOriginalGriff23-Nov-21 3:21 
QuestionFinding Lost Handle Pin
michaelbarb22-Nov-21 8:33
michaelbarb22-Nov-21 8:33 
AnswerRe: Finding Lost Handle Pin
Gerry Schmitz22-Nov-21 9:17
mveGerry Schmitz22-Nov-21 9:17 
QuestionC# How to use place holder in string variable Pin
Mou_kol18-Nov-21 5:34
Mou_kol18-Nov-21 5:34 
AnswerRe: C# How to use place holder in string variable Pin
Mou_kol18-Nov-21 5:53
Mou_kol18-Nov-21 5:53 
AnswerRe: C# How to use place holder in string variable Pin
phil.o18-Nov-21 12:33
professionalphil.o18-Nov-21 12:33 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol19-Nov-21 4:03
Mou_kol19-Nov-21 4:03 
AnswerRe: C# How to use place holder in string variable Pin
BillWoodruff19-Nov-21 17:00
professionalBillWoodruff19-Nov-21 17:00 
First, what's stopping you from using later/latest versions of VS and FrameWork/C# ? Given those are free, why not upgrade ?

Try this:
const string YTemplate = @"IF(AND(ISNUMBER(C#),P#>0,NOT(ISERROR(C#/P#))),C#/P#-1,"""")";
StringBuilder sb = new StringBuilder(YTemplate);

// in a method:
sb = sb.Replace("P#", "2005.13").Replace("C#", "7777.10");
To reuse this, clear the StringBuilder after a use, and then reset its contents to 'YTemplate.

Faster, more efficient ? Lots of different opinions on String.Replace and StringBuilder.Replace: [^]

Do some tests with your data, and find out if it's better for your case.

And, keep your eye on the future: [^]
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch


modified 20-Nov-21 0:09am.

GeneralRe: C# How to use place holder in string variable Pin
Mou_kol16-Dec-21 6:31
Mou_kol16-Dec-21 6:31 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol16-Dec-21 6:32
Mou_kol16-Dec-21 6:32 
QuestionAsp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 4:43
Sai Kumar18-Nov-21 4:43 
AnswerRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Richard Deeming18-Nov-21 4:47
mveRichard Deeming18-Nov-21 4:47 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 5:06
Sai Kumar18-Nov-21 5:06 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Richard Deeming18-Nov-21 5:24
mveRichard Deeming18-Nov-21 5:24 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 5:38
Sai Kumar18-Nov-21 5:38 
QuestionTrouble using Canon's EDSDK in VS on mac Pin
Member 1543145718-Nov-21 4:19
Member 1543145718-Nov-21 4:19 
AnswerRe: Trouble using Canon's EDSDK in VS on mac Pin
Luc Pattyn18-Nov-21 4:55
sitebuilderLuc Pattyn18-Nov-21 4:55 
QuestionC sharp Picturebox linking error Pin
ÖmürTokman8-Nov-21 23:05
ÖmürTokman8-Nov-21 23:05 
AnswerRe: C sharp Picturebox linking error Pin
OriginalGriff8-Nov-21 23:27
mveOriginalGriff8-Nov-21 23:27 
GeneralRe: C sharp Picturebox linking error Pin
ÖmürTokman9-Nov-21 0:09
ÖmürTokman9-Nov-21 0:09 
GeneralRe: C sharp Picturebox linking error Pin
OriginalGriff9-Nov-21 0:17
mveOriginalGriff9-Nov-21 0:17 
AnswerRe: C sharp Picturebox linking error Pin
Richard MacCutchan8-Nov-21 23:39
mveRichard MacCutchan8-Nov-21 23:39 
GeneralRe: C sharp Picturebox linking error Pin
ÖmürTokman9-Nov-21 0:13
ÖmürTokman9-Nov-21 0:13 
AnswerRe: C sharp Picturebox linking error Pin
Eddy Vluggen10-Nov-21 3:06
professionalEddy Vluggen10-Nov-21 3:06 
Questionwriting content of csv files into oracle Pin
md arif 20214-Nov-21 23:27
md arif 20214-Nov-21 23:27 

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.