Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a form as a function

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
I seem to remember seeing somewhere that this could be done, but I'm damn'ed if I can remember where or how.
What I need to do is use a form to return a value (in this case a form that selects a date from a range of values).
I guess I could write functions for the date form to communicate its results, but I'd be IFing & ELSEing everywhere & wondered if there wasn't somethign a little more elegant.

As ever, any help appreciated.

Douglas If it don't make you laugh, it ain't true.
 
Exactly what are you trying to do? Pass a value between forms?

The neatest way to do it is to declare a new public property on the form that needs to have it passed to and a the property is set by an action on the other form.

Craig
 
Propeties is one thing I haven't yet had a look at.
One thing amongst a multitude...
D'you know where there are any tutorials that deal with public & private properties?

Any help appreciated

Douglas If it don't make you laugh, it ain't true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top