Announcement

Collapse
No announcement yet.

PB equiv. of 'enum'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PB equiv. of 'enum'

    Does anyone have a work-around or can tell me the PB equivalent
    for the 'enum' structure? (I honestly have no real idea what
    it is used for LOL)

    Just to make it clearer the code would look like this:

    enum Fred.Stuff
    Fred.OtherStuff
    Fred.Morestuff
    Fred.SomeStuff
    end enum

    Possibly I am missing the obvious answer..it's 3:30 am

    ------------------

  • #2
    Generally an 'enum' is just a list of constants.

    You'll probably get a working answer faster by looking at how the enum members are used than by trying to do a 'word-for-word translation' {aka "Stone Loser").

    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Code:
      Fred.OtherStuff = 0
      Fred.Morestuff  = 1
      Fred.SomeStuff  = 2
      ------------------
      Regards,
      Peter
      Regards,
      Peter

      "Simplicity is a prerequisite for reliability"

      Comment

      Working...
      X