-
Oct 6th, 2018, 11:27 PM
#1
Thread Starter
Addicted Member
match record date (already save date ) and online serve its mean ( web server )?
Hello, sir
i want to match date into record date and web server date
for example
i draw text1 , text2 and command1
i insert date in text1 for example ( 20-10-2018 ) this save already
my website ( exapmle )
www.freetrafix.com/date.php
www.freetrafix.com/date.txt
and what i do code insert that when i open project and connect this website and insert code in text2
date show text2 in online date
then match
if text1.text = text2.text then
msgbox "run work and download file"
else
msgbox "Not yet updated"
end if
what code
-
Oct 11th, 2018, 09:19 PM
#2
Thread Starter
Addicted Member
Re: match record date (already save date ) and online serve its mean ( web server )?
-
Oct 12th, 2018, 09:07 PM
#3
Re: match record date (already save date ) and online serve its mean ( web server )?
you can use several methods to download the file from internet server, or read the browser document content
webrowser control. inet control with GET, an object of internet explorer, urldownloadtofile API, or several other choices, search for examples
once the file is downloaded, open the file to parse out the required date, then assign to the textbox, you can then compare the two dates
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|