Constants

Hi All,

For a static popup menu, I would like to assign constants representing integers in the app section, e.g.

dim i as integer = 0
  
  me.AddRow("Active")
  me.RowTag(i) = app.Status_Active  //value = 1
  i = i + 1
  
  me.AddRow("Disabled")
  me.RowTag(i) = app.Status_Disabled  //value = 2
  i = i + 1

When there are quite a few selections, constants in the navigation bar are ordered in alphabetical order, thus when adding a new selection, it is not easy to know which is the largest number assigned. Any suggestions for this kind of thing?

Use an Enum instead?

Thanks Kem, that should be what I am looking for.