Jump to content

skyzoframe[hun]

Members
  • Content Count

    85
  • Joined

  • Last visited

Everything posted by skyzoframe[hun]

  1. skyzoframe[hun]

    Choose a Folder dialog

    Now it has. https://docwiki.embarcadero.com/CodeExamples/Alexandria/en/SelectDirectory_(Delphi)
  2. Hello, I need advice from all of you. I know I am not the only one who has got these problems. Maybe someone has already solved it. 1.-How to handle undo and redo in code? 2.-What are the best strategies for handling it in the relational databases (InterBase and Firebird)? best wishes, k.z.
  3. skyzoframe[hun]

    The best way to handle undo and redo.

    The first step is solved, by using the update flag, creating a negative and positive ID with one trigger when inserting anything into the database. // interbase database // before insert AS declare variable COUNT_ID INTEGER;declare variable I INTEGER;/**/ begin COUNT_ID=0; i=0; new.TIME_CREATE=Current_TimeStamp; /* UPDATE_KEY -> default False! */ if (new.UPDATE_KEY=False) then begin /*when create*/ if (not exists( select * from MGR_SZABASZAT where ID>-1)) then begin new.ID=0; end else begin select count(*) from MGR_SZABASZAT where ID>-1 into :COUNT_ID; i=:COUNT_ID; WHILE (i>0) DO begin if (not exists (select ID from MGR_SZABASZAT where ID=:i)) then begin new.ID=:i; i=0; end else i=i-1; end /* WHILE (i>0) DO*/ end /*if (not exists( select * from MGR_SZABASZAT)) then*/ end else begin /*update*/ if (not exists( select * from MGR_SZABASZAT where ID<0)) then begin new.ID=-1; end else begin select count(*) from MGR_SZABASZAT where ID<0 into :COUNT_ID; i=:COUNT_ID+1; i=i*-1; WHILE (i<0) DO begin if (not exists (select ID from MGR_SZABASZAT where ID=:i)) then begin new.ID=:i; i=0; end else i=i+1; end /* WHILE (i<0) DO*/ end /*if (not exists( select * from MGR_SZABASZAT)) then*/ end end
  4. Also, select some range and press "Ctrl+/" , it gives "//" to each selected line. Press again, and will remove it.
  5. I found these.: https://www.tweaking4all.com/software-development/software-delphi/delphi-ide-code-editor-keyboard-shortcuts/ https://leanpub.com/codefasterindelphi
  6. I mean in delphi. for example.. ctrl + shift + c , on procedure or function yougot there, what you wrote there. anyway alt+f4 are the best all the time :)
  7. skyzoframe[hun]

    FireDAC + TableNames with '$'

    I have no clue.
  8. skyzoframe[hun]

    FireDAC + TableNames with '$'

    Try to handle everything over stored procedures in database side. In code call the procedure. https://www.postgresql.org/docs/current/sql-createprocedure.html
  9. skyzoframe[hun]

    FireDAC + TableNames with '$'

    Yes it is working... https://dbfiddle.uk/OrzyibpI
  10. skyzoframe[hun]

    FireDAC + TableNames with '$'

    var Q : TFDQuery; . . . Q.SQL.Text := ('select * from TEST$TEST_;'); Q.SQL.Text := ('select * from TEST$$TEST;'); Hmm... strange, because it is working for me. Also in command line. https://dbfiddle.uk/eDOCApeX
  11. skyzoframe[hun]

    Adding items to ListView

    hi, check here one solution, how to use Listview in fmx.
  12. Hi everyone, I need the certification, because of my family. They saw me all the time reading and working in front of my computer. My deadline is one semester. I want to ask for some advice before I buy anything. How should I prepare? What can I expect? What is your experience? Sincerely Zoltán-Attila Köllő
  13. yes, this is the reason, from one point of view.
  14. After a while, I read these kinds of books. From 2016. - Expert Delphi By Paweł Głowacki - Delphi High Performance By Primož Gabrijelčič - Mastering Delphi Programming: A Complete Reference Guide By Primož Gabrijelčič - Delphi Cookbook - Third Edition By Daniele Spinetti, Daniele Teti - Delphi Programming Projects By William Duarte - Delphi GUI Programming with FireMonkey By Andrea Magni -- by Dalija Prasnikar Delphi Memory Management for Classic and ARC Compilers Delphi Event-based and Asynchronous Programming Now reading.: Delphi Thread Safety Patterns Because I am far from intelligence. I have to read. ˇˇ Are there any good books to read? What did I miss?
  15. How many questions do we have about the basic certification? If the test time is about 1h and there are 120 questions available, every question has 1/2min to focus on it. So the exam will be lightning-chess or something.
  16. how long is it valid for? a year?
  17. The first one, do you have it already 🙂 // Delphi Certified Developer
  18. skyzoframe[hun]

    No one can help

    https://download.tmssoftware.com/Download/Manuals/TMS TAdvRichEditor.pdf Or you can store pictures on a local drive, and only the picture name has to be in the database. Or use a custom table for blob fields and call only when you have to show the picture.
  19. skyzoframe[hun]

    No one can help

    I don't understand: why do you need so many big files, or blobs, in your database? by the way.: They are the same drawings in different file formats. If I need to save something in database, I'll use a *.emf file. I only have one question: Can you reduce the file size somehow?
  20. skyzoframe[hun]

    How do I delete a row in a database with FireDAC?

    There are any other ways to handle unique identities?
  21. skyzoframe[hun]

    How do I delete a row in a database with FireDAC?

    How do you solve the limit of integer range? What are you think about not "basically way"?
×