Posts by Wellington Silva Ribeiro • 559 points
24 posts
-
2
votes1
answer60
viewsQ: Are callback functions asynchronous, only with special methods like setTimeout?
Checking the app built by Philip Roberts( http://latentflip.com/loupe ) that demonstrates the functioning of the web browser loop Event and webapi, I noticed that only when we use callbacks calling…
javascriptasked Wellington Silva Ribeiro 559 -
1
votes1
answer1010
viewsA: See Nfe without certificate
Yes, you can use any http client to query the Nfe query page, and download the contents of the query for a string, then you assemble the document by translating the html tags into the fields…
nfeanswered Wellington Silva Ribeiro 559 -
3
votes1
answer82
viewsA: Capture last INSERT value
Use the LAST_INSERT_ID() function of mysql that will return the last inserted id. Place this snippet just after your Sert after the $error variable $ultimoId =…
-
0
votes3
answers6684
viewsA: How to create a dynamic variable
In Html do the following: <input type="text" id="seuInput" onkeyup="keyupFunction()"> In javascript: function keyupFunction() { var valor_do_campo_aqui =…
-
0
votes2
answers44
viewsA: Search for more data after finding nothing related to ID
Well I didn’t test this code because I don’t have a way, maybe I need to make adjustments, but the idea is to loop outside with the levels allowed for each iteration. $nivelInicial =…
-
0
votes2
answers44
viewsA: Search for more data after finding nothing related to ID
I made an adaptation of your code, because I don’t have the database, I think it would be something like, of course I’m not passing the level as a parameter in the function. function…
-
3
votes2
answers439
viewsQ: Why Delphi/pascal builders cannot be private like in C++
Is there any reason why I can’t leave a Delphi constructor as private?
-
2
votes1
answer720
viewsA: Incompatible type: method Pointer and regular Procedure
The definition of type has to be TonAnoMesSelecionadoEvent = procedure(Sender,Parent:TObject;Mes,Ano:Integer) of object;
delphianswered Wellington Silva Ribeiro 559 -
1
votes1
answer713
viewsA: What is "Static" for and how?
Keyword 'Static' Declaring members or methods of a class as static makes them accessible without having to instantiate the class. A member declared static cannot be accessed with an instantiated…
phpanswered Wellington Silva Ribeiro 559 -
1
votes2
answers476
viewsA: Query runs Filterrecord only once
Good @Luizvichiatto, as I promised in the comment of the previous reply I made an example that works perfectly. Step 1: put in the Form a Datasource, Dbgrid, Edit and a Dataset in my case I used…
-
2
votes1
answer402
viewsQ: What is the best way to develop a video player from scratch?
Well, I would like to know what topics, articles books finally references would help me in the task of developing a video player from scratch as the average classic player for example?
-
2
votes0
answers33
viewsQ: What is the possible cost of using blocks for exception treatment in too ?
As exceptions are interruptions caused most of the time by the operating system, I wonder if there is any cost of memory (stack/heap) since, existing exception treatment the program continues to run…
-
2
votes3
answers10155
viewsA: Uppercase in the first letter of every word in a column in Mysql
This code below will solve your problem: UPDATE tabela SET coluna = SELECT CONCAT(UPPER(SUBSTRING(coluna FROM 1 FOR 1)), SUBSTRING( coluna FROM 2 FOR LENGTH(coluna))) FROM tabela…
mysqlanswered Wellington Silva Ribeiro 559 -
3
votes1
answer609
viewsA: Mysql JOIN with or without Foreign key?
What is the difference between relating 2 tables using and not using a foreign key? R: the difference is that when you don’t use foreign key to relate its tables to the restriction of the…
-
1
votes2
answers476
viewsA: Query runs Filterrecord only once
Well, as stated in the above comments, to call the Filterrecords event must be added some condition in the filter property of the example Dataset: TQuery.Filtered := False; TQuery.Filter :=…
-
1
votes1
answer1564
viewsA: How to browse a Tobjectlist property via Rtti?
Here is a simple example of how to go through a property of type TObjectList<T>, no doubt there are other numerous ways to accomplish this task, as the goal here is to show the way and…
-
1
votes1
answer464
viewsA: Nextval Postgres Delphi problem
DM.GetProximoControle(); While DM.ProximoControle.eof do begin if(DM.ProximoControle.FieldByName(SOMA).AsInteger =0) then begin unico := DM.ProximoControle.FieldByName(PROXIMO).AsInteger; break;…
-
1
votes1
answer56
viewsA: Error checking fields in database
Well, in the third line of your code in the variable $ver_utilizador = "SELECT * FROM utilizadores", no user information and email soon the call of your method ver_utilizadores($username, $email)…
phpanswered Wellington Silva Ribeiro 559 -
2
votes2
answers1874
viewsA: Assemble an image and video player in Delphi
@Renato_souza_delphi, explaining in a very simple way what I had mentioned in the other answer. In Delphi in the menu bar go to: Component / Import / Component. On the next screen choose the option…
delphianswered Wellington Silva Ribeiro 559 -
3
votes2
answers1286
viewsA: Query sql does not work with date in Delphi
QueryExtraiDados.Close; QueryExtraiDados.SQL.Clear; QueryExtraiDados.SQL.Add('Select * from clientes where nascimento=:dtNasc'); QueryExtraiDados.Params[0].Value := FormatDateTime('yyyy-mm-dd',…
-
3
votes2
answers1286
viewsA: Query sql does not work with date in Delphi
In accordance with described in the mysql manual second paragraph: The DATE type is used for values with a date part but no time part. Mysql retrieves and displays DATE values in 'YYYY-MM-DD'…
-
1
votes2
answers1874
viewsA: Assemble an image and video player in Delphi
Use Activex control from windows media player that solves your problem as it can run videos and open JPEG. Import the ocx that is in the system32 folder and adapt the control to your needs.
delphianswered Wellington Silva Ribeiro 559 -
0
votes1
answer154
viewsA: Delphi 7 with Indy 9 runs on Windows 8?
The indy9 works yes in windows 8, the issue is not S.O but the technologies used in the use of the protocol(s) (smtp and cia) and network(media) that has been constantly updated. For example the…
-
1
votes1
answer463
viewsA: Doubt about modal form in MDI application
Have you tried using the BringToFront? With the code snippet below removed from the help Delphi you can adapt to use reality, try to use the BringToFront to keep your question screen above the other…