Jump to content

Recommended Posts

Posted

I have a function in VCL to write Unigui it works, but returns this error loading table:

"c is not a constructor"

//vcl
function ExisteFormulario(NomeFormulario: TComponentName): TUniForm;
var
  I: Integer;
begin
  Result := nil;

  for I := 0 to unisession.FormsList.Count  - 1 do
  begin
    if Result = nil then
    begin
      if TUniForm(UniSession.FormsList.Items).Name = NomeFormulario then
      begin
        Result := TUniForm(UniSession.FormsList.Items);
        Break;
      end;
    end;
  end;
end;

//unigui
function ExisteFormulario(NomeFormulario: TComponentName): TForm;
var
  I: Integer;

begin
  Result := nil;

  for I := 0 to Screen.FormCount - 1 do
  begin
    if Result = nil then
    begin
      if Screen.Forms.Name = NomeFormulario then
      begin
        Result := Screen.Forms;
        Break;
      end;
    end;
  end;
end;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...