CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Absolute

  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    Absolute

    Hi, anyone knows how to make a variable positive?
    For instance, I need variable Time_Diff to be positive even if the calculation turn out to be otherwise:

    Time_Diff = DateDiff("n", Date1, Date2)

    Thx


  2. #2
    Join Date
    Apr 1999
    Posts
    30

    Re: Absolute

    Use the Abs(number) function


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured