Strict ON, need to pass vbokonly + vbwhatever as function parameter

  • Thread starter Thread starter Eric Peterson
  • Start date Start date
E

Eric Peterson

I have the following function

Log(txt as string, yadda as integer, msgboxoptions as
msgboxstyle)

If I have Option Strict ON, I cannot call my function
like so

Log("we have a problem", 10, vbOkOnly + vbCritical)

Anybody got an idea how I can accomplish this short of
turning Option Strict Off?

Thanks,
Eric
 
* "Eric Peterson said:
Log(txt as string, yadda as integer, msgboxoptions as
msgboxstyle)

If I have Option Strict ON, I cannot call my function
like so

Log("we have a problem", 10, vbOkOnly + vbCritical)

Anybody got an idea how I can accomplish this short of
turning Option Strict Off?

Use 'Or' instead of "+".
 
Back
Top