-
Content Count
86 -
Joined
-
Last visited
Posts posted by skyzoframe[hun]
-
-
-
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
-
Also, select some range and press "Ctrl+/" , it gives "//" to each selected line. Press again, and will remove it.
-
-
creativity the key, AI can not handle that...
-
ctrl+shift+c+left mouse press
-
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 :)
-
-
3 minutes ago, Squamis said:Yes, I can use stored procedures, macroses, .... This topic just a question for understanding - it is a bug or we can do something!
Just why a simple query can't be executed with standart functionality.
I have no clue.
-
Try to handle everything over stored procedures in database side.
In code call the procedure.https://www.postgresql.org/docs/current/sql-createprocedure.html
-
1 minute ago, Squamis said:Try TableName like t1$t2$t3
Yes it is working... https://dbfiddle.uk/OrzyibpI
-
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.
-
hi, check here one solution, how to use Listview in fmx.
-
1
-
-
3 hours ago, Mike Torrettinni said:I think the last updated exams were in 2011,
Good to know.
-
2 hours ago, Roger Cigol said:b) it gives you areas that you can focus on to learn more and hence stimulate your mind and perhaps become a slightly better more experienced programmer.
yes, this is the reason, from one point of view.
-
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 CompilersDelphi 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?
-
22 hours ago, haentschman said:(exam time: ~1 hour)
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. -
25 minutes ago, haentschman said:The Developer certificate is only valid for a limited time...
how long is it valid for? a year?
-
53 minutes ago, haentschman said:...what you want?
The first one, do you have it already 🙂 // Delphi Certified Developer
-
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ő
-
19 minutes ago, limelect said:Right now from my point of view as a programmer, I catch the screen of a
program as a picture copy to clipboard saves to ADVrichedit so simple.
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.
-
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?
-
21 hours ago, Lars Fosdal said:Basically, it is an automatically incremented integer value which uniquely identifies the row, without having any other relation to the data in the row.
You use these identity fields as primary keys for efficiently joining tables, and as unique id's for doing updates and deletions.
There are any other ways to handle unique identities?
-
4 hours ago, Lars Fosdal said:Basically, it is an automatically incremented integer value which uniquely identifies the row
How do you solve the limit of integer range? What are you think about not "basically way"?
write text on image with specific position fmx
in FMX
Posted
@Rollo62 Do you have any solution for the problem?
https://docwiki.embarcadero.com/CodeExamples/Sydney/en/FMXTCanvasFillFunctions_(Delphi)