Jump to content
DavidOne

FMX low code wizard error

Recommended Posts

Hello,

I am working with Delphi 11.1 on a Windows 11 Pc.

I downloaded the "Low code wizard 1.0" from the Get it and I created a mobile project using the wizard.

When I try to run the project I get the following error: Project LowCodeTest.exe raised exception class EListError with message 'Duplicates not allowed'.

 

I try to enable and disable different option in the wizard but the error remains there.

Has somebody aleady encoutered and solved this problem?

 

Thank you,

Davide

Share this post


Link to post

hi,

comment this line in Model.Types.pas

 

// Get Screen orientation.
function TScreenOrientationMonitor.GetScreenOrientation: TScreenOrientation;
begin
  Result := TScreenOrientation.Portrait;
//  TMessageManager.DefaultManager.SubscribeToMessage(TOrientationChangedMessage, DoOrientationChanged);
  var screenService: IFMXScreenService;
  if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, screenService) then
    Result := screenService.GetScreenOrientation;
end;
 

  • Thanks 1

Share this post


Link to post
On 8/15/2022 at 7:59 PM, trond said:

hi,

comment this line in Model.Types.pas

 

// Get Screen orientation.
function TScreenOrientationMonitor.GetScreenOrientation: TScreenOrientation;
begin
  Result := TScreenOrientation.Portrait;
//  TMessageManager.DefaultManager.SubscribeToMessage(TOrientationChangedMessage, DoOrientationChanged);
  var screenService: IFMXScreenService;
  if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, screenService) then
    Result := screenService.GetScreenOrientation;
end;
 

Thank you, it solved the error!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×