Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. adamgme

    Send visitor to different page based on their language settings

    Another way is to change your regional settings from control pannel to the country code you want. For example, set your regional settings to Swedish, then create an ASP page with following code and access it from your browser. It will return you the language code...
  2. adamgme

    Send visitor to different page based on their language settings

    you can see the full list here: http://www.oasis-open.org/cover/iso639a.html /Adam
  3. adamgme

    Send visitor to different page based on their language settings

    Above everything... <%@LANGUAGE="VBSCRIPT"> <% if (Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") = "da") Then Response.Redirect("myserver/danish.asp") Elseif (Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") = "se") Then Response.Redirect("myserver/swedish.asp") End if %> <html> <head>...
  4. adamgme

    Send visitor to different page based on their language settings

    You can do something like this: if (Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") <> "da") Then Response.Redirect("myserver/da.asp") End if /Adam
  5. adamgme

    Calculating time

    Hi, I tried what you wrote, but i get an error. Here is the code: sub TotalHours(StempId) dim sessiontime, totaltime sessiontime = "00:00" totaltime = "00:00" for i = 0 to StempMaxRows if (StempArray(0,i) = StempId) Then Response.Write(StempArray(1,i) & " - " & StempArray(2,i) &...
  6. adamgme

    Calculating time

    These are the class session for different course groups in our LMS systems, and i need to calculate the total hours of training provided for a given period of time. This function will be called for each course group containing 1 to many class sessions.
  7. adamgme

    Calculating time

    I mean everytime when i come in this loop, i should get the time (end_time - start_time) and that time should be added in total_time. this loop will run from 1 to 5 times, every time there will be timings of different sessions. (9:00 to 16:00 or 9:30 to 15:15 etc...) what i need to do is to call...
  8. adamgme

    Calculating time

    I guess i need a little more help. :D What i am trying is to loop through different session times and get the total hours of all sessions. i guess i also need a way to add the hours :-) please see below: sub TotalHours(StempId) dim c1time, c2time, totaltime sessiontime = "00:00" totaltime =...
  9. adamgme

    Calculating time

    Thanks alot. That worked :-)
  10. adamgme

    Calculating time

    Hi, I have to calculate hours from given start and end time. For example: Dim starttime, endtime, totaltime starttime = "09:00" endtime = "16:45" ' This is where i want to get the difference between above totaltime = endtime - starttime ' The resulting value/string should be 07:45 Both...

Part and Inventory Search

Back
Top