Posts by Junior Moreira • 7,299 points
217 posts
-
10
votes2
answers1880
viewsA: Unity 3D and Android, how to handle txt file?
According to the Documentation, you need a little gum call Resources. Pathname of the target Folder. When using the Empty string (i.e., ""), the Function will load the entire Contents of the…
-
2
votes1
answer394
viewsA: While capturing screen error occurs: Raised Exception class Eoutofresources with message
Friend, create a new project, put in function and declare in uses JPEG. Now add a component TImage, a component TTimer with Interval 400. In the component TTimer apply the function call but this…
delphianswered Junior Moreira 7,299 -
3
votes1
answer194
viewsA: Unity 5 - Shoot up, Enemy ship does not shoot
Buddy, the way you built your script got kind of complicated to actually work, the way you presented the code to understand that the class was never called! Another detail is that you have built an…
-
2
votes1
answer1324
viewsA: Capture Webrowser text
Use Delphi’s own native functions for this, follow example: vResultado := Trim(Copy(FONTE_TEXTO,1,Pos(' ',FONTE_TEXTO))); Understand the process: Trim, vai remover os espaços, Copy, vai copiar o…
delphianswered Junior Moreira 7,299 -
3
votes2
answers730
viewsA: Text Editor with RTF support
To avoid future problems, I suggest you implement the two platforms (Web and Desktop) you can convert all RTF to HTML with the following procedure: Include in your project: /** * RTF…
-
2
votes1
answer1522
viewsA: Notification Bar Take on app background color using Delphi
Following the documentation, you need to change the colorPrimaryDark there are several ways to do, you can create your own theme or modify the existing one, you can implement in XML or in…
-
2
votes1
answer1447
viewsA: How to resolve "Unknown user name or password unavailable database alias" error?
The error message is very simple and easy to understand! Username or password not found in the database, as you had to format and reinstall again, you probably did it different from how you did…
-
3
votes1
answer1296
viewsA: Break line in a given character
Imagine and try to use the same internal function that is already using the Length. procedure CopiaApenasPartesString; var vRestante, vTextoAuxiliar : String; begin vTextoAuxiliar := O texto que…
delphianswered Junior Moreira 7,299 -
2
votes1
answer938
viewsA: Grab Listbox’s Multiselect content and play in a Memo on the same line
You must make a loop and go through the entire list looking for the selected values, passing 1 to 1. procedure TForm1.Button1Click(Sender: TObject); var i : Integer; begin for i := 0 to…
-
4
votes2
answers1162
viewsA: Is it possible to leave the label and text at 90 degrees?
You cannot rotate the component TLabel (as far as I have discovered), you can find components around that support this behavior, the Firemonkey is able to generate this effect! However, it follows a…
delphianswered Junior Moreira 7,299 -
2
votes1
answer1135
viewsA: Justify Qrddrichtext
As far as I know, real problem is that the component does not support justified alignment, what you can do and if you have knowledge to do so, is, change the class of the component and add this…
delphianswered Junior Moreira 7,299 -
13
votes2
answers2975
viewsA: Is it possible to create an input uppercase and keep the placeholder in lowercase only in CSS?
Try it like this input { text-transform: uppercase; } ::-webkit-input-placeholder { text-transform: lowercase; } :-moz-placeholder { text-transform: lowercase; } ::-moz-placeholder { text-transform:…
cssanswered Junior Moreira 7,299 -
1
votes1
answer389
viewsQ: Sql Code Syntax Highlighting
Hello, does anyone know any component (or function) capable of highlighting certain parts of a given text (Highlighting). I am implementing a system where the user will be able to execute some SQL…
delphiasked Junior Moreira 7,299 -
3
votes1
answer329
viewsA: How to install the Tidhttp component in Lazarus?
Can be installed normally, just download the appropriate version and install! Reference and Installation Tutorial!…
-
2
votes2
answers458
viewsA: Firedac: Getfieldnames without quotation marks
Fields are returned with Quotes due to database normalization. Here a little different approach: Documentation. Alist is a Tstrings Scendant that receives the field Names. Any existing strings are…
-
5
votes1
answer2028
viewsA: How to get value from one form to another?
Your approach is strange, I couldn’t identify some properties reading your Code! My approach would be to use global variables, as you want to close Form 2 and return to Form 1 by passing the data,…
delphianswered Junior Moreira 7,299 -
8
votes2
answers3327
viewsA: How to make a motion system using touch in Unity?
You can test the positions: //Variáveis de controle bool up = false; bool down = false; bool left = false; bool right = false; if (touch.y < Screen.height / 4) { Debug.Log ("Para Baixo"); //Aqui…
-
10
votes1
answer1945
viewsA: Error to get Windows 10 version with Delphi
Its algorithm is even correct, the problem is that Microsoft when releasing a new version of Windows it changes the others to MinorVersion, making your algorithm outdated and incorrectly reporting…
delphianswered Junior Moreira 7,299 -
6
votes1
answer461
viewsA: Is it possible to work with shp files in Delphi?
Friend, the research was great and I got great results! Today there are already solutions for this, so I analyzed several and several and I ended up finding several solutions, however, you will need…
delphianswered Junior Moreira 7,299 -
1
votes5
answers6773
viewsA: Separate ddd from phone with SQL statement
Basically you can use Substring: UPDATE nome_tabela SET DDD = SUBSTRING(Telefone FROM 1 FOR 2) ,Telefone = SUBSTRING(Telefone FROM 3 FOR 9) WHERE CAST(SUBSTRING(Telefone FROM 1 FOR 2) AS INTEGER) =…
-
1
votes1
answer5456
viewsA: How to open a . txt file in Matlab that has many elements?
Try to use the tblread instead of dlmread! You can read files with this structure: Latitude » Longitude » City 42.3584 » -71.0598 » Boston 40.4167 » -3.7003 » Madrid 41.8955 » 12.4823 » Rome And you…
matlabanswered Junior Moreira 7,299 -
1
votes6
answers10207
viewsA: Open Multiple Bootstrap Modals
From what I understand you wish to abandon the jQueryUI. Following its operation the shipment is made by method open, and in this open is loaded the new url using the load. As it is in jQueryUI:…
-
3
votes1
answer553
viewsA: Find out the size of a directory
Directory size is and always will be 0, because directories are just reservoirs! Test this function, it’s not my fault, but it works until it’s legal! import java.io.*; class…
javaanswered Junior Moreira 7,299 -
1
votes1
answer228
viewsA: Avoid removing the Testprovider from Mock Location
Translated answer from Soen: It seems the only way to do it is to use a simulated location provider. You need to enable dummy locations in the development panel and your add settings to your…
-
2
votes1
answer254
viewsA: Change Border Selection Color with Mouse
It has as yes friend, however, as the edge line is very thin, it is likely that you will need to make some adjustments. Add this property below pmNotXor: Canvas.Pen.Color := clRed; //ou a cor de sua…
delphianswered Junior Moreira 7,299 -
1
votes1
answer319
viewsA: Delphi, Mysql, Adoconnection - Convert database data from latin1 to utf8
Friend, I already had this problem, the easy solution was to change the component of connection. Today I use the DBX which is also native to Delphi as well as what is using ADO. You can also try…
-
3
votes1
answer92
viewsA: Error with Like do sql
You can use the SubString: SELECT * FROM tbCelula WHERE SUBSTRING(C_Numeracao FROM 1 FOR 1) = 1 Depending on the case you need to do a CAST on Substring passing it to Integer, anyway it is easy to…
-
13
votes1
answer309
viewsA: Convert symbol to String (%F0%9F%8C%A0)
I found your problem in the Soen, to Indy TIdURI cannot do this in current versions of Delphi without having access to its Unit (that no longer accompanies it). So there is a function capable of…
delphianswered Junior Moreira 7,299 -
2
votes2
answers156
viewsA: Login screen acting incoherent
Hello, Add a new field to your Table login and instead of using the usuario how Login we will use login as Login, now register 3 new users: Edited: On your table, put the new field login as a…
-
12
votes2
answers23371
viewsQ: How does the BLOB field work?
Hello, directly asking, how does this kind of field work? I know there are three types: BLOB = 64KB, MEDIUMBLOB = 16MB and LONGBLOB = 4GB Given this example: CREATE TABLE COMPROMISSOS ( ID INTEGER…
-
1
votes2
answers99
viewsA: mysql autoincrement restarts alone
Ali explains that TRUNCATE TABLE resets the Autoincrement fields of the table, and DELET FROM do not reset fields, even if you delete the line that contains the highest Autoincrement value will not…
-
1
votes2
answers1310
viewsA: Is there any way to transfer Mysql data directly to an Excel table?
Easy friend, Install this version or higher from Mysql make sure to install Mysql For Excel and ready, inside Excel 2007 or higher at the end of the DATA tab you will find a new button Mysql For…
-
2
votes2
answers435
viewsA: Convert SQL syntax from Firebird database to Postgres database at runtime
Boy complicated this situation because depending on the size of the system you will have to do a lot, about a third component or DLL ever heard about! So what can we do? Simple and functional…
-
7
votes2
answers1686
viewsA: VBA/Excel Combobox : Disable Auto-Complete
There is, for this we will create a temporary Combobox to interact, because, we need an editable component for this and the List is not editable! Get to work! Create any list with some options in…
-
1
votes2
answers408
viewsA: Problem to destroy Delphi’s DM
It’s peaceful to do this: if (DM <> nil) then // Se é diferente de nulo begin DM := nil; end; Or where I mentioned DM := nil; you can pass FreeAndNil(DM); Examples to avoid Access Violation:…
delphianswered Junior Moreira 7,299 -
3
votes1
answer96
viewsA: DBGRID does not display result
There’s no mistake, unless it’s the connections. Make sure it’s all right: DataSource ---ligado---> ADODSPecas_ordem_servico DbGrid -----ligado---> DataSource Being Adodspecas_ordem_servico…
-
12
votes3
answers11214
viewsA: What is Code Smell?
Determining what is or is not a code Smell is always a subjective judgment, and will always vary according to the programming language, developer and development methodology. There are tools that…
terminologyanswered Junior Moreira 7,299 -
4
votes1
answer942
viewsA: Remove noise, dots and image strokes
Follow procedure to perform Noise Removal, Stitches and some strokes! Add 1 component TImage and 1 component TButton, in the TImage1 upload an image BMP (for pixel by pixel is the best format, so…
-
10
votes5
answers7637
viewsA: Is Excel a programming language?
I don’t consider the Excel one Programming Language, i consider an IDE for VBA development, as well as Access which is an IDE for VBA and also an SGDB. Microsoft Office Excel is a spreadsheet editor…
-
1
votes1
answer55
viewsA: Sqlserver does not check information correctly in Delphi application
I would do as follows, including use +/- in this way: FMHome.ADOLogin.SQL.add('Select * from "login" where "usuario" = :usuario AND "senha" = :senha');…
-
3
votes1
answer9927
viewsA: Post Idhttp com Delphi
This error may be because of the symbols, you should treat them before making the request! HTTPClient := TidHTTP.Create; HTTPClient.Request.ContentType := 'utf-8'; You can try that too: Response :=…
-
3
votes6
answers1100
viewsA: Same number of characters in password after md5
Would have some way of knowing how many characters were before doing md5() ? Not securely! No matter what encryption you use md5, sha1 or sha256 bringing the hash to the client would not be a good…
-
0
votes1
answer148
viewsA: Error Creating form
You are probably linking Datasource to a Dataset that is linked to another Dataset, review the creation order of the components: Conexão => DataSet => (Provider + DataSet, caso existir) =>…
delphi-7answered Junior Moreira 7,299 -
0
votes2
answers319
viewsA: Field Size Error when running Insert in Postgresql in Delphi application
I do not recommend you use a CHAR field to store this type of information, switch to VARCHAR and run the tests. CHAR fields are not good to handle some symbols! Not to mention wasting space to store…
-
1
votes2
answers2291
viewsA: Crop a piece of the image using mouse
For JPEG it is necessary conversion, not to get a very extensive answer I decided to post a new Reply! Similar to the previous method, Declare the following global variables: PosicaoX, PosicaoY :…
delphianswered Junior Moreira 7,299 -
1
votes2
answers200
viewsA: Grab thumbnail of videos (Windows)
As I answered in your other topic, follow another class that also works perfectly here! package xug; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import…
javaanswered Junior Moreira 7,299 -
4
votes2
answers2291
viewsA: Crop a piece of the image using mouse
Here is an example of how to do. Add a component TImage, define an image in the property Picture, of course, you can use a charging system for the image as you prefer, in the case of example let’s…
delphianswered Junior Moreira 7,299 -
3
votes3
answers404
viewsA: Grab Preview image of a video / listFiles() does not work
About the Xuggler and taking into account @utluiz’s placements, it works perfectly, adapted to my needs became perfect (which is very similar to what you’re doing) and also worked perfectly on…
-
6
votes1
answer588
viewsA: Delphi - Make a Thread that plays a song in a loop
Well, I analyzed your project and you don’t have to do all that to work, just follow the simple procedures to follow: Add a component to the form TMediaPlayer and change the property Visible from it…
-
8
votes6
answers1481
viewsQ: Log system losing data, how to use Threads?
Currently I have a medium level system where I need to record detailed log of everything that happens in the system, the Company that is divided into Departments does audit of everything that…