Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Well, I should also pay better attention to details. My initial reply was VCL code, not an FMX code. My apologies. TComboEdit.OnChange handler procedure TForm2.ComboEdit1Change(Sender: TObject); begin if ComboEdit2.Items.IndexOf(ComboEdit1.Text) < 0 then ComboEdit2.Items.Add(ComboEdit1.Text); ComboEdit2.ItemIndex := ComboEdit2.Items.IndexOf(ComboEdit1.Text); end;
  2. Lars Fosdal

    Footman

    with is a horrific construct with loads of pitfalls. Don't use it.
  3. Lars Fosdal

    How to check and set

    My own scheduler loads a config, and has events added dynamically based on the config settings. Config-wise, events can be oneshot or repeating. My settings allows for fixed intervals, or specific timeslots during a day. The settings are parsed and a scheduler, which basically is a list of times and what is supposed to happened at that time, is rebuilt on startup and at midnight for today's events. Events that are in past time are removed. It also add specific built in events such as weekly events or overnight events. Basically, your timer would then look up "Now" and compare it to the sorted list of events in the scheduler. If "Now" > "Event.Time", trigger the event and remove the entry from the scheduler. In my case, it creates threads specific to the event. How frequently you need to check "Now" and scan the events, depends on how urgent it is that the event happens on time.
  4. Lars Fosdal

    How to check and set

    Which version of Delphi? I am being very terse, since doing is learning. Checkbox.Checked gives you the boolean state of the checkbox MemoField.Text returns the text where you have the day See https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Date_and_Time_Support for how to compare timestamps
  5. Copying the code from D11.x would definitively be a no-no. Recreating the functionality where needed with your own code - no problem.
  6. Do you want to add the selected from ComboEdit1 to the dropdown of ComboEdit2? Hook Combo1Edit.OnSelect procedure TForm4.ComboEdit1OnSelect(Sender: TObject); begin ComboEdit2.Items.Add(ComboEdit1.Text); end; This event is called when an item is selected from the dropped down list of ComboEdit1. Naturally, you need to add code to see if the item has already been added before you add it.
  7. Lars Fosdal

    Object files for Google Snappy C API?

    The quality of posts is far more important than the quantity of posts. Focus on the quality of your posts, and you'll have no complaints.
  8. Lars Fosdal

    The Delphi 11.2 release thread

    Just to capture the gossip 🙂
  9. Another option: REST server used by REST client (thick or thin)
  10. Lars Fosdal

    VM and Legacy apps

    I used to use VMWare for Workstation on Windows years ago, but haven't looked back after switching to Hyper-V, running Windows 11 in the VMs. I use Parallells on my MBP M1, running Windows 11 for ARM in the VMs.
  11. Lars Fosdal

    Delphi beta testing a "premium" privilege?

    Except they are not new products (I've opted out from everything but RAD Studio).
  12. If you have a need for updating a wider range of data, synchronously or asynch, to clients - combining MQTT with Kafka is really powerful. https://medium.com/python-point/mqtt-and-kafka-8e470eff606b
  13. TMS MQTT sounds like a good choice. Disclaimer: I have not used it myself. But - plan ahead for service discovery. Query a discovery server for a valid endpoint config. Query again if a new discovery server is detected. Query that server for the actual MQTT connection to use, then connect. Because, servers come and go.
  14. Lars Fosdal

    Upload media to WhatsApp cloud API

    curl -F emulates filling content on a web page and pressing enter. I've not used -F before, so I am not sure if the reference 'item' in 'item=something' identifies the field to be filled, and that the right side is what it should be filled with?
  15. Lars Fosdal

    Delphi beta testing a "premium" privilege?

    Why? It is stupid and annoying.
  16. It is odd that it works with remote debug symbols enabled, though.
  17. Lars Fosdal

    Delphi beta testing a "premium" privilege?

    Something else I find annoying. EMBT insists on mailing me offers for products that I already subscribe to. Why? What are the odds that someone would add another license for Delphi at Black Friday, Week, Month, Xmas time, insert price reduction opportunity here?
  18. Personally, I would probably not use such tools. The move from one visual component lib to another on a different platform is going to cause headaches. You would not want to do direct DB from a mobile device, you often can't use tabs and dialogs the same way - the UI form factor is different, touch vs mouse is different. If the biz logic is done in separate classes, such a move is not difficult to do manually. If it is tightly intertwined with GUI code - you will have a job on your hands. As for the state of Mida - the last update on their forums were in April 2019?
  19. There have been a large number of theories about why this happened. File format has been ruled out. Windows Policy may be relevant - but with a workaround, I am not going to dig deeper.
  20. Well, I didn't spot one - so none from me. A binary editor could be used to create one?
  21. On a different note: Delphi-PRAXiS is not social media platform, so please stay on topic and contribute facts rather than speculation. Edit: I am not naming names - if you feel that I am addressing you, well, maybe I am 😛
  22. Lars Fosdal

    How long does it take to update Delphi 11?

    Add FMXLinux to the GetIt packages that needs to be uninstalled before an upgrade.
  23. @Uwe Raabe I can reveal that I am a happy user of Project Magician 🙂 - Option checked. No change.
  24. Possible causes? A developer on a non-corporate laptop does not have this problem. Another developer on corporate laptops have the same problem as me on both new and old laptops. That seems to indicate a Windows policy may be a factor here. Anyways - Include remote debug symbols ticked gave back working breakpoints for us.
  25. What is the default setting for Project | Options | Linking | Include remote debug symbols? It was off. On = I can debug. Locally.
×