dcsimg
Results 1 to 3 of 3

Thread: match record date (already save date ) and online serve its mean ( web server )?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013
    Posts
    140

    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

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2013
    Posts
    140

    Re: match record date (already save date ) and online serve its mean ( web server )?

    no body reply me

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    23,896

    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
  •  



Featured


Click Here to Expand Forum to Full Width