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.
First Time Delphi Programmer
-
- Registered User
- Posts: 3129
- Joined: 22 Sep 2008, 11:16
- Location: stuck in my own world
First Time Delphi Programmer
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
Re: First Time Delphi Programmer
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
I can probably rustle up some of my code if I look hard enough
Re: First Time Delphi Programmer
On the OnClick event just show the required form. Which form? Use the combobox selected index to determine that.Ryan_Cooper wrote: but how do i get the menu items to open another form that i have created when clicked on.
Core i5 3550 | 8GB RAM | 500W | Samsung T260 | GTX760 OC | 4.56TB HDD space
-
- Registered User
- Posts: 3129
- Joined: 22 Sep 2008, 11:16
- Location: stuck in my own world
Re: First Time Delphi Programmer
Ok so how do i have my app connect to my firebird database
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
Re: First Time Delphi Programmer
I know this is old but have a look at www.connectionstrings.com
-
- Registered User
- Posts: 3129
- Joined: 22 Sep 2008, 11:16
- Location: stuck in my own world
Re: First Time Delphi Programmer
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
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
-
- Registered User
- Posts: 1321
- Joined: 04 Nov 2007, 02:00
- Location: /home/jhb/fourways
Re: First Time Delphi Programmer
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
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