Time + 45 minutes?

  • 14 years ago

    I already posted this at vb.net, (i know im noobie), but im using vb 6.0.

     

    Private Sub Command1_Click()

    Text1.text = "Your dinner will be ready at about " & Time + 00:45:00

    End Sub

    (this doesnt work tho)

    Could somebody help me with this, i just need to know how i can put the time in a textbox added with 45 minutes.

    thanks a lot for your time

  • 14 years ago

    VB6 syntax, something like this:
    Text1.Text = "Your dinner will be ready at about " & DateAdd("n", 45, Time)

  • 14 years ago
    I think we finally got there!! LOL!!  I thought it was strange that your textbox was called Text1 because the name defaults to TextBox1 in .Net, I should have guessed.  Never mind, hope this helps!!!

    Do a Google search for DateAdd and DateDiff functions in VB this may be useful to you.

  • 14 years ago

    Thanks a lot for all your time , you really helped me out here.

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” - Bill Gates