-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Which again makes me wonder why not SELECT SUM(Field1) AS Total FROM YourSourceView but as mentioned, I suspect the example differs from the real world need... -
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Doh, you are right, Uwe! -
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Not sure if Totalling fields is the best example for the use case, as that is far more efficient to do in the queries By API, do you mean the interface section of the class? The challenge is that you need a predictable way to associate the fields with the field name. You could write a routine like this procedure ConnectFields(Query: TDataSet; const Fields: TArray<TField>; const Names: TArray<string>); begin Assert(Length(Fields) = Length(Names), 'Number of fields and number of names must match'); for var ix := 0 to Length(Fields) - 1 do begin Fields[ix] := Query.FieldByName(Names[ix]); if not Assigned(Fields[ix]) then raise Exception.Create(Format('Field %s not found.', [Names[ix]]); end; end // usage var Field1, Field2, Field3, Field4: TField; begin ConnectFields(Query, [ Field1, Field2, Field3, Field4], ['Field1', 'Field2', 'Field3', 'Field4']); ... which doesn't save you that much code, really. -
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Are you doing this within a class or multitude of classes, or is it within a method or multitude of methods? Is TField your own class? -
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
So it is not about visual use? If not, I need to understand more about how the TFields will be used. -
How to make "dynamic initialization" procedure
Lars Fosdal replied to Tommi Prami's topic in RTL and Delphi Object Pascal
There are many ways to do this. Will you need to reference the TField components in any way, or are they just for display or editing? Will there be a need for different data format handing for different fields? Different titles, sizes, validation, etc? -
I got a Lenovo P16 (i7)64Gb/ 1TB+500GB Workstation Laptop, and run "corporate" Windows 10 latest patches on the WS and Win11 Pro on a Hyper-V VM. This machine is my regular work machine and it runs an SQL Server instance on the primary OS as well. I also have a private MacBook Pro M1 16" with 32GB and 2TB, running Parallels and Win 11 for ARM on a VM, and RHEL on a VM. Delphi installs and runs just fine on both Win 11 VMs. Interestingly, the MBP is faster than the P16 for the VMs, staying cool and silent, while the P16 spins up the fans like a turbine. I haven't tried dongles on my VMs, since signing happens on the corporate build server, but both VM hosts can pass through USB ports, so I would expect it to work.
-
In theory, the AIs might be able to pull out such data.
-
What new features would you like to see in Delphi 13?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
We all know maturity is not related to age 😏 I am living proof of that. 😜 -
What new features would you like to see in Delphi 13?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
Valid points. I too wish FMX was on a better maturity level. -
What new features would you like to see in Delphi 13?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
He specified for VCL. Why would you try to shoehorn 3D graphics into a 2D framework? -
@David Schwartz I assume there are paid services out there that offer such data. How many businesses are we talking about? If it is a limited number, it might be just as cheap to have someone google and register.
-
What new features would you like to see in Delphi 13?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
@shineworld 2. I assume you meant "refactoring", not "refractory"? 3/4. Why not simply use GExperts? 5. Why not use a tool like Continua CI for setting version for multiple projects at once? Added bonus - compile, package, distribute automatically on commit to git. 6. FMX already has that covered? 7. ActiveX doesn't work well on other platforms than Windows -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
@techdesk https://www.archbee.com/blog/technical-specification Without a definition / specification, every software project becomes an endless series of misunderstandings. A mocked up screenshot alone, hardly represents a specification. If you can't be arsed to really describe in detail what you want, you'll probably never get anyone interested. Courtesy of Copilot -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
Oddly enough, I implemented a serial modbus protocol in Turbo Pascal over 35 years ago to talk to PLCs. https://github.com/LarsFosdal/DOSTimberDryingKiln/blob/main/source/MODBUS.PAS -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
Personally, I wouldn't use a visual component as the core. It binds you to just one of the many platforms such a comms lib could be used on. Once you have a platform agnostic comms lib, you could base a VCL component on top of it. Now you just need to document the rest of your functional requirements and add pointers to some actual documentation and examples. If it looks interesting enough, maybe someone will take on the task. Good luck. -
Determining what driver FireDAC uses for MSSQL connection
Lars Fosdal replied to Ron Schuster's topic in Databases
@Ron Schuster - Sometimes, there may be more than one driver installed, and the default one may be one that is less performant.- 5 replies
-
- firedac
- connection
-
(and 1 more)
Tagged with:
-
Per February, 7th Not fully operational Quality Portal - in read only mode while awaiting lift to cloud. Older GetIt server(s) are still work in progress Operational GetIt servers for Athens 12.x GetIt servers for Athens 11.3 - new installers at my.embarcadero.com GetIt servers for Community Edition The DocWiki The Blogs (albeit slow)
-
Current state of the Embarcadero services
Lars Fosdal replied to Lars Fosdal's topic in General Help
https://blogs.embarcadero.com/getitupdateradstudio11getitonlineinstallation/ Also support for CE installation. Note that GetIt for 11.x might not be completely "refilled" yet. -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
So, what you want, @techdesk is for someone to help with implementing the serial or tcp/ip protocol handler in Delphi, that can transfer data between an embedded program running on the STM32 and a Delphi program running on a PC, Tablet, or Phone? -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
This is NOT a help desk system. Delphi-PraXiS operates independantly from EMBT and the PEOPLE here are are professional software developers and hobbyists. This is a place that exists for users of Delphi to discuss the challenges they have when developing in the language. Any discussion needs clearly stated and accurate facts about the challenge at hand, for people to be able to contribute with suggestions for a solution. Lack of such detailed facts, will lead to requests for more facts, and AI generated bulldroppings are generally not considered to be facts. We still have no clue to what this actually does or how it is supposed to work. We are not mind readers. Draw a mockup of how you imagine this to look Describe the functionality in detail What that Button does What is shown or entered in the Memo Just dropping a product name does not enlighten us at all. We've likely never used the product and have no clue what it does or how it is supposed to work. -
GetIt Package Manager Delphi 11.3 Timeout
Lars Fosdal replied to VolkerS's topic in Delphi IDE and APIs
But our indignation was righteous! -
Remote Debugging "Attach To Process" on non-Windows platforms
Lars Fosdal replied to @AT's topic in Delphi IDE and APIs
Is the gdb.exe in the path? I.e. can it be started from the folder / user context where the remote debug server is running? Can it be related to which user context the process is running in? When QP eventually gets back online, I suggest filing a report if you can't find an explanation for the inability find gdb.exe. -
Current state of the Embarcadero services
Lars Fosdal replied to Lars Fosdal's topic in General Help
According to @Uwe Raabe -
Seeking Collaboration: Creating a Delphi Component for STM32 Boards
Lars Fosdal replied to techdesk's topic in General Help
I am in the sarcastic/ironic corner today, so ... Is there no AI willing or able to rewrite the C++ code in Delphi?