Closed Thread
Page 21 of 31 FirstFirst ... 111920212223 ... LastLast
Results 201 to 210 of 301

Thread: Contest: C# vs. Java vs. Visual Basic

  1. #201
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Contest: C# vs. Java vs. Visual Basic

    enums? with cases?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #202
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Contest: C# vs. Java vs. Visual Basic

    Read up on it
    Enums return integers
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  4. #203
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Contest: C# vs. Java vs. Visual Basic

    Sry for double post....

    Read this? Java: Enums
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  5. #204
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Contest: C# vs. Java vs. Visual Basic

    Yeah I know what enums are...

  6. #205
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Contest: C# vs. Java vs. Visual Basic

    Yeah, but that page also gives an example on using them with case statements.
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  7. #206
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Contest: C# vs. Java vs. Visual Basic

    Great.. sorry didn't see the link.. I think we posted at the same time. Gonna take a look at it now.

  8. #207
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Contest: C# vs. Java vs. Visual Basic

    Oh, ok
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  9. #208
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Contest: C# vs. Java vs. Visual Basic

    So there the user can input a string and the compare it to the enum and the get the value of the enum?

  10. #209
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Contest: C# vs. Java vs. Visual Basic

    Dunno, didn't read the details..

    Code:
    switch (drawing) {
        case RECTANGLE: (...)
    This is what you need.... You just make an enum (MyDearStringEnum ) with these string
    elements ("black", "blue", "yellow", "TcM" etc) and put

    switch (MyDearStringEnum)
    case "black": etc...

    Or just use ifs.
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  11. #210
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Contest: C# vs. Java vs. Visual Basic

    Yeah and they you just get the value or whatever you need.. Thanks

Closed Thread
Page 21 of 31 FirstFirst ... 111920212223 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Translating a Visual Basic program to Java
    By bloodchains in forum Java Help
    Replies: 4
    Last Post: 10-01-2011, 10:11 AM
  2. Visual Basic Assighment Help. (Translating pseudocode to visual basic)
    By Adolf B in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-18-2011, 09:16 PM
  3. Few questions on Visual studio ultimate 2010 and visual basic
    By Steamsteam in forum Visual Basic Programming
    Replies: 0
    Last Post: 10-26-2010, 05:14 PM
  4. Visual Basic 2008 vs. Visual Basic 2005 - Compatibility
    By cande_300 in forum Visual Basic Programming
    Replies: 1
    Last Post: 01-23-2010, 09:00 AM
  5. Creating a Class in Visual Studios.Net (Visual Basic Section)
    By dream in forum Visual Basic Programming
    Replies: 11
    Last Post: 05-12-2008, 12:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts