Skip to content
Discussion options

You must be logged in to vote

Hi @DanielGerlach2,

In VB.NET, it is possible to define properties with parameters

Yes, and ClearScript supports such properties. As your example demonstrates, VBScript code has full access to IsAdminMember and can use it via its native syntax. However, the specific behavior you're seeing deserves an explanation.

When script code invokes a parameterized (or indexed) property without arguments, ClearScript returns a special object – a host indexed property. It does that to accommodate languages like JavaScript that don't support indexed properties and must access them via intermediaries.

A host indexed property is designed to work naturally with VBScript by providing a default property b…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ClearScriptLib
Comment options

Answer selected by DanielGerlach2
@DanielGerlach2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants