Page 1 of 1

First Time Delphi Programmer

Posted: 30 Mar 2009, 16:10
by Ryan_Cooper
Firstly forgive me if there is already a topic like this one already...

I am trying my hand at designing a simple application for adding and viewing info in my firebird based SQL DB using Delphi but honestly i have no idea what i'm doing and would really appreciate any help or tips I can pickup as the only things that i do know is how to basically use the visual designer and the small bits of code that i figure out or pickup from listening to the developers at my work....Please can you guys help I would greatly appreciate it.

my first problem is that I have managed to create my window with its drop down menus and toolbar buttons but how do i get the menu items to open another form that i have created when clicked on.

Re: First Time Delphi Programmer

Posted: 30 Mar 2009, 18:01
by spearone
Well you first have to setup a connection to the DB. I know with a Microsoft Access DB i used ADO Query's etc.

I can probably rustle up some of my code if I look hard enough :)

Re: First Time Delphi Programmer

Posted: 30 Mar 2009, 21:02
by SoulBlade
Ryan_Cooper wrote: but how do i get the menu items to open another form that i have created when clicked on.
On the OnClick event just show the required form. Which form? Use the combobox selected index to determine that.

Re: First Time Delphi Programmer

Posted: 01 Apr 2009, 10:08
by Ryan_Cooper
Ok so how do i have my app connect to my firebird database

Re: First Time Delphi Programmer

Posted: 10 Apr 2009, 18:46
by geraldhum
I know this is old but have a look at www.connectionstrings.com

Re: First Time Delphi Programmer

Posted: 17 Apr 2009, 10:46
by Ryan_Cooper
Ok cool so now i know how to get it to point to my DB but i got a problem i have all my forms the way i want it but i cant seem to get them to display under the OnClick menu when i want to assign buttons to it...is there some code that I'm missing

Re: First Time Delphi Programmer

Posted: 17 Apr 2009, 11:23
by Vampyre_2099
I'll try my hand at this... although I haven't used delphi in a good 3 years.

if I understand correctly you have multiple forms

if so then for the onclick of the button you need to put

button1.onclick(blah blah blah)
begin
form2.show;
end;

then when you try run the app, it should have a message saying that it requires a link to another form, should it add it? you say yes