Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. String to GUID [modified]

String to GUID [modified]

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fracalifa
    wrote on last edited by
    #1

    Hi all, I have stored a GUID in a FlexGrid as string and want to reconvert this string back to a guid. I didt't find a way. There is not Convert.toGuid or something like that. Also a simple cast brought no solution. string st = Guid.NewGuid(); Guid gid = Convert.to?????(st); or Guid gid = (Guid) st; // doesn't work What's the way Tnx in advance -- modified at 10:18 Tuesday 30th May, 2006 Frank

    C 1 Reply Last reply
    0
    • F fracalifa

      Hi all, I have stored a GUID in a FlexGrid as string and want to reconvert this string back to a guid. I didt't find a way. There is not Convert.toGuid or something like that. Also a simple cast brought no solution. string st = Guid.NewGuid(); Guid gid = Convert.to?????(st); or Guid gid = (Guid) st; // doesn't work What's the way Tnx in advance -- modified at 10:18 Tuesday 30th May, 2006 Frank

      C Offline
      C Offline
      CodyGen
      wrote on last edited by
      #2

      Hello fracalifa, Try this snippet: string st = Convert.ToString(Guid.NewGuid()); Guid gid = new Guid(st);

      F 1 Reply Last reply
      0
      • C CodyGen

        Hello fracalifa, Try this snippet: string st = Convert.ToString(Guid.NewGuid()); Guid gid = new Guid(st);

        F Offline
        F Offline
        fracalifa
        wrote on last edited by
        #3

        Hello CodyGen, That's it ! Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups