-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
As I understand, the APIs are bound at runtime, or am I mistaken? Can it be that your application tries to use an API that doesn't exist in a compatible form on SDK14 / S3? Edit: OR - the API is access restricted and you are not checking for the rights to access the API before use? Edit 2: I want to point out that all of the above are pure speculations on my part.
-
Why empty dynamic arrays = NIL?
Lars Fosdal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
I agree. NULL = There is no list. Empty = There is a list, but it is empty. -
Getting an Object Instance Name when ancestor is of TComponent
Lars Fosdal replied to bravesofts's topic in Algorithms, Data Structures and Class Design
One thing about component names is that you f.x. cannot dynamically add multiple identical frames to a form at runtime unless you ensure a unique name by doing something like this: type TOurFrameBase = class(TFrame) constructor Create(const AOwner: TWinControl); reintroduce; end; constructor TOurFrameBase.Create(const AOwner: TWinControl); begin inherited Create(TComponent(AOwner)); FPanel := AOwner; Parent := AOwner; Align := alClient; Name := ClassName + '_' + Seed.Next.ToString; // Ensure that every frame created gets a unique name I.e. we ensure a unique name for the frame instance. (Seed is a singleton for the class that delivers a unique (incrementing) cardinal (per app life time)). If you don't do this - you will run into duplicate name errors. -
why shortstring in Delphi cannot used in our Programs using New IDE?
Lars Fosdal replied to bravesofts's topic in Algorithms, Data Structures and Class Design
I don't mind the braces, TBH - but some of the expression operators still irk me, probably because I don't use them all day. -
why shortstring in Delphi cannot used in our Programs using New IDE?
Lars Fosdal replied to bravesofts's topic in Algorithms, Data Structures and Class Design
Sure, that and array[0..n] of Byte; are pretty common. Still, Byte sized variables and constants are used a lot in various APIs. Even nuggets like SizeOf(Byte); can be found sprinkled around the RTL and VCL, although I believe the universal result of that is 1. -
AND watcher = currentUser() Add the above to the query
-
why shortstring in Delphi cannot used in our Programs using New IDE?
Lars Fosdal replied to bravesofts's topic in Algorithms, Data Structures and Class Design
Avoid using short strings. Short string is for backwards compatibility only (typically for older desktop apps migrated to the new). They are ANSI based and do not support Unicode natively, and have been deprecated since 2009 when the Unicode string format was made king of the hill. Byte still is a useful number format when you don't need a large range, -
There is also https://uberpdf.org/ by @Joe C. Hecht
-
delphi set max length for Argument of string in a method
Lars Fosdal replied to bravesofts's topic in Algorithms, Data Structures and Class Design
foo(Copy(aValue, 1, 20)); -
Ann: TECNativeMap 4.4 is available with delphi 11 support
Lars Fosdal replied to Christophe E.'s topic in Delphi Third-Party
That's a pretty impressive map component! -
Parnassus Bookmarks for Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
@Stano Did you try the actual navigation feature of it - i.e. goto? -
True that, but it depends on the number of rows and if the control keeps the already fetched rows or discard them. I am used to working with tables where fetch all is not an option. Beyond a certain number - a search is a better option than a scroll bar.
-
That could imply potentially hundreds of queries to the DB while you drag?
-
Delphi Package Manager - choices?
Lars Fosdal replied to Darian Miller's topic in Delphi Third-Party
Speaking of TChart - I wonder why TChart and DUnit isn't in GetIt instead of among the additional installation options? -
Delphi 11 Windows XP compatibility tweak
Lars Fosdal replied to mitzi's topic in RTL and Delphi Object Pascal
Frequently, that turns out to be a myth. -
Is it possible to see Git current working branch in IDE?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi IDE and APIs
Edit: No problem. I do that all the time 🙂 -
Is it possible to see Git current working branch in IDE?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi IDE and APIs
Odd. They show the same for me. -
Delphi 11 Windows XP compatibility tweak
Lars Fosdal replied to mitzi's topic in RTL and Delphi Object Pascal
Ah, ok. Now I recall that incident. With XP no longer getting patches, I am not sure if that qualifies it as more stable? -
The number of VS Code users is somewhat higher. About 14 million users in February 2021.
-
Delphi 11 Windows XP compatibility tweak
Lars Fosdal replied to mitzi's topic in RTL and Delphi Object Pascal
That is not a Windows 10 problem. That is a Kyocera printer driver problem. -
Is it possible to see Git current working branch in IDE?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi IDE and APIs
Well, to my defense I also posted the native git command that in theory can be implemented in a plugin to the IDE 😉 I want to point out that I do not use multiple working directories for different versions of the same project. Always the same directory, but with the appropriate version checked out. With multiple working directories, it is so easy to accidentally pull up a file from the history list which refers to a file in the wrong directory for the version that you wanted to work on. That said, I can have multiple versions checked out to different folders when I do comparisons in Beyond Compare or VS Code - but I always use the same working folder when working on the code. Hence, I find it sufficient to let the git client show it to me. -
Is it possible to see Git current working branch in IDE?
Lars Fosdal replied to Mike Torrettinni's topic in Delphi IDE and APIs
Well, yeah, good luck with that. -
In all fairness, most seem to be from the beta period. Number created since September 9th = 155. project = RSP AND resolution = Unresolved AND affectedVersion = "11.0 Alexandria" AND created >= "2021/09/09" ORDER BY priority DESC, updated DESC On the other hand, of all the reported errors, there are 287 that closed, in addition to the 546 unresolved ones project = RSP AND resolution != unresolved AND affectedVersion = "11.0 Alexandria" ORDER BY priority DESC, updated DESC with 131 of those 287 marked as Fixed project = RSP AND resolution = Fixed AND affectedVersion = "11.0 Alexandria" ORDER BY priority DESC, updated DESC
-
https://quality.embarcadero.com/browse/RSP-35511?jql=project %3D RSP AND resolution %3D Unresolved AND affectedVersion %3D "11.0 Alexandria" ORDER BY priority DESC%2C updated DESC 546 issues registered for Alexandria as of now. It is not ready for use, IMO. Waiting for Update 1.
-
Without a proper code example with similar structures to what you use, it is not possible to understand the nature of your problem.