Jump to content

Attila Kovacs

Members
  • Content Count

    1977
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. well, in this case you could derive TMyForm from TForm which has a .Show[Modal]: returntype; method and do many more things for every form in one place, and no need for a global "utils.pas". Just edit the class declaration at the top of the file from class(TForm) to class(TMyForm) (after you implemented TMyForm of course)
  2. For VCL: TWhateverForm.Create(whoever).Show[Modal]; and in OnClose event Action := caFree; and remove every form reference like "Form1: TForm1" except the main form's which is needed. If you need to pass arguments or need results then you can add a method to the Form class like public function ShowForm(myarguments): resulttype etc.. FMX, I don't know, I'd be surprised if it would be much different.
  3. Attila Kovacs

    AnsiString oddities

    for curiosity's sake, is there any compiler hint on that concat?
  4. Attila Kovacs

    EReadError "Property does not exist"

    Just got the similar case, I was removing published properties from existing visual components and did not open every dfm in the IDE so there were dfm's having old non-existent properties complaining at runtime. Can't remember the error message though.
  5. Attila Kovacs

    EReadError "Property does not exist"

    I'd say it's the TReader and the property does not exists in the class not in the dfm. Seems like you have different versions in the path or the component's package is used in other packages which are not rebuilt? Try to create a batch file which rebuilds everything from scratch, it could be helpful to debug such things.
  6. Attila Kovacs

    Move current entity to another unit?

    buhh, I'm so tired, Uwe, can't you make MMX coding for me while I'm sleeping? pleeease!
  7. Attila Kovacs

    Developing under Windows 11 in a VM not feasible ?

    If not, you should not use that product.
  8. Attila Kovacs

    Developing under Windows 11 in a VM not feasible ?

    You know that for this reason a recovery key/image/etc... should be generated?
  9. Attila Kovacs

    Developing under Windows 11 in a VM not feasible ?

    With your logic not only the VM but an encrypted HDD would not be recoverable anymore.
  10. Attila Kovacs

    Interesting way to copy dynamic arrays.

    I'm not sure that is well known or frequently needed, I think I saw it first here (maybe, dunno): https://stackoverflow.com/questions/19466038/finding-common-elements-in-two-arrays/19524788#19524788
  11. Attila Kovacs

    Application to generate all cross platform images

    Yeah, I bought the version 3 back in the days, it's pretty cool and worth every dime, you can generate everything you want and take also an SVG as a source. Won't edit your project files though. If you wanted to do so. Maybe LaunchGen handles SVG's too.
  12. I'd be interested if it fires up fast enough for double clicking on a taskbar shortcut on a slow VM.
  13. ctrl-v on the project name (xy.exe or .dll etc..) in the project manager at the upper right corner of the IDE. Just saying. Looks like it will open something new for you.
  14. Attila Kovacs

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    I did something similar the other day, installed Win11 into a HyperV container + Delphi 11 Trial with Android SDK, connected my phone via WLAN debug to the system, added a button to the form, F9 and voila, app is running on the phone. Brilliant. It's just slow AF as I'm on my old notebook 😉
  15. Attila Kovacs

    FB3.0 SQL

    aggregate + pivot not sure that FB3 supports the latter though
  16. Attila Kovacs

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    Apparently not anymore. I'm glad to see the industry coming together.
  17. Attila Kovacs

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    Is that a Windows 11 ARM running in a VM on a 3000 EUR MAC emulating x86 to run RAD Studio? 🙈 That will be nice! 😉
  18. Attila Kovacs

    SOAP Client Android

    And are you sure your android device is knowing that netbios name? What about using an IP instead?
  19. Attila Kovacs

    SOAP Client Android

    I don't know, first of all, what is this? "http:/masterdata/Artikel.asmx" this is not an URL. Is it an example with typo? I'd try to change http to https, hopefully your endpoint supports https. (which will raise further questions/problems but that will be the next step)
  20. Attila Kovacs

    SOAP Client Android

    should be https
  21. Attila Kovacs

    How can I use nslookup in my app.

    Why don't you just connect to myip.opendns.com from the outside?
  22. Attila Kovacs

    Parse Json

    maybe "adresse'] as TJSONArray);" the return type of Values[] is very general, you have to process it with checking against the type and cast them if apply.
  23. Attila Kovacs

    Parse Json

    for example: (jsonObj.Values['forretningsadresse'] as TJSONObject).Values['adresse']
×