Click here to Skip to main content
15,891,920 members
Home / Discussions / C#
   

C#

 
QuestionCreating a Collection of Widgets Pin
cron-fed16-Dec-09 13:51
cron-fed16-Dec-09 13:51 
AnswerRe: Creating a Collection of Widgets Pin
PIEBALDconsult16-Dec-09 13:56
mvePIEBALDconsult16-Dec-09 13:56 
GeneralRe: Creating a Collection of Widgets Pin
cron-fed16-Dec-09 14:26
cron-fed16-Dec-09 14:26 
GeneralRe: Creating a Collection of Widgets Pin
PIEBALDconsult16-Dec-09 17:09
mvePIEBALDconsult16-Dec-09 17:09 
AnswerRe: Creating a Collection of Widgets Pin
_Maxxx_16-Dec-09 14:29
professional_Maxxx_16-Dec-09 14:29 
AnswerRe: Creating a Collection of Widgets Pin
BillWoodruff16-Dec-09 15:30
professionalBillWoodruff16-Dec-09 15:30 
GeneralRe: Creating a Collection of Widgets Pin
Subin Mavunkal16-Dec-09 20:23
Subin Mavunkal16-Dec-09 20:23 
GeneralRe: Creating a Collection of Widgets Pin
cron-fed17-Dec-09 7:15
cron-fed17-Dec-09 7:15 
General[SOLVED]Re: Creating a Collection of Widgets Pin
cron-fed17-Dec-09 9:16
cron-fed17-Dec-09 9:16 
AnswerRe: Creating a Collection of Widgets [modified] Pin
BillWoodruff18-Dec-09 13:37
professionalBillWoodruff18-Dec-09 13:37 
QuestionUpdates wrong table in dataset Pin
Star0916-Dec-09 12:50
Star0916-Dec-09 12:50 
AnswerRe: Updates wrong table in dataset Pin
Paulo Zemek17-Dec-09 1:09
mvaPaulo Zemek17-Dec-09 1:09 
QuestionCan't multiply... Pin
o m n i16-Dec-09 10:57
o m n i16-Dec-09 10:57 
AnswerRe: Can't multiply... Pin
Richard MacCutchan16-Dec-09 11:04
mveRichard MacCutchan16-Dec-09 11:04 
GeneralRe: Can't multiply... Pin
o m n i16-Dec-09 11:06
o m n i16-Dec-09 11:06 
GeneralRe: Can't multiply... Pin
loyal ginger16-Dec-09 11:23
loyal ginger16-Dec-09 11:23 
GeneralRe: Can't multiply... Pin
Richard MacCutchan16-Dec-09 11:43
mveRichard MacCutchan16-Dec-09 11:43 
AnswerRe: Can't multiply... Pin
Luc Pattyn16-Dec-09 11:07
sitebuilderLuc Pattyn16-Dec-09 11:07 
GeneralRe: Can't multiply... Pin
o m n i16-Dec-09 11:11
o m n i16-Dec-09 11:11 
GeneralRe: Can't multiply... Pin
Luc Pattyn16-Dec-09 11:21
sitebuilderLuc Pattyn16-Dec-09 11:21 
GeneralRe: Can't multiply... Pin
o m n i16-Dec-09 12:57
o m n i16-Dec-09 12:57 
GeneralRe: Can't multiply... Pin
Luc Pattyn16-Dec-09 13:15
sitebuilderLuc Pattyn16-Dec-09 13:15 
QuestionString Placeholder/Templating Question Pin
Member 158975816-Dec-09 9:32
Member 158975816-Dec-09 9:32 
AnswerRe: String Placeholder/Templating Question Pin
Ian Shlasko16-Dec-09 10:47
Ian Shlasko16-Dec-09 10:47 
Not too tricky... Just break it into a few steps, assuming a standard format:

1) Split the template by the colon, and process each part individually

2) In case you want to vary the arrangement a little, use a RegEx to break down the string, finding occurrences of "#+[0-9]*"

3) For each of those patterns, find the number of digits (Assuming it'll always be a suffix-type thing), and divide the number by that power of 10 and truncate it. For example, if it was ##9 (1 digit), you'd divide by 10^1 and chop off the fractional component.

4) Replace the ## part with the resulting number

Technically you don't have to do any real calculations or test ranges, so this is just pattern matching and string replacement.

Proud to have finally moved to the A-Ark. Which one are you in?
Author of Guardians of Xen (Sci-Fi/Fantasy novel)

AnswerRe: String Placeholder/Templating Question Pin
PIEBALDconsult17-Dec-09 8:11
mvePIEBALDconsult17-Dec-09 8:11 

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.