Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
GeneralHandling a paste into a textbox. Pin
msx2321-Apr-08 13:26
msx2321-Apr-08 13:26 
AnswerRe: Handling a paste into a textbox. Pin
Christian Wikander21-Apr-08 20:37
Christian Wikander21-Apr-08 20:37 
GeneralConditional comparaison Pin
baranils21-Apr-08 12:03
baranils21-Apr-08 12:03 
GeneralRe: Conditional comparaison Pin
Luc Pattyn21-Apr-08 12:08
sitebuilderLuc Pattyn21-Apr-08 12:08 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 12:16
baranils21-Apr-08 12:16 
NewsRe: Conditional comparaison Pin
Spacix One21-Apr-08 12:29
Spacix One21-Apr-08 12:29 
GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 12:53
baranils21-Apr-08 12:53 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 13:41
Spacix One21-Apr-08 13:41 
There isn't anything to distinguish them. Your combo box most likely has a string value of what the user picked such as "==", "<", "<=", ect..

This means that all 6 delegates would have the signature of: <return value=""> <method name="">(string str);

If you need to loop though a method then a recursive function (one that calls itself) with a input parameter would solve the situations based off the value.

This is about the same as looping within a switch statement, just not as much similar code.


To put it bluntly, you are trying to minimize code that is almost at its minimum state Smile | :)
The above is going by your statements about said code, less examples of what you're doing this is about as far as we can go.


-Spacix
All your skynet questions[^] belong to solved

GeneralRe: Conditional comparaison Pin
baranils21-Apr-08 19:35
baranils21-Apr-08 19:35 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 2:43
Spacix One22-Apr-08 2:43 
GeneralRe: Conditional comparaison Pin
baranils22-Apr-08 2:51
baranils22-Apr-08 2:51 
GeneralRe: Conditional comparaison Pin
Spacix One22-Apr-08 3:31
Spacix One22-Apr-08 3:31 
GeneralRe: Conditional comparaison Pin
Spacix One21-Apr-08 12:23
Spacix One21-Apr-08 12:23 
Generalbeginners question Pin
NewToAspDotNet21-Apr-08 9:23
NewToAspDotNet21-Apr-08 9:23 
GeneralRe: beginners question Pin
Pete O'Hanlon21-Apr-08 9:31
mvePete O'Hanlon21-Apr-08 9:31 
Generalwrong forum Pin
Luc Pattyn21-Apr-08 10:04
sitebuilderLuc Pattyn21-Apr-08 10:04 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:08
mvePete O'Hanlon21-Apr-08 10:08 
GeneralRe: wrong forum Pin
User 665821-Apr-08 10:13
User 665821-Apr-08 10:13 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:25
mvePete O'Hanlon21-Apr-08 10:25 
GeneralRe: wrong forum [modified] Pin
Spacix One21-Apr-08 10:40
Spacix One21-Apr-08 10:40 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:45
mvePete O'Hanlon21-Apr-08 10:45 
GeneralRe: wrong forum Pin
Luc Pattyn21-Apr-08 10:34
sitebuilderLuc Pattyn21-Apr-08 10:34 
GeneralRe: wrong forum Pin
Pete O'Hanlon21-Apr-08 10:42
mvePete O'Hanlon21-Apr-08 10:42 
GeneralRe: wrong forum Pin
Luc Pattyn21-Apr-08 11:07
sitebuilderLuc Pattyn21-Apr-08 11:07 
GeneralRe: wrong forum Pin
Spacix One21-Apr-08 11:09
Spacix One21-Apr-08 11:09 

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.