Click here to Skip to main content
15,899,024 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionArray name is in a variable Pin
peacefulmember29-Jun-07 9:35
peacefulmember29-Jun-07 9:35 
AnswerRe: Array name is in a variable Pin
Dave Kreskowiak29-Jun-07 9:49
mveDave Kreskowiak29-Jun-07 9:49 
GeneralRe: Array name is in a variable Pin
peacefulmember2-Jul-07 4:21
peacefulmember2-Jul-07 4:21 
GeneralRe: Array name is in a variable Pin
Dave Kreskowiak2-Jul-07 12:38
mveDave Kreskowiak2-Jul-07 12:38 
peacefulmember wrote:
but is there a way to do what I want to do,


I already told you, no.


peacefulmember wrote:
other than using select case or If..Else.


The only other method is to use Reflection, but it's incredibly slow.

You really need to rethink this design. You're treating variable names as an integral part of the Data and Business Logic, which you should NEVER do, nor do you ever need to do it in a proper design.

You're combining functions that really should be seperated. You're needlessly trying to get a single function to return a value from a number of arrays when this is never necessary.

If you want functionality like this, put your data into DataTables.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionCollection<> to KeyedCollection<T,K> Pin
Santiago Perez29-Jun-07 9:13
Santiago Perez29-Jun-07 9:13 
AnswerRe: Collection to KeyedCollection Pin
Robert Rohde1-Jul-07 2:21
Robert Rohde1-Jul-07 2:21 
GeneralRe: Collection to KeyedCollection Pin
Santiago Perez1-Jul-07 16:48
Santiago Perez1-Jul-07 16:48 
QuestionSQL Membership Password Reset problem Pin
Vipul Mehta29-Jun-07 1:47
Vipul Mehta29-Jun-07 1:47 
AnswerRe: SQL Membership Password Reset problem Pin
kubben29-Jun-07 6:07
kubben29-Jun-07 6:07 
GeneralRe: SQL Membership Password Reset problem Pin
Vipul Mehta30-Jun-07 18:49
Vipul Mehta30-Jun-07 18:49 
GeneralRe: SQL Membership Password Reset problem Pin
kubben1-Jul-07 0:57
kubben1-Jul-07 0:57 
QuestionWPF - How to show a webpage in a 3D surface Pin
sinosoidal28-Jun-07 23:54
sinosoidal28-Jun-07 23:54 
Questionbutton style Pin
Sunshine Always28-Jun-07 23:25
Sunshine Always28-Jun-07 23:25 
AnswerRe: button style Pin
Paul Conrad13-Jul-07 13:05
professionalPaul Conrad13-Jul-07 13:05 
QuestionDecryting Passwords stored in aspnet_Membership table Pin
Vipul Mehta28-Jun-07 22:26
Vipul Mehta28-Jun-07 22:26 
AnswerRe: Decryting Passwords stored in aspnet_Membership table Pin
originSH29-Jun-07 0:15
originSH29-Jun-07 0:15 
AnswerRe: Decryting Passwords stored in aspnet_Membership table Pin
Vasudevan Deepak Kumar29-Jun-07 1:34
Vasudevan Deepak Kumar29-Jun-07 1:34 
QuestionGetting real sender of HelpRequested events Pin
m_g_a28-Jun-07 20:40
m_g_a28-Jun-07 20:40 
AnswerRe: Getting real sender of HelpRequested events Pin
Robert Rohde1-Jul-07 2:25
Robert Rohde1-Jul-07 2:25 
GeneralRe: Getting real sender of HelpRequested events Pin
m_g_a3-Jul-07 21:32
m_g_a3-Jul-07 21:32 
QuestionMemory leak issue. Pin
PSK_28-Jun-07 19:32
PSK_28-Jun-07 19:32 
AnswerRe: Memory leak issue. Pin
nitikin29-Jun-07 0:21
nitikin29-Jun-07 0:21 
QuestionPowerCOllections OrderedList Pin
Santiago Perez28-Jun-07 7:52
Santiago Perez28-Jun-07 7:52 
QuestionAssembly loading - directories Pin
David Knechtges27-Jun-07 9:57
David Knechtges27-Jun-07 9:57 
QuestionRemoting: Switching between MBR and MBV at run-time. Pin
Andy L 226-Jun-07 23:15
Andy L 226-Jun-07 23:15 

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.