'C:\ProgramData\testfile');
this worked
lol
My Visual Database → Posts by pm
'C:\ProgramData\testfile');
this worked
lol
Hi
I have these lines in my script for a connection test form
now the testfile apperas on the desktop where the portable compacted application is executed
whar would be the variable to send this file to temp or anywhere on disk C:?
procedure Form3_checkserver_OnClick (Sender: TObject; var Cancel: boolean);
var
test : boolean;
begin
try
test := HTTPGetFile('htxx://test.com/onlinetest.zip','testfile');
Form3.serverok.Visible := test;
Form3.servererr.Visible := not test;
except
showmessage('ere');
Form3.serverok.Visible := False;
Form3.servererr.Visible := True;
end;
end;
thx !
Just trigger the click procedure of the buttons.
works !
thx !
Maybe something like this.
great ! yes thank you !
can you make all 3 check execute automatic on startup too ?
need triple online check form
checks if html files pull of or that VPN filtering does not allow
checks if internet is connected (by google or so, maybe internet time server)
checks if fileserver serves files
red image for no
green for yes
anyone who could build this ?
thx !
Here's a sample.
thanks a lot done
I'm not a reader but I start understanding the language
I combined it with a httpget
not it's exactly what I want
thank a lot for your nice help and spending time
Updated script.
project done ! perfect
thank you VERY much for your patience and help !
Updated script.
that works !
thank you so much
jumping lines in the pulled htm file text would do it
like with a <br>
justify text in the box I mean
PM, I'm a little confused, in your database you have just the one field - file.
So, will you be searching using just the file name or is there going to be some other column such as person name or person number?
no no
just one colum with the file name
that's it
nothing else
thx !
brian.zaballa wrote:Can you provide sample link to your file to access?
sure
using this script
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
var
res: String;
ts : Array of String;
begin
res := HTTPGet('http:// my website /info.html', True);
ts := SplitString(res, '|');
if (length(ts) = 3) then begin
Form1.ver.Text := ts[0];
Form1.msg.Text := ts[2];
end else
errorMsg('Invalid Data!!!');
end;
the text pulled from the server runs out of the frame instead of changing line down
also, I would like to add scroll down when the test runs will tun out of the frame downwards
thx
it seems my server has still some issues please use your own test location if it doesn't work
sorry
Does the attached project help?
It is very basic and as it stands you can click on the table grid and get the link to open even with out entering a reference number. if you enter number 1,2 or 3 into the search box it will automatically display just that entry.
However that can be fixed.
If you didn't want to see the actual link you can just not show that column and change the column number in the script to 1
I've just realised I've done it as a single click, all you need to do is copy the code to the double click event and delete the single click procedure.
Thank you very much for all your help !
I tried and nearly succeed but after I tried again I didn't end up with success
Problem is that I have no integer, and want one colum only
file names are made from letters, underscore, dots and numbers as in test database
search works great
I pasted you my project here so maybe you would be kind enough to integrate your download function
I uploaded the listed test files on server and pasted the http ip in the script so you can test it
thank you, you are great !
What is or isn't the above code doing for you?
Could you either provide and example of your script or better still an example of your project.
You did change my form and component names to your names?
I didn't get it how to use your code
if you would be so kind and make me a example, the I would understand
sorry
so to be clear
I have a long list of names in the database
in a search box, you can type numbers
and in the large text box you'll get all names that fit to what you search
now as all files are in the same only folder on the http server
it could be as simple as: for download pull the file name and add http /mydomain.com before
double click and it downloads
thank you very much for your kindness !
sorry I can't get it working
may I get some more help please ?
thank you !
also, all files come from same link and have same name as shower in the text colum
so maybe its possible to add something in the script that will add automaticly http://www.mywebsite.com/ before the file name
so I don't have too long lines in the database
I added a new field in the database with the download link
now I guess that I should use the OnCellDoubleClick function
but what would be the parameter to pull the Database Id cell's download link cell ?
more picture
Hi
here is the setup
I have a searchbox to fetch a zip file by number
then, get the result list in results box
i would need to edit database to get that with on clic on the result line that it downloads the zip file from my server
anyone with a Idea how ?
thank you !
OLE + WinHttpRequest
thank you for that very short answer but I don't understand
here is my code:
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
var
res: String;
ts : Array of String;
begin
res := HTTPGet('**********.org/ninfo.htm', True);
ts := SplitString(res, '|');
if (length(ts) = 3) then begin
Form2.ver.Text := ts[0];
Form2.msg.Text := ts[2];
end else
errorMsg('Invalid Data!!!');
end;
and here is the error
so what should it be ?
thank you !
anyone with a solution here ?
I have the same problem but non of the files in this thread work
thx !
Can you provide sample link to your file to access?
sure
My Visual Database → Posts by pm
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi