-
Content Count
1936 -
Joined
-
Last visited
-
Days Won
25
Everything posted by Attila Kovacs
-
Andorid Char xor is this a delphi bug or is it my fault?
Attila Kovacs replied to Turan Can's topic in Cross-platform
It shows the values as octal up to 31 except TAB. Nice. -
Andorid Char xor is this a delphi bug or is it my fault?
Attila Kovacs replied to Turan Can's topic in Cross-platform
I have no clue what is this for but 0x8 is octal 10 and 0x9 is TAB which is "\t". We still can't see the most important part of the code, how do you evaluate the "output". Anyway, no matter what it is, this is for sure not the way this should be done. Edit: Also, the output is suspicious. "This code has been working on windows for years." How many years? 20? Was it compiled with an AnsiString Delphi compiler? -
Cannot perform this operation on a closed dataset
Attila Kovacs replied to bazzer747's topic in Databases
why don't you hit 'Break' and look into the call stack? -
you have to pass it one by one, like: SELECT * FROM tTableName WHERE Status IN (:ST0,:ST1) thus, you have to build your query with there is no "IN (:ONEPARAM)"
-
I don't get it, if its a remote server, how comes that there is no REST between the client and the server?
-
https://www.php.net/manual/en/function.exif-read-data.php
-
Hi all, Is there any existing unit/module whatever for handling In-App clipboard functionality? App should not leak data over clipboard, but I would like to keep the feature inside the app. It's shouldn't be too hard, I'm just curious if there is already any solution. Handling text is sufficient. (VCL/Windows)
-
You can't just register a clipboard format and expect that every control starting using it. That's not how windows clipboard works. My implementation was attached 11 hours ago, need further testing. It looks good so far. By the way, with the very same unit it would be possible to encrypt the clipboard data too. But I see no use for that, just saying.
-
Ok, here is my prototype. - The goal was to keep application data safe from the clipboard. - It tries only CF_UNICODETEXT to keep safe, every other formats are free to come and go. (for now?) - RichEdit does not pass the necessary events, so it needs further client code to protect - no extended testing yet, but I can assure that this behavior will drive the user crazy 😉 - no performance penalty tests - no clue what Antivirus programs says for modifying the import table It does capture clipboard events and keeps copied unicode text in a variable instead of the clipboard. On paste command, it pastes from this variable. (as far my basic paste algo works) On OS Clipboard change, if it's CF_UNICODETEXT, overwrites the In-App clipboard variable to be able to paste into the app from the outside. I have no clue yet if there are any flaws, but it was lot of fun to make it. InAppClipBrd.pas
-
so why do you comment on something you don't understand?:) Especially with ctrl-c/ctrl-v. Is that all how clipboard works in your opinion?:)
-
Hm, thanks Lars, this will be a good start. Hope I can isolate, not just watch. Lets see!
-
Thanks @Ugochukwu Mmaduekwe, no problem, I just wanted to inform if there is already something for that. I'll check hooking up some windows messages.
-
@Fr0sT.Brutal Not quite. I think my description is also crystal clear. 😉
-
it's a recurring problem most likely no ODBC driver installed
- 2 replies
-
- firedac
- delphi 10.3.3
-
(and 1 more)
Tagged with:
-
Bug in Delphi string behavior?
Attila Kovacs replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
High five! -
@Kryvich thx, works as you described. (db login-error-form, prior to any other, including main-form created)
-
Wow. After so many years of working with Delphi I have just noticed that you can paste code into the watch list 🤪 Or did I install some experts?
-
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
What if you create a TBaseBase with protected overloaded methods and public in TBase(TBaseBase) TChild(TBaseBase) or TBase with protecdted overloaded methods and public in TBaseExposed(TBase) and TChild(TBase) ? Or you go from New() to .FromJSON(JSON: string): TMyClass and .FromInteger(I: integer): TMyClass? Or creating records with Implicit operators for string and integer/whatever, then you could write Child := '{somejson}'; or Child := 1; (did I go too far?:) -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
@aehimself Yep, I missed that everything is public. You can't hide overloaded public methods. -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
you won't see the 4 overloads from a 2nd unit, only from this one where the classes are declared Ah everything is Public. You can't hide it. -
Reintroducing overloaded methods - is it possible?
Attila Kovacs replied to aehimself's topic in Algorithms, Data Structures and Class Design
try it again from a new unit -
paste into watch list
Attila Kovacs replied to Attila Kovacs's topic in Tips / Blogs / Tutorials / Videos
@limelect I've started a 10.2 without anything installed and it works. Give it a try. -
What color did a user click on in an Image
Attila Kovacs replied to Tom F's topic in Algorithms, Data Structures and Class Design
if it's a 24bit bitmap you could try with TBitmap's ScanLine -
TFDBatchMoveSQLWriter and table structure updates
Attila Kovacs replied to Stéphane Wierzbicki's topic in Databases
@Stéphane Wierzbicki It's not that easy as it sounds. What if a column name changes? Is it a new column or just the name changed? What if a datatype changes? etc..etc.. Anyway, I can't even imagine what can you do with this kind of data in an SQL Server where columns are occasionally added. Either you should unpivot the excel before importing it or storing the file in a blob. -
In windows 10, the title bar gets smaller in maximized state as in any other states. Not just the IDE, every application. And this is not the issue. The issue is, somebody decided to put controls onto the title bar. This is such a no-go, antipattern, etc.... every kid knows that. Now you see why.