Forum Discussion
domik
15 years agoOccasional Contributor
Hello Alex,
I think that you misunderstand me. I know that I can't use ODT objects by script extensions. What I would like to do is a code generator.
So after clicking/writing in some kind of wizard - the code similar to the one posted above would by placed directly in script unit.
This could work exactly like any other script extension. The only difference would be that there would be generated huge amount of code (text) with procedures etc. just to be able to generate classes and objects programatically.
Basically instead generating simple
if something then
something
I want to generate
Procedure generate_classes;
var
..
begin
..
..
..
end;
function do_something;
begin
...
end;
Procedure another_generated_procedure;
var
..
begin
..
..
..
end;
Dominik.
I think that you misunderstand me. I know that I can't use ODT objects by script extensions. What I would like to do is a code generator.
So after clicking/writing in some kind of wizard - the code similar to the one posted above would by placed directly in script unit.
This could work exactly like any other script extension. The only difference would be that there would be generated huge amount of code (text) with procedures etc. just to be able to generate classes and objects programatically.
Basically instead generating simple
if something then
something
I want to generate
Procedure generate_classes;
var
..
begin
..
..
..
end;
function do_something;
begin
...
end;
Procedure another_generated_procedure;
var
..
begin
..
..
..
end;
Dominik.