Syntax to resolve string to BaseDecodeType

VB.NET

If I have string, say “Code 128”, How can I parse the set of types to resolve the DecodeBaseType?

Something like?

DirectCast([Enum].Parse(GetType(Aspose.BarCode.BarCodeRecognition.DecodeType), cboBarcodeType.Text), Aspose.BarCode.BarCodeRecognition.BaseDecodeType)

Many thanks

Hi Lynn,

Thank you for your inquiry.

You have to remove the spaces between the characters of the string and then you can use the switch statement for all possible DecodeTypes that you are going to support.

Feel free to contact us in case of any query or comments.