date subtraction....

Contributor
10Aug2010,18:36   #1
hardik soni's Avatar
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..
Go4Expert Founder
10Aug2010,21:51   #2
shabbir's Avatar
Date Difference is a built in function in VB.

Which VB you are using?
Contributor
10Aug2010,21:59   #3
hardik soni's Avatar
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....
Pro contributor
11Aug2010,03:10   #4
virxen's Avatar
Quote:
Originally Posted by hardik soni View Post
........
How to fetch that subtracted value in second form...
.......
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
File Type: rar submit.rar (1.4 KB, 2 views)
Go4Expert Founder
11Aug2010,08:57   #5
shabbir's Avatar
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.
Skilled contributor
4Sep2010,20:00   #6
ManzZup's Avatar
make the global variable public
public wutever as wutever

acess it from the 2nd form
form1.wutever