Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
QuestionCut, Copy & Paste from variable text boxes Pin
Martin310881-Jul-09 3:20
Martin310881-Jul-09 3:20 
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
Eddy Vluggen1-Jul-09 3:39
professionalEddy Vluggen1-Jul-09 3:39 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Baeltazor1-Jul-09 7:39
Baeltazor1-Jul-09 7:39 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Eddy Vluggen1-Jul-09 8:20
professionalEddy Vluggen1-Jul-09 8:20 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Baeltazor1-Jul-09 20:28
Baeltazor1-Jul-09 20:28 
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
DaveyM691-Jul-09 3:46
professionalDaveyM691-Jul-09 3:46 
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
Luc Pattyn1-Jul-09 3:49
sitebuilderLuc Pattyn1-Jul-09 3:49 
QuestionExpanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
MagForJ1-Jul-09 3:11
MagForJ1-Jul-09 3:11 
Does anyone know the best way to store and access thousands of abbreviations which are stored in a db and output the full string. For example Intel's stock symbol is INTC. When i read INTC from the db i want to set string str to Intel Corporation so the full name can be displayed to the user. currently the full string is not stored anywhere, just output on the fly based on the abbreviation and a million if-else statements OMG | :OMG:
ie.
if(abrev.equals("INTC")) str = "Intel Corporation";
else if(abrev.equals("GOOG")) str = "Google Inc";
....
....


Obviously the wrong way to go about it. Should the full name just be added to the db? could create hash table with abbreviation as key and full string as value. Yes the if-else method works but is awful to look at and hilariously bad. Thanks guys and gals
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
Manas Bhardwaj1-Jul-09 3:27
professionalManas Bhardwaj1-Jul-09 3:27 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
harold aptroot1-Jul-09 3:28
harold aptroot1-Jul-09 3:28 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
SeMartens1-Jul-09 3:29
SeMartens1-Jul-09 3:29 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
Keith Barrow1-Jul-09 3:37
professionalKeith Barrow1-Jul-09 3:37 
QuestionRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
EliottA1-Jul-09 4:25
EliottA1-Jul-09 4:25 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
dojohansen1-Jul-09 6:19
dojohansen1-Jul-09 6:19 
Questionadd controls to webform Pin
v_vidhya1-Jul-09 2:23
v_vidhya1-Jul-09 2:23 
AnswerRe: add controls to webform Pin
Niladri_Biswas1-Jul-09 3:47
Niladri_Biswas1-Jul-09 3:47 
GeneralRe: add controls to webform Pin
v_vidhya1-Jul-09 18:38
v_vidhya1-Jul-09 18:38 
Questionclickonce Pin
arkiboys1-Jul-09 2:12
arkiboys1-Jul-09 2:12 
AnswerRe: clickonce Pin
Manas Bhardwaj1-Jul-09 2:13
professionalManas Bhardwaj1-Jul-09 2:13 
GeneralRe: clickonce [modified] Pin
arkiboys1-Jul-09 2:27
arkiboys1-Jul-09 2:27 
QuestionTextbox Control function..... Pin
Hum Dum1-Jul-09 2:07
Hum Dum1-Jul-09 2:07 
AnswerRe: Textbox Control function..... Pin
musefan1-Jul-09 2:12
musefan1-Jul-09 2:12 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:40
Hum Dum1-Jul-09 2:40 
GeneralRe: Textbox Control function..... Pin
musefan1-Jul-09 2:43
musefan1-Jul-09 2:43 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:56
Hum Dum1-Jul-09 2:56 

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.