0
Well I’m having trouble creating the form
in Delphi, I’m using a procedure but it’s giving direct error.
Could someone tell me a more efficient way to create a form
in Delphi?
Current code:
procedure TLogin.CriarForm(NomeForm: TFormClass);
begin
//Procedimento para criar formulario na memória
with NomeForm do begin
Try begin
TForm(NomeForm):=NomeForm.Create(Application);
TForm(NomeForm).Showmodal;
end;
Finally
FreeAndNil(NomeForm);
End;
end;
end;
vixi man the Delphi xe5 n speech only points to the parameter qnd calls the Creatform(frmPrincipal) function; even with quotes from the error
– Gabriel Ribeiro
By your code, you have to inform the form class, for example:
CriarForm(TfrmPrincipal)
repair theT
at first.– stderr
blz I’ll try to group it
– Gabriel Ribeiro
msm error dnv...
– Gabriel Ribeiro
I tested here and it worked... Not knowing which error appears is hard to help. :/
– stderr
let me see if anything pops up down here in the bug fixes
– Gabriel Ribeiro
undeclared Identifier seems to have q declare the form somewhere
– Gabriel Ribeiro
In
Uses
you put the Unit form?– stderr
I put a uses there on top of the data module frmPrincipal n puis pa automatically create qnd compiles to create dynamically afterwards
– Gabriel Ribeiro
put in uses agr and gave msm error
– Gabriel Ribeiro
ae agr was missing a point
– Gabriel Ribeiro
CriarForm(frmSistema.TPrincipal);
– Gabriel Ribeiro
blz vlw I’ll take a look at her
– Gabriel Ribeiro
Gabriel, if possible edit the question and put the error that was presented! If you prefer post an answer with the error resolution. :)
– stderr