You didn't accidentally make something else named messagebox did you?
What about writing a normal call without variable based parameters above the erroring code as a test?
What does this mean? (VB.net)
Quote:Original post by ItsDoh
You didn't accidentally make something else named messagebox did you?
What about writing a normal call without variable based parameters above the erroring code as a test?
No, I didn't, I've even double-checked that. The code is copied from a book I'm learning from, which makes it even odder that it doesn't work...
You can use the CType function to cast from integers to the enumeration types.
If you have "Option Strict" on, have you tried to disable it (from project configuration)?
If you have "Option Strict" on, have you tried to disable it (from project configuration)?
Quote:Original post by Nik02
If you have "Option Strict" on, have you tried to disable it (from project configuration)?
Could you tell me more about this "Option Strict". What does it do and why should it be disabled?
Option Strict requires that all variables be the exact type requested, without it VB is a little more flexible. For example assigning an Integer to a String is valid without Strict on because VB knows how to convert an integer to a string. With Strict on, that would produce a warning.
Have you tried making just a normal messagebox call without the variables, just a simple line as a test?
Have you tried making just a normal messagebox call without the variables, just a simple line as a test?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement