Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Country Code In 1 Line Of Code.
#1
Code:
Public Shared Function CountryCode() As String
        [b]Return RegionInfo.CurrentRegion.ThreeLetterISORegionName[/b]
    End Function

here I have just put it as a function.

maybe you can find a good use for this.

As I have still seen people using 10s of line of code for something that can be done in 1 line.

Non
Reply


Messages In This Thread
Get Country Code In 1 Line Of Code. - by wchar_t - 07-25-2010, 04:52 PM
RE: Get Country Code In 1 Line Of Code. - by mmki - 07-27-2010, 07:38 PM
RE: Get Country Code In 1 Line Of Code. - by Clay - 07-28-2010, 11:03 PM
RE: Get Country Code In 1 Line Of Code. - by zone - 08-21-2010, 06:36 AM
RE: Get Country Code In 1 Line Of Code. - by Cubs - 11-28-2012, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] - Convert Excel formula to VB6 Code Carb0n F1ber 15 6,129 05-18-2015, 11:46 PM
Last Post: longwest
  VB 2008 - Useful Code Apache 36 14,358 11-25-2012, 10:37 PM
Last Post: ƃu∀ ıʞƃu∀
  Crypter code source - project files [ vb.net ] rid47 2 2,367 09-08-2012, 04:17 PM
Last Post: spesificrelax
  Code Challenge - Created by Ace AceInfinity 5 1,511 04-24-2012, 10:27 AM
Last Post: AceInfinity
  Junk Code Project [Source] Digital-Punk 5 1,822 10-23-2011, 07:59 PM
Last Post: SO_TIRED

Forum Jump:


Users browsing this thread: 1 Guest(s)