This message was edited by Rodimus Prime at 2004-6-22 0:41:46
This message was edited by Rodimus Prime at 2004-6-22 0:28:31
This message was edited by Rodimus Prime at 2004-6-21 23:33:24
This message was edited by Rodimus Prime at 2004-6-21 23:31:53
: I actually did take you back to the beginning in the first steps. If you've already used the Database Desktop and created the fields, then you would begin the building of the database in the delphi code at step #2. I'm not sure what the .NET file is. What delphi version are you using? The steps I've given work for Delphi Ver 3 and I think work for Delphi Ver 7 however I've just purchased 7 and haven't created a database from scratch with it yet. All my code and databases written in Ver 3 work fine under 7, so there can't be too much difference.
: Taking a step back, have you created the fields you want in the database using the Database Desktop yet? If not, this is the first thing you need. Keep in mind that the Database Desktop is a program outside of Delphi. If you have your paradox table created, start Delphi and begin with the code entry at step 2. If you want to post your e-mail, I could send you a sample program and related files.
Going back to Database Desktop I added these fields - Employee Number, Employee Last Name, Employee First Name, Department, Phone Extension Number, Street Address, Suburb Address, City Address, and Manager ID.
I set the Employee Number to the primary key, and used that secondary indexes thing for Employee Last Name.
In Delphi, when I dropped the DBGrid onto the form I see all the fields apart from the Employee Number and Employee Last Name fields. Should these two fields indeed not be showing on the DBGrid?
EDIT - On a closer look, those two fields are on the DBGrid afterall.
I work with delphi 6 at school and 7 at home. I haven't transferred files from school to home or vica versa yet. I think I will copy all the files belonging to the project should I need to work on it from different locations, is that ok?
my e-mail address is Glvtn_06@hotmail.com
EDIT - sorry for the editing, but new question keep popping up as I progress, I hope that's ok
In tut 2 step 9 I must type in Table1.insert, must I type in employee1.db - which is my TableName property or Empdb1 - which is my Name property.
I also don't fully understand step 10 of tut 2, what code must I enter for the button?
EDIT - One last edit, I want to make a little bit more clear to you what I'm trying to do here.
So you know which fields I need, furthermore, the program should allow the user to add a new employee, find details about an employee from the emp number, and the program has to be able to print a list of all the employees currently stored in the database. The list doesn't need to be sorted initially. After I get it all working, maybe I'll sort it too.
Oh, and is there a way I can check for errors when for example the user tries to enter a letter for the emp number?
Sorry bout all the edits, hopefully your'e not sick of me yet hehe