M
Mark Sargent
Can anyone tell me how to specify the "Option Strict" setting when
generating code using the VBCodeProvider.
Thanks.
generating code using the VBCodeProvider.
Thanks.
Jay B. Harlow said:Mark,
Doh! I was looking at the wrong part of the code :-|
You need to add the following to the UserData of your CodeCompileUnit:
Dim unit As CodeCompileUnit
' Option Strict On
unit.UserData.Add("AllowLateBound", False)
' Option Explicit On
unit.UserData.Add("RequireVariableDeclaration", True)
The /optionstrict was something else I was trying, but never removed from my
sample... :-(
Hope this helps
Jay