Posts by Metamorfose • 132 points
10 posts
-
1
votes2
answers608
viewsQ: Regex to validate currency, fractionated, accepting negatives
I will use in Delphi 10.1. I managed to reach the expression below, but for lack of knowledge and practice, I’m not getting to where I want. Regex: ^(^[\-]?[1-9]|0)(?:[0-9]{0,10}|0)(?:,\d{0,2})?$ I…
-
1
votes1
answer564
viewsQ: Prevent character typing if monetary value is incorrect in Delphi
My goal, using Delphi 10.1, is to compare the text typed in an Edit, at the time of typing a new character, if the text format after typing the key (which can be typed at the end, beginning or…
-
2
votes1
answer153
viewsQ: Delphi 10.1, Function that only accepts an integer interval in the variable
It sounds easy, but I’m not getting it. I want to be able to define a type of variable when creating a Function or Procedure, but only accepting integers between 1 and 4 for example during the…
-
0
votes1
answer171
viewsA: Error uploading with Idhttp android firemonkey
Error 406: Not acceptable. The requested feature is only capable of generating non-acceptable content according to the Accept headers sent in the request(Link). Problem of content type. Could be…
-
0
votes1
answer1447
viewsQ: Count the total of decimals in Delphi
I need to count the number of decimals in Delphi (10.1) in a string, I will use Edit, validating monetary values when typing, before inserting into Edit. I can validate if it is a valid Currency,…
-
3
votes1
answer277
viewsA: Why can’t I upload more than 2mb with this script?
Make a phpinfo.php file using the code below: <?php phpinfo(); ?> And open it in the browser. In the "Loaded Configuration File" part, the path to the configuration file used will appear,…
-
0
votes1
answer477
viewsA: Master and Detail in Delphi, with Schemaadapter, only recorded the second time onwards
I solved it. More than one error was causing this. The first one, a Form that was loading with the application left a Transaction open (it was in Autocreate, not in Delphi’s avaliable Forms),…
-
0
votes1
answer477
viewsQ: Master and Detail in Delphi, with Schemaadapter, only recorded the second time onwards
I am using Delphi 10.1, Firebird 2.5 with Firedac. I have 3 Fdquery, all with Cachedupdates = true, being 1 MASTER, and 2 Detail. In the bd, the FK points to the ID of the master table. In the…
-
2
votes2
answers1580
viewsA: How to submit a POST request without form
Just complementing the answer already given above, I use this way: //Por segurança, para pegar só o desejado, sem tags html $Antes = "/[><']/";//Html, para retirar $Depois = " ";…
phpanswered Metamorfose 132 -
2
votes1
answer302
viewsQ: Better shape in Firebird, taking safety and lightness
I’m developing a software in Delphi, using Firebird. My goal is to have a lightweight, fast, but, software that has security, regarding errors, corruption in the bank, resist as far as given to…