Theres a lot of potential answers for this, how hae you stored your words vs defintiions? which version of delphi are you using?, how much experience do you have? and what have you read about and dismissed so far (and why was it dismissed)?
You didnt entirely answer the question about how your dictionary was laid out, you said you stored words in a txt file, how? wheres the description?
A better answer by the sounds of it would have been a database. However, if you take a look at stringlist you'll see a keyd list and you could use that, assuming you read the word and description in correctly.
Well, yeah, i seen it now. My idea now is to put words into a list by String List, and i want to do like, when you click on a word in List box, or when you type in the word in Edit box and press ENTER, it shows the explanation for that word in Memo box. And i dont know how to do that.
In my project, i used Memo box, List box and Edit box.
Then, can u tell me how to do that?
But i think, that reading from a file is better, cuz ill be adding hundrets of words in there. So i think reading a description from a file, will be way better. But that will work 2.
A Stringlist is a class of Tstring. It contains a list of strings that can be accessed and managed through the various methods (add, delete, find etc..) It also allows you to separate each string using a NameValueSeparator. The character assigned to this property is used to separate any of the strings into two parts. the first could be used as your word, and the second as the definition. Stringlists also provide the ability to use streams so that you have built-in access to the file of choice through the class. You may find examples online. One good source would be MArco Cantu who has written many books on Delphi. Another source is the about.com site. Lookup Delphi and PAscal to tie into their resources.
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...