Posts by Giovani • 2,875 points
88 posts
-
0
votes1
answer50
viewsQ: Should I use First after using Open in Firedac?
When I use Fdquery to perform a select that returns n records, I need to use the . First command after the . Open to make sure it stays on the first record? Example: QryAux3.Close; QryAux3.SQL.Text…
-
0
votes1
answer41
viewsQ: Hostinger error 500 - How to detect the problem
I am using Hostinger’s hosting to host my application, however, it is not working and returns me the error below: How can I know what’s happening to my site?…
-
0
votes1
answer41
viewsA: Hostinger error 500 - How to detect the problem
In researches I did, this can be a problem in some PHP code, and to detect a precise log of the errors that are occurring. To solve, I followed the tutorial on this page:…
-
9
votes3
answers455
viewsA: What is Google One Tap?
According to the website: https://zapier.com/engineering/google-one-tap-inline/ Google One-tap is a new experience that allows users to create an account or log in to your site with a single click.…
-
1
votes0
answers38
viewsQ: Confirm not being called when using $database->delete from Medoo
I’m using the Medoo framework. I have a button that calls the function below, and if I leave so the Confirm works normally. <script> function RemoveStatus(e) { //Pega o elemtno que chamou o…
-
2
votes2
answers1154
viewsQ: What type of variable allocates less memory, integer or string?
Imagining the situation I’m taking from the database a field number, which represents the client’s code. This value tends to be between 1 to 50000. I must for this case save as string or how integer…
-
2
votes0
answers30
viewsQ: Remove Packet Tclientdataset
Hello. I have a Tclientdataset, and in it I define the parameter FetchOnDemand := False and PacketRecords := 10; At the event AfterScroll calling GetNextPacket, and in this way I have data demand…
-
0
votes1
answer212
viewsQ: IF condition - Good use practice
During an encoding I had to carry out the development in the following way: IF (Condicao1 = True) IF (Condicao2 = True) IF (Condicao3 = True) Imprime(Mensagem); The way I’ve accomplished is…
-
4
votes1
answer180
viewsQ: Why does Floattostr exist if Delphi does not possess the Float data type?
Reading about the data types of Delphi/Pascal I realized that there is no type Float, however, there is the function FloatToStr(), as well as StrToFloat(). In this case, you could use floating point…
-
5
votes2
answers858
viewsQ: Comparison of variables of different type with conversion returns incorrect result
I have the following code var Valor1: string; Valor2: Double; begin Valor1 := '150.15'; Valor2 := 150.15; If StrToFloat(Valor1) = Valor2 then ShowMessage('Iguais'); end; In this situation, sometimes…
-
1
votes1
answer56
viewsQ: Access Violation in module 'Dbxcommondriver220.dpl'
I’m having trouble using Firebird in Embarcadero C++ XE8. Error: Access violation in module 'DBXCommondriver220.dpl'
-
0
votes1
answer56
viewsA: Access Violation in module 'Dbxcommondriver220.dpl'
My solution: Reinstall the x32 Firebird, even though Windows is x64, with the option of the image selected below:…
-
0
votes2
answers1876
viewsA: How to get the serial number or ID of a USB stick on the MS-DOS system?
I understand what you’re looking for is this: wmic diskdrive get PNPDeviceID Or: wmic diskdrive get SerialNumber Source: https://superuser.com/questions/600394/get-usb-key-manufacturer-serial-number…
-
2
votes1
answer105
viewsQ: Result update from another table
I have the following SQL: SELECT id_grade ,MAX(data_lancamento) FROM faturamento_produtos WHERE data_lancamento < '01-01-2010' GROUP BY id_grade Where it only searches for what was released…
-
1
votes1
answer75
viewsQ: Different Windows (Xaml) for Landscape and Portrait
I’m programming in C# using Visual Studio Enterprise 2015 apps for Windows Phone 8.1. I was able to make a simple application, a calculator, but I would like to know: how do I use a shaman for the…
-
0
votes1
answer375
viewsA: bitWrite function code for use with PIC microcontroller
I managed to make it work with the following code: void bitWrite(char *x, char n, char value) { if (value) *x |= (1 << n); else *x &= ~(1 << n); }…
-
1
votes1
answer375
viewsQ: bitWrite function code for use with PIC microcontroller
I am therefore an Arduino code for the PIC pro compiler Mikroc. I arrived at a part that contains the following: byte data[3]; // pulse the clock pin 24 times to read the data for (byte j = 3; j--;)…
-
0
votes1
answer28
viewsQ: Call to 'Ansireplacestr' is ambiguous
After switching RAD Studio XE8 to RAD Studio 10 Seattle I got the following error: [bcc64 Error] Unit1.cpp(425): call to 'AnsiReplaceStr' is ambiguous System.StrUtils.hpp(51): candidate function…
-
0
votes1
answer28
viewsA: Call to 'Ansireplacestr' is ambiguous
I decided to inform the function I am using AnsiString Altered code: UniTable1->FieldByName("chuva")->AsFloat = StrToFloat(AnsiString(chuva), ".", ",");…
-
0
votes1
answer221
viewsQ: How to use two Opengl viewports using QT?
I’m trying to make two viewports in Qt but I’m not succeeding, below follows the code: 1. Method of drawing on canvas: void GLWidget::paintGL() { //Limpa buffer //glClear(GL_COLOR_BUFFER_BIT |…
-
1
votes2
answers742
viewsA: Error sending email with Javamail
Taken from this OS question in English: https://stackoverflow.com/questions/15378133/could-not-connect-to-smtp-host-smtp-gmail-com-port-465-response-1 You need to tell him that you are using SSL:…
-
1
votes1
answer2029
viewsQ: Exception Eexternalexception in module ntdll.dll at 000xxxxx. External Exception C0000026
When trying to debug a software in Embarcadero XE2 the following error occurs: Exception EExternalException in module ntdll.dll at 000xxxxx. External exception C0000026 I realized this occurred…
-
5
votes1
answer2029
viewsA: Exception Eexternalexception in module ntdll.dll at 000xxxxx. External Exception C0000026
I decided as follows: I removed the Aqtimer I opened the register: HKCU Software Embarcadero BDS 9.0 Debugging Embarcadero Debuggers Evaluators and inside this in the archive comp32x.dll changed its…
-
14
votes2
answers2001
viewsQ: Does Delphi own a garbage collector?
Does Delphi have an automatic garbage collector? How does it work. If not, what tools can do this?
-
27
votes6
answers2483
viewsQ: Why is Drag-and-Drop programming rarely used?
There are currently several applications Open Source, including Brazilian projects. However, what I realize is that the function of Drag-and-Drop that the IDEs provide. I notice that many projects…
-
3
votes1
answer2029
viewsQ: How to validate Dbgrid fields before saving?
I have a DBGrid, but I want it to validate the fields before saving to the database. I believe I have to use the event BeforePost but I have no idea how to do it. Someone could give me a hint?…
-
1
votes1
answer781
viewsQ: How to allow the insertion of information in the database using Dblookupcombobox?
I have a DBLookupComboBox capturing data from the table Species for the user to select what they need, after that this data is saved in the table Animal. My question is how do I manage to allow the…
-
15
votes1
answer7144
viewsQ: What is Data Warehouse and what are its advantages and disadvantages?
What is Data Warehouse and what are the advantages and disadvantages of using it.
-
4
votes3
answers7458
viewsA: Frameworks for Java reporting
Dynamicreports: http://www.dynamicreports.org/ Dynamicreports is based on Jasperreports. It allows you to create dynamic report projects and it doesn’t need a visual designer report. You can very…
-
3
votes1
answer10171
viewsA: Open GDB file
GDB files are Borland/Firebird files. You can open them with Ibexpert: http://www.ibexpert.net/ibe/. User and password required to open, default is: User: SYSDBA Password: masterkey…
-
7
votes2
answers16707
viewsA: How do the SHA family hash algorithms work?
SHA1 (Source): SHA1 implements a keyless hash algorithm, which takes a up to 264 bit message and produces a summary of the 160-bit message and is used for checking the integrity of the message. It…
-
4
votes2
answers755
viewsA: Normalization of Mysql tables
Before talking about normalization, some things to be observed are: In the normalization of names do not be afraid to write enough, it is much better something like: id_funcio_external instead of…
-
5
votes1
answer202
viewsQ: How does Bitap’s algorithm work?
According to Wikipedia in English: The bitap algorithm (also known as o-shift or, shift and or Baeza-Yates-Gonnet algorithm) is a matching sequence approximate algorithm. The algorithm indicates…
-
5
votes1
answer10937
viewsQ: Difference between Ansistring, Widestring, Unicodestring, Shortstring and String and how to convert
During my Delphi learning I see implementations that use AnsiString,WideString, UnicodeString,ShortString and String but I don’t know the difference between them. Another thing that always occurs to…
-
1
votes1
answer1306
viewsA: Correct way to record multiple records at once dbgrid and clientdataset
First remember that the ApplyUpdates only works when you are working with CachedUpdates (marked as true in connection properties). I believe the best way to use the ApplyUpdates is this, and…
-
0
votes2
answers12040
viewsA: How to store a pdf file in a Mysql database?
To save a file to a bank do as follows: public boolean insertFile( File f ){ Connection c = this.getConnection();//busca uma conexao com o banco try { PreparedStatement ps =…
-
4
votes2
answers1998
viewsQ: Open xls (password protected) file in Delphi and save data in Firebird table
I have an office file (.xls), password protected, which has several lines. I want to search the contents of the column 1 and knowing the row that the result is found I want to save this single row…
-
0
votes1
answer274
viewsA: Prevent image blinking when timer is used
Reply from Vinicius Gobbo A. de Oliveira: Unfortunately there’s nothing pointing to it. There’s something causing a invalidate in your form, which causes it to be rendered again. The only thing in…
-
0
votes0
answers302
viewsQ: How to run hot key on Tadvglowbutton
I own a form to use base to create others using the component Tadvglowbutton. In the form example working shortcut keys on all buttons of this type, but even after I copy the button to my new form…
-
1
votes1
answer103
viewsA: Convert reverse_iterator to iterator?
As specified in the question comments, the resolution occurred using itQuebra.base(). Thus, the code was changed from: string coluna = "Coluna..: " + to_string(distance(itQuebra, aItMsg) + 1) +…
-
0
votes1
answer2934
viewsA: Where do I find the specs for DARF generation?
According to information found on the Internet, from 2012 DARF started to follow the standard created by Febraban. The layout can be found here:…
-
0
votes2
answers335
viewsQ: How to decide which cryptographic hash to use?
I would like to know in which cases I should use the various existing hash, because I know there are big differences between security and processing between them. Is there any considered the best…
cryptographyasked Giovani 2,875 -
1
votes1
answer274
viewsQ: Prevent image blinking when timer is used
I have a background image in my application, but it gives the impression of blinking due to the use of a Ttimer that the application has. I tried to change the interval of Ttimer but the problem…
-
3
votes1
answer242
viewsA: How to recover data from a query made with "ADODB.Command" object?
In accordance with quoted by user @Andersondeoliveira, it is in the code below that the returned data are recovered: function ADOGetParamVal(ParamName: string): Variant; begin try Result:=…
-
1
votes1
answer78
viewsQ: Open forms change size when closing another
Have forms of the kind fsMDIChild that are set to start maximized (wsMaximized). They open normally, however when I close some of them the others change their state to WsNormal. I wonder if there’s…
-
1
votes1
answer58
viewsQ: How to make wsmaximized not hide top menu?
I have a form in dephi but when I maximize it or else mark the Windowstate = Wsmaximized the top bar some not being possible to see the action buttons (close, minimize) and the title of the form.…
-
1
votes1
answer717
viewsQ: Avoid endless loop of errors
I would like to know if you can avoid the occurrence of infinite loops of errors in Delphi XE2. These errors are usually critical errors of missing some file (like DLL) or without permission to…
-
6
votes1
answer650
viewsQ: What is the difference between Getcurrentprocess and Getcurrentprocessid?
What’s the difference between the call GetCurrentProcess and the MainHandle defined below: var MainHandle: THandle; begin MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID);…
-
3
votes5
answers32714
viewsA: Java Library for Brazilian Electronic Invoice (Nfe)
You probably already know the Acbr Project which is mainly made for Delphi. They have an executable software (Acbr Monitor) that is in the machine’s Systray and will be waiting for commands in the…
-
1
votes1
answer1120
viewsQ: Change zip code column by inserting dash in Firebird
I have a table of cities where I own the Zip Code. The data looks like this: 89620000 I’d like to leave it at that: 89620-000 How can I do this in Firebird?