date subtraction....

Discussion in 'Visual Basic ( VB )' started by hardik soni, Aug 10, 2010.

  1. hardik soni

    hardik soni New Member

    Joined:
    Jun 26, 2010
    Messages:
    73
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Writer, SEO
    Location:
    Rajkot,India
    Hello Everyone,
    I have one query.
    I want to check eligibility for age in VB application.
    I want to make subtraction of two dates.
    Please give me guideline with example....
    Please it's urgent..
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Date Difference is a built in function in VB.

    Which VB you are using?
     
  3. hardik soni

    hardik soni New Member

    Joined:
    Jun 26, 2010
    Messages:
    73
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Writer, SEO
    Location:
    Rajkot,India
    hello Shabbir,
    IT is long time to talk with you....
    I am using vb 6.0 i know that are built in function.
    I want to subtract it and want to use in second form of the same project .
    How to fetch that subtracted value in second form...
    Please reply now if it is possible.

    Thanks for your reply after long time....
     
  4. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    here is an example of what you ask.
    if you write something in the textbox and press the submit button
    you 'll see the value passed to second's form textbox
     

    Attached Files:

  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    VB 6 has the easiest ways of getting variable values from one form to the other and one of the most convenient is the global variable.
     
  6. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    http://zontek.zzl.org
    make the global variable public
    public wutever as wutever

    acess it from the 2nd form
    form1.wutever :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice