strucnjak79
Programmer
Well I think you will find my question stupid, but I'm beginer, so plz help!
I need to make one form for several code forms... They all looks allmost the same, with code and name fields, and with grid to show existing data! For now it's ok! But I have city code, country code, street code and few more, so I dont want to make 10 forms, I just want to pass an argument to my form, so my code form will know which table in db to use!
This is how I create my form:
'if not assigned(Form1) then
frmSifarnik:=TfrmSifarnik.Create(Application);
frmSifarnik.Show;'
How to pass that data in new form?
Second, some of this tables has mote than two fields, maby two of them while others has only code and name fields... So can I use the same form for tables with 2 and tables with 3 field, and how? Can I hide or not create some fields if I dont need them?
I need to make one form for several code forms... They all looks allmost the same, with code and name fields, and with grid to show existing data! For now it's ok! But I have city code, country code, street code and few more, so I dont want to make 10 forms, I just want to pass an argument to my form, so my code form will know which table in db to use!
This is how I create my form:
'if not assigned(Form1) then
frmSifarnik:=TfrmSifarnik.Create(Application);
frmSifarnik.Show;'
How to pass that data in new form?
Second, some of this tables has mote than two fields, maby two of them while others has only code and name fields... So can I use the same form for tables with 2 and tables with 3 field, and how? Can I hide or not create some fields if I dont need them?