Jump to content

Lajos Juhász

Members
  • Content Count

    828
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  1. I've tried Bing if I ask how to convert a Delphi application the anser is:

     

    Hello, this is Bing. I can help you with your question. blush


    There are different tools and methods to convert an Android app to an iOS app, depending on your requirements and preferences. One possible tool is MechDomehttps://www.devteam.space/blog/convert-android-app-to-ios/, which allows you to upload your compiled Android APK and select whether you want to create an iOS app for a simulator or a real iOS device. It will then convert your Android app to an iOS app very quicklyhttps://www.devteam.space/blog/convert-android-app-to-ios/.

    Another possible method is to use Kotlin Multiplatformhttps://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html, which is a language and a set of tools for creating cross-platform applications that work on both Android and iOS. You can use Kotlin Multiplatform to write your business logic once and reuse it for both platforms, while keeping the native UI for each platform. You can also use existing libraries and frameworks for both Android and iOS in your Kotlin codehttps://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html.

    A third possible method is to use Delphihttps://docwiki.embarcadero.com/RADStudio/Sydney/en/Mobile_Tutorial:_Creating_an_Application_for_Mobile_Platforms_%28iOS_and_Android%29, which is a programming language and an IDE that supports creating multi-device applications for Android and iOS. You can use Delphi to design your user interface with reusable components, write your code in Delphi or C++, and deploy your app to either platform with minimal changeshttps://docwiki.embarcadero.com/RADStudio/Sydney/en/Mobile_Tutorial:_Creating_an_Application_for_Mobile_Platforms_%28iOS_and_Android%29.

    These are some of the possible ways to convert an Android app to an iOS app, but there may be others depending on your specific needs and preferences. I hope this information was helpful to you.
    https://www.devteam.space/blog/convert-android-app-to-ios/
    https://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html

    For the question how to convert an application in the answer it doesn't mention Delphi:

     

    Hello, this is Bing. I can help you with your question. blush

    There are different ways to convert an Android app to an iPhone app, depending on your requirements and preferences. One possible way is to use the Move to iOS apphttps://support.apple.com/en-au/HT201196, which helps you transfer your content from your Android device to your new iPhone, iPad, or iPod touch. You can transfer your contacts, message history, photos, videos, web bookmarks, mail accounts, calendars, and some of your appshttps://support.apple.com/en-au/HT201196.

    Another possible way is to use Kotlin Multiplatformhttps://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html, which is a language and a set of tools for creating cross-platform applications that work on both Android and iOS. You can use Kotlin Multiplatform to write your business logic once and reuse it for both platforms, while keeping the native UI for each platform. You can also use existing libraries and frameworks for both Android and iOS in your Kotlin codehttps://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html.

    A third possible way is to use MechDomehttps://www.devteam.space/blog/convert-android-app-to-ios/, which allows you to upload your compiled Android APK and select whether you want to create an iOS app for a simulator or a real iOS device. It will then convert your Android app to an iOS app very quicklyhttps://www.devteam.space/blog/convert-android-app-to-ios/.

    These are some of the possible ways to convert an Android app to an iPhone app, but there may be others depending on your specific needs and preferences. I hope this information was helpful to you.
    https://support.apple.com/en-au/HT201196
    https://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html
    https://www.devteam.space/blog/convert-android-app-to-ios/

     

    • Thanks 1

  2. 3 minutes ago, Uwe Raabe said:

    I'm glad that nobody suggested a solution involving an SQL server, yet.

    For this task the only proper solution can be done using webserver and python that would enable the application to work fast.


  3. 8 minutes ago, David Champion said:

    t would not be a big investment to acquire these 3rd party libraries and make them available for free.

    That's false. Every OS is a moving target. You cannot buy a finished solution and freeze it. You have to actively develop it. For years we see that Embarcadero doesn't have the required resources.

    • Like 2

  4. 2 minutes ago, programmerdelphi2k said:

    look, same that you "disable it or hide it" or use "ATable.Datasource := nil" etc... , the record still scrolling in background (memory)

    it's cheaper to query a database and move the data through the network.


  5. You should move this code to a class procedure in that case you can execute the dialog before you create the form. 

     

    If it's a modalform before wm_close you have to set the modalresult. I've tested in Delphi 11.2:

     

    procedure TForm2.FormCreate(Sender: TObject);
    begin
      if not OpenDialog1.Execute then
      begin
        modalResult:=mrCancel;
        PostMessage(handle, wm_close, 0, 0);
      end;
    end;

     

    • Like 1

  6. You can start from the help: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Data_Change_Notifications_(FireDAC)#:~:text=The Data Change Notifications feature,database client about these changes.

     

    For more information of how to configure the the Change Views feature, you can find a demo project at:

    • Start | Programs | Embarcadero RAD Studio Sydney | Samples and navigate to Object Pascal\Database\FireDAC\Samples\DBMS Specific\InterBase\ChangeView\Generic
    • Like 1

  7. 23 minutes ago, Fr0sT.Brutal said:

    No, this was a non-DB-related question, just curiosity.

    The FD reference was just to give context the reason why I have to lock all my users to a specific code page (also a nice example a problem when you're dealing with an ansi database using Delphi).

     

    24 minutes ago, Fr0sT.Brutal said:

    CharInSet won't check whether a char is ASCII or not and codepage-dependent cases are possible that won't produce neither compile-time messages nor run-time errors

    it will:

     

    [dcc32 Warning] Unit1.pas(32): W1061 Narrowing given WideChar constant (#$045A) to AnsiChar lost information

     

    25 minutes ago, Fr0sT.Brutal said:

    Runtime exception in such a basic function doesn't look good

    There is no runtime problem. The compiler will try to convert unicode string to ansistring,  code points that cannot be represent in ansistring will be replaced with ? a well known behavior of windows.


  8. 2 minutes ago, Fr0sT.Brutal said:

    Btw, I wonder how do you check whether a char is a letter of a some language (f.ex. Norwegian, German)? They have not only latin chars but some additional which can't be declared with simple 'a'..'z'. You have to add them explicitly, like 'a'..'z', 'æ'?

    That's easy for me. I use FireDAC with settings to string fields to widestring (unicode). When writing back the data firedac requires that windows is set for non unicode language to be the correct codepage (simply ignores client and db codepage). Thus I know for sure that if I convert a unicode string it will use the correct codepage.

     

    This is going to work until the database is using code page. 


  9. There is no "unicode" set in Delphi. Using CharInSet will only work on Ansi. For example on my Windows this will not show true on my laptop:

     

    procedure TForm1.FormCreate(Sender: TObject);
    var
      a: char;
      s: string;
    begin
      a:='њ';
    
      if CharInSet(a, ['њ', 'а', 'м']) then
        ShowMessage('true');
    end;

    Here is the reason:

     

    [dcc32 Warning] Unit1.pas(32): W1061 Narrowing given WideChar constant (#$045A) to AnsiChar lost information

    [dcc32 Warning] Unit1.pas(32): W1061 Narrowing given WideChar constant (#$0430) to AnsiChar lost information
    [dcc32 Warning] Unit1.pas(32): W1061 Narrowing given WideChar constant (#$043C) to AnsiChar lost information

     

×