English > Scripts and Templates
Use a script whithout connection to the net
(1/1)
pra15:
Hello,
I used a script with an old version of PVD to modify a field without connection to internet.
I had create a file x.txt in the harddisk of my PC and use it for the fonction of GetDownloadURl. It worked good.
But now with the version 1.0.2.7 of PVD i have an error in the debug mode in getdownloadurl.
I give my script if someone understand.
Thanks.
pra15:
Hello,
I reinstall version 0.9.9.21 and the script is good, no error.
I create a file xxx.txt on C: and use it with the function getdownloadurl :
--- Quote ---function GetDownloadURL : AnsiString;
begin
Result := 'C:\xxx.txt';
end;
--- End quote ---
Now with the new version of PVD i have an error.
Is anybody can explain why ?
Ivek23:
--- Quote from: pra15 on January 23, 2015, 04:20:50 pm ---Now with the new version of PVD i have an error.
--- End quote ---
With this code,
--- Code: ---function GetDownloadURL : AnsiString; //obbligatoria
begin
logmessage('getdownloadURL demarre')
Result := 'C:\PVD_Vide.txt'; // Créer Fichier PVD_Vide.txt sur C://
logmessage('getdownloadURL fin')
end;
--- End code ---
the attached file in the PVD version 1.0.2.7 with me script works.
This file is in PVD folder and works in debug and portable mode.
Attached are also log in txt file.
pra15:
Ok Thanks,
I found why the error, i don't know why but with this version of PVD, the txt file can't be empty. You must write something in.
Thanks again, Ivek23, that's a long time, i worked not near to the net.
Ivek23:
--- Quote from: pra15 on January 23, 2015, 07:39:22 pm ---Ok Thanks,
I found why the error, i don't know why but with this version of PVD, the txt file can't be empty. You must write something in.
Thanks again, Ivek23, that's a long time, i worked not near to the net.
--- End quote ---
Welcome.
Navigation
[0] Message Index
Go to full version