date subtraction....

hardik soni's Avatar, Join Date: Jun 2010
Contributor
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..
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Date Difference is a built in function in VB.

Which VB you are using?
0
hardik soni's Avatar, Join Date: Jun 2010
Contributor
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....
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
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)
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
make the global variable public
public wutever as wutever

acess it from the 2nd form
form1.wutever