Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

dictionary

delphi

  • Please log in to reply
19 replies to this topic

#1 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 19 March 2012 - 01:04 PM

hi every on...
i want to make a small dictionary with delphi (similar to Oxford v.8)
please help me how to use dblookuplistbox and connect it to dbeditbox.
thanks.
  • 0

#2 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 20 March 2012 - 11:44 AM

Hello Saeed,

You use both by connecting them to a TDataSource which connected to a TDataset that containing your dictionary data. You never connect a dbeditbox to dblookuplistbox or vice versa. If in some project you found that they seems connected, it was because they were connected to the same TDataSource or to the same TDataset.

I think you want to learn the basic on database programming with Delphi. Check out Delphi tutorial section here. There you will find some tutorials on the basics of database programming with Delphi.

Cheers!
  • 0

#3 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 20 March 2012 - 01:22 PM

thanks.
could you give me an simple example of that?
  • 0

#4 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 20 March 2012 - 07:59 PM

Maybe you should show us what you have done so far, and we can suggest you the fix.
  • 0

#5 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 21 March 2012 - 02:33 AM

yes, why not...
i want to make something similar ti Oxford v8
THANKS.

Attached Files

  • Attached File  dic.rar   36.45KB   55 downloads

  • 0

#6 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 22 March 2012 - 05:56 AM

No, dont just give us the whole code. Please also highlight what the problem is. Post part of the code that you think directly related with the problem.
  • 0

#7 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 23 March 2012 - 07:32 AM

what's the matter????
check it.
  • 0

#8 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 23 March 2012 - 10:15 AM

36Kb of zipped code is a LOT to sort through.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#9 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 23 March 2012 - 11:13 AM

Please help us to help you :)

Copy part of the code that you find you are having problem to handle and post it in your next post, along with more explanation of the problem and what you are trying to achieve.
  • 0

#10 Saeed7007

Saeed7007

    CC Regular

  • Member
  • PipPipPip
  • 43 posts

Posted 24 March 2012 - 12:22 AM

i think it does not related to the code... it's related to the vcl(linking db object together and then coding...)
however, you guys suppose my question is: how can i make a simple small dic like oxford? which db object to use? if you know Delphi, then no matter the question is about what...
Thanks.
  • 0

#11 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 24 March 2012 - 04:48 AM

Virtually there are thousands way to create such application. I could choose to use ini file to store my data, other person might want to store data in xml, other might choose SQL lite, and some other might choose MS Access, MySQL, some might choose to host the dictionary definitions in web service. The list could go on and on. They may choose to use DBAware controls (such as DBLookUpListBox or TDBEdit) to show the data, but this is not mandatory. Some might choose to use ordinary VCL (not DB-aware), or maybe render the gui into html first and show it inside embedded web browser, or maybe use FireMonkey controls (which does not have DB-Aware controls version).

You see? There is no single answer to your question. Because it covers basically everything.

So break down your problem into more focused details. Ask them one by one so we can help you quickly. Otherwise you have to wait for us to have enough time to do the job for you (I hardly see this could happen in near future).
  • 0

#12 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 24 March 2012 - 08:21 AM

Also, it matters what version of Delphi you're using. Delphi XE and Delphi 5 have some distinct differences. Further, the libraries you have available make a huge difference. Connecting a TQuery to a BDE connection is different from connecting a TSmartQuery to an Oracle DB without using OCI.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download