By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,685 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,685 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* "Eric Peterson" <no****@nospam.net> scripsit:
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 "+".

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Perfect, thanks. "Duh" :)

-----Original Message-----
* "Eric Peterson" <no****@nospam.net> scripsit:
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 "+".

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.