Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
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 
Hi,

I need help to create a colon delimited arbitrary length subfolder-ranging string based on a value. That probably makes little sense, so to demonstrate:

Value: 194356

I was hoping for a function that could take in some arbitrary 'template' definition like this:
##0000 - ##9999:####00 - ####99

and the above Value

and return something like this:
190000 - 199999:194300 - 194399

Likewise, if the 'template' were defined as:
###000 - ###999
,

the following would be returned
194000 - 194999

and an even more finely detailed 'template':
#00000 - #99999:##0000 - ##9999:###000 - ###999:####00 - ####99:#####0 - #####9

would return:
100000 - 199999:190000 - 199999:194000 - 194999:194300 - 194399:194350 - 194350.

It also needs to work for different Value lengths, eg:

Value: 5455

'Template':
##00 - ##99


returns

5400 - 5499

The value, and the ranges, always have the same number of digits. I could easily hardcode this definition, but for reasons explained below, I don't want to do that.

Purpose (for any other ideas on how to do what I need to do):

Our Peoplesoft system generates PDF report files into a shared UNC folder. These have the filename: 000#######_<vendorname>.pdf where the 6 hashes represent a 6-digit numeric Vendor ID. I have to upload these files into our OpenText Livelink DM system. The definitions for the upload process (source path, destination, etc.) come from a custom XML file. The need for the sub folders arises from the fact that Peoplesoft generates 100's of reports per week - and shoving them into a single folder in Livelink is not acceptable to the users. If they could drill down by range, they would be happy.
Peoplesoft actually generates different types of report files in different places (Purchase orders, RFPs, etc). Some of these need more fine-tuned filing into subfolders, some do not - hence the need for a generic subfolder creating function.

I appreciate any help with this. If any more information is needed, I should be pretty speedy with the responses.

Adam
AnswerRe: String Placeholder/Templating Question Pin
Ian Shlasko16-Dec-09 10:47
Ian Shlasko16-Dec-09 10:47 
AnswerRe: String Placeholder/Templating Question Pin
PIEBALDconsult17-Dec-09 8:11
mvePIEBALDconsult17-Dec-09 8:11 
Questionsimple PAssword Policy Pin
THE SK16-Dec-09 9:16
THE SK16-Dec-09 9:16 
AnswerRe: simple PAssword Policy Pin
Luc Pattyn16-Dec-09 9:40
sitebuilderLuc Pattyn16-Dec-09 9:40 
GeneralRe: simple PAssword Policy Pin
THE SK16-Dec-09 9:55
THE SK16-Dec-09 9:55 
AnswerRe: simple PAssword Policy Pin
#realJSOP16-Dec-09 10:03
mve#realJSOP16-Dec-09 10:03 
GeneralRe: simple PAssword Policy Pin
Eddy Vluggen16-Dec-09 10:52
professionalEddy Vluggen16-Dec-09 10:52 
QuestionLooking to Learn Programming better Need help please. Pin
Extremeshannon16-Dec-09 8:05
Extremeshannon16-Dec-09 8:05 
AnswerRe: Looking to Learn Programming better Need help please. Pin
OriginalGriff16-Dec-09 8:22
mveOriginalGriff16-Dec-09 8:22 
AnswerRe: Looking to Learn Programming better Need help please. Pin
#realJSOP16-Dec-09 8:59
mve#realJSOP16-Dec-09 8:59 
GeneralRe: Looking to Learn Programming better Need help please. Pin
Pete O'Hanlon16-Dec-09 9:02
mvePete O'Hanlon16-Dec-09 9:02 
GeneralRe: Looking to Learn Programming better Need help please. Pin
Luc Pattyn16-Dec-09 9:43
sitebuilderLuc Pattyn16-Dec-09 9:43 
GeneralRe: Looking to Learn Programming better Need help please. Pin
PIEBALDconsult16-Dec-09 10:35
mvePIEBALDconsult16-Dec-09 10:35 
GeneralRe: Looking to Learn Programming better Need help please. Pin
Luc Pattyn16-Dec-09 11:02
sitebuilderLuc Pattyn16-Dec-09 11:02 
GeneralRe: Looking to Learn Programming better Need help please. Pin
PIEBALDconsult16-Dec-09 11:50
mvePIEBALDconsult16-Dec-09 11:50 
AnswerRe: Looking to Learn Programming better Need help please. Pin
BillWoodruff16-Dec-09 18:17
professionalBillWoodruff16-Dec-09 18:17 
QuestionContinued Values Collection/List/Dictionary [modified] Pin
Som Shekhar16-Dec-09 7:48
Som Shekhar16-Dec-09 7:48 

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.