Page 1 of 1

Accessing Enumerations from WebApps

Posted: Tue Sep 22, 2009 9:20 am
by SPASA2009
How do I access Enumerations from an ASP.NET Web application?

Example 1 currently just uses hardcoded numbers for capabilities, such as the following line:
VSTwain1.Capability = 4098; // FeederEnabled

How would I instead use the DeviceCapability enumeration in my javascript?

Re: Accessing Enumerations from WebApps

Posted: Tue Sep 22, 2009 10:00 am
by Alex
Hello,

Your way is correct - you should set capability's values as integer numbers.

Best regards, Alexander

Re: Accessing Enumerations from WebApps

Posted: Tue Sep 22, 2009 10:57 am
by SPASA2009
How can I easily get a full list of the values of ALL Enumerations? The values do not appear to be listed in the help documentation.

Am I expected to use the object browser to get the values? Or perhaps .NET Reflector to examine the dll?

I suggest the values are added to the documentation for easy reference...

Thanks.

Re: Accessing Enumerations from WebApps

Posted: Thu Sep 24, 2009 8:17 am
by Alex
We will add information about integer values of enumerations to documentation in next version of the product. Thank you for suggestion.

Best regards, Alexander