This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom Namespace in Designer script editor

Is it possible to create custom Namespace? When I'm putting this:

Namespace Testrest

	Public NotInheritable Class Request
		
		Private Sub New()
			
	    End Sub
		
	End Class
	
End Namespace

in script I get an error: 'Namespace' statements can only occur at the file or namespace level.

  • Because the Designer is working within the CLASS definition of the ScriptLibrary it is not possible to create a custom namespace within the script editor. That' s the reason why you got the described error message.

    So, it is not possible.

    -
    Regards
    Sven