control default value

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

When writing functions with optional input values, if nothing is specified
for a long integer, for example, the default value is 0. What is the default
value if the input variable is a control or form?

THanks,
Sam
 
Sam said:
When writing functions with optional input values, if nothing is specified
for a long integer, for example, the default value is 0. What is the default
value if the input variable is a control or form?


Unspecified optional object arguments are Nothing. You can
check for the situation using the Is operator:

If objectarg Is Nothing Then
 
Back
Top