hi Guys/Gals
OK my question, it seems complicated why I want to do it this way but I have my reasons ^_^
I have 3 Forms, FormBlue and FormRed and FormFunctions
Now, the code in FormFunctions e.g.
****
uses Blue, red
****
FormBlue.label1.color := clBlue;
FormBlue.edtBox.text := 'Bla';
OK so heres what I want, to change the form "FormBlue" name to a variable so I can use "FormRed" aswell without changing the structure of FormFunctions...
e.g
Var
FormInUse : TForm;
begin
formInUse := FormBlue; or formInUse := FormRed;
formInUse.label1.color := clBlue;
formInUse.edtBox.text := 'Bla';
how can this be done?
thnx! ^_^