|
-
Mar 20th, 2000, 10:56 PM
#1
Thread Starter
Frenzied Member
Does anyone know if there's a way for findong out from inside a public function in a usercontrol wheather the user wants a return value or not, ie wheather the user has gone
lngMyVariable=MyFunction(MyParam1,MyParam2)
or just
MyFunction MyParam1,MyParam2.
This would be seriously helpful.
-
Mar 20th, 2000, 11:40 PM
#2
You should always return some meaningful value from all functions. That way the user can decide how he calls your function and it won't matter to you. The return value could be something as simple as a True/False boolean indication sucessful completion.
-
Mar 21st, 2000, 12:57 AM
#3
Thread Starter
Frenzied Member
Yeah, I know.
Sorry I didn't make myself clear, It's for a control to make subclassing a bit safer. I need to lnow if the user has got a return value when they call the default window function, if they don't I need to return this value from my substitute window process by default, If they don't they may well have other plans for my return value so I don't want to change it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|