PC Review


Reply
Thread Tools Rate Thread

Add Range. Is this possible?

 
 
shapper
Guest
Posts: n/a
 
      9th May 2009
Hello,

I have a class property as follows:
IList<String> ScriptPaths { get; set; }

Then I have the following:
1. An enum, Script, with all the available Script names.
2. A method, GetScriptPath, that returns, given a Script name, its
Path (type String)

I am trying to create a method that in one step I could add 1 to many
scripts:

AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) (Of course
this does not work)

This method would loop through each enumeration, get its path and add
it to property ScriptPaths.

I don't know where to start with.
I have been looking at arrays, dictionaries, lists but I am not sure
if this is possible.

Is this or something like this possible?

Thanks,
Miguel


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      9th May 2009
Shapper,

You have a solution and a problem.

What do you want a solution to your problem or an elaboration about your
solution?

Cor


"shapper" <(E-Mail Removed)> wrote in message
news:051410dc-97d3-422c-ae71-(E-Mail Removed)...
> Hello,
>
> I have a class property as follows:
> IList<String> ScriptPaths { get; set; }
>
> Then I have the following:
> 1. An enum, Script, with all the available Script names.
> 2. A method, GetScriptPath, that returns, given a Script name, its
> Path (type String)
>
> I am trying to create a method that in one step I could add 1 to many
> scripts:
>
> AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) (Of course
> this does not work)
>
> This method would loop through each enumeration, get its path and add
> it to property ScriptPaths.
>
> I don't know where to start with.
> I have been looking at arrays, dictionaries, lists but I am not sure
> if this is possible.
>
> Is this or something like this possible?
>
> Thanks,
> Miguel
>
>


 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      9th May 2009
Shapper,

You have a solution and a problem.

What do you want a solution to your problem or an elaboration about your
solution?

Cor


"shapper" <(E-Mail Removed)> wrote in message
news:051410dc-97d3-422c-ae71-(E-Mail Removed)...
> Hello,
>
> I have a class property as follows:
> IList<String> ScriptPaths { get; set; }
>
> Then I have the following:
> 1. An enum, Script, with all the available Script names.
> 2. A method, GetScriptPath, that returns, given a Script name, its
> Path (type String)
>
> I am trying to create a method that in one step I could add 1 to many
> scripts:
>
> AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) (Of course
> this does not work)
>
> This method would loop through each enumeration, get its path and add
> it to property ScriptPaths.
>
> I don't know where to start with.
> I have been looking at arrays, dictionaries, lists but I am not sure
> if this is possible.
>
> Is this or something like this possible?
>
> Thanks,
> Miguel
>
>


 
Reply With Quote
 
Ratnesh Maurya
Guest
Posts: n/a
 
      9th May 2009
On May 9, 4:56*am, shapper <mdmo...@gmail.com> wrote:
> Hello,
>
> I have a class property as follows:
> IList<String> ScriptPaths { get; set; }
>
> Then I have the following:
> 1. An enum, Script, with all the available Script names.
> 2. A method, GetScriptPath, that returns, given a Script name, its
> Path (type String)
>
> I am trying to create a method that in one step I could add 1 to many
> scripts:
>
> AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) * * (Of course
> this does not work)
>
> This method would loop through each enumeration, get its path and add
> it to property ScriptPaths.
>
> I don't know where to start with.
> I have been looking at arrays, dictionaries, lists but I am not sure
> if this is possible.
>
> Is this or something like this possible?
>
> Thanks,
> Miguel


Hi Miguel,

I am not sure what you want to do when you say, "in one step I could
add 1 to many scripts:"

Regards
-Ratnesh


 
Reply With Quote
 
Ratnesh Maurya
Guest
Posts: n/a
 
      9th May 2009
On May 9, 4:56*am, shapper <mdmo...@gmail.com> wrote:
> Hello,
>
> I have a class property as follows:
> IList<String> ScriptPaths { get; set; }
>
> Then I have the following:
> 1. An enum, Script, with all the available Script names.
> 2. A method, GetScriptPath, that returns, given a Script name, its
> Path (type String)
>
> I am trying to create a method that in one step I could add 1 to many
> scripts:
>
> AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) * * (Of course
> this does not work)
>
> This method would loop through each enumeration, get its path and add
> it to property ScriptPaths.
>
> I don't know where to start with.
> I have been looking at arrays, dictionaries, lists but I am not sure
> if this is possible.
>
> Is this or something like this possible?
>
> Thanks,
> Miguel


Hi Miguel,

I am not sure what you want to do when you say, "in one step I could
add 1 to many scripts:"

Regards
-Ratnesh


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enter formula sum(range+range)*0.15 sumif(range>=3) tkw Microsoft Excel Misc 2 1st Oct 2009 09:17 PM
subtracting a range from another range and getting a range result cartoper@gmail.com Microsoft Excel Discussion 4 3rd Feb 2007 05:47 PM
Excel Addin:Setting the range to the Excel.Range object range prop =?Utf-8?B?UnAwMDc=?= Microsoft Excel Worksheet Functions 5 24th Nov 2006 04:30 PM
Sum Range 1 when the elements in Range 2 are found in Range 3 james s shoenfelt Microsoft Excel Misc 1 3rd Nov 2003 11:34 PM
how to? set my range= my UDF argument (range vs. value in range) [advanced?] Keith R Microsoft Excel Programming 2 11th Aug 2003 05:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 PM.