|
-
August 7th, 2001, 03:07 PM
#1
Functions - Default Parameters
Hi,
Is there any way in Visual Basic to have a function with default values for parameters (just like in C++)?
Thanks.
Regards,
Jagan.
-
August 7th, 2001, 04:30 PM
#2
Re: Functions - Default Parameters
You can set default values.
private Function Testing(optional byval iTest as Integer =1) as string
if itest =1 then
testing="works"
else
testing = str(itest)
endif
end function
should be something like that. Check a vb book for the correct arglist.
-David
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
|