Posts by Cava • 253 points
13 posts
-
1
votes3
answers9287
viewsA: Convert string to Date (dd-mm-yyyy)
I know it’s been a while since that question was answered, but for the record, we have another option. function toDateISO(dateStr) { return dateStr.split('/').reverse().join('-'); }…
javascriptanswered Cava 253 -
1
votes2
answers262
viewsA: Unlink/File_exists says the file does not exist, but the file does exist
I had the same problem these days. Try to use urldecode() when reading the GET parameters: $file = !isset($_GET["f"])?0:urldecode($_GET["f"]); $dir = !isset($_GET["dir"])?"":urldecode($_GET["dir"]);…
-
0
votes1
answer1531
viewsA: Problems printing Fastreport
I couldn’t solve my problem of printing directly on the printer, in my opinion it must be some problem on the printer, but I can’t say for sure, because I don’t have another PC or printer to test.…
-
0
votes1
answer1531
viewsQ: Problems printing Fastreport
I’m having trouble printing reports with Fastreport in Delphi 2010. When printing on the printer the first time, print correctly, but the second time I try to print the report does not print…
-
1
votes1
answer832
viewsA: The object does not support the property or method in util.js of the Google api
Google no longer supports IE 8, for me it happened exactly the same thing, but unfortunately there is nothing to do in Windows XP, only in Windows 7 or higher where there is or can be installed, the…
-
2
votes1
answer1460
viewsA: Add a text at a certain position
You can read the file line by line and save in a Stringlist, as you commented and go checking if there is this "string" in this line with Pos(), for example: int posicao = Pos(textoDesejado, linha);…
-
2
votes2
answers2450
viewsA: Image on Tspeedbutton with Timagelist
Let’s say we have Speedbutton1 (Tspeedbutton) and Imagelist1 (Timagelist) The image size will be set in the Timagelist properties, Height and Width, if you assign 32 and 32 respectively and only…
-
1
votes4
answers542
viewsA: Loop function until the application closes
Let’s clarify your doubt... You can do it this way. Since you have already included a Timer component on the screen called Timer1. 1º - Create an Ontimer event from the Timer component. 2º - Put the…
-
1
votes2
answers5427
viewsA: How to extract blob files in Firebird?
You can do the following, maybe it will help you... Run the following SQL in Ibexpert: select cast(*campo* as varchar(80)) from *tabela* where *campo* is not null After you will have the values in…
-
0
votes1
answer110
viewsA: Firebird - select master-Detail
It would be something like that maybe? select distinct RelFields.RDB$RELATION_NAME as "Rel Name", RelFields.RDB$FIELD_ID as "Field Id", RelFields.RDB$FIELD_NAME as "Field Name",…
-
0
votes2
answers53
viewsA: Error with PHP function
Just add the file php security. at the beginning of the file menu_admin.php for example: <?php require_once 'seguranca.php'; ?>…
-
0
votes2
answers301
views -
0
votes3
answers275
viewsA: How to make a php script inserted into a page through a "require" run from time to time?
You can use cron job, as the staff commented. Or also an option you can do not to run the same code every time when someone opens your page: It can be done whenever someone activates an account, for…