15,905,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Burdzy (Top 2 by date)
Burdzy
23-Jul-10 10:42am
View
lol, No I didn't type in 18,000 case statements, I don't hate my life that much!! The data was pulled from an IEEE Standards authority Text File. It's a 1 to 1 mapping of Company ID's to registered Company Names. I downloaded the current text file and scripted the creation of the case return statements in EditPlus (Which is a GREAT PROGRAM by the way!!). The reason for not wanting to attach a database is that I am working on Writing a stand-alone executable that I can send out to several people. I don't want to have to worry about installing a DataBase on everyone's computer. As far as I can tell, the list doesn't get updated tooo frequently, so if there is a major update, I would have to update everyones computer anyway, so i am not too worried about it!!
Burdzy
22-Jul-10 13:45pm
View
I couldn't use an array as I am using a string as my lookup value. It's a good idea about using a database, but that's really the only information that I have for the company (I am not dealing with address, contacts, etc.) I found another possibility, though I am not sure the implications as I haven't used them much: Since my data really isn't changing much, could I add them all as Resource Strings and then query the resourcemanager using the resourceManger.GetString("Key"); ?? Think that would be quicker/a better approach? I will do some research on the Resource manager, and post any findings. Thanks guys for the quick responses!!