Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27203

[RESOLVED] [VB2010] - using a const and numbers in a variable\enum

$
0
0
i need 1 variable type\enum that have the Automatic const(keyword) and accept numbers too. how can i do these?

varName=Automatic
or
varName=1000

how can do these?
see these enum:

Code:

Private Enum Time
      Automatic = -1
      1 to 5000 'give error here, but how can i do these?
End Enum

how can i represent the 2nd enum element?

Viewing all articles
Browse latest Browse all 27203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>