How set valid values in Char type?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • walkerpbus
    New Member
    • Oct 2014
    • 4

    How set valid values in Char type?

    C# type setting a char? I have tried setting as characters, as integers but nothing seems to work?
    last try: char mchar = 'X'; // Character literal
    Last edited by walkerpbus; Oct 10 '14, 07:46 PM. Reason: add last try
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    So what's the question? Char mchar="x"; looks right what's the problem

    Comment

    • walkerpbus
      New Member
      • Oct 2014
      • 4

      #3
      This is the error I got: Error 1 Constant value '30' cannot be converted to a 'char'

      Comment

      • walkerpbus
        New Member
        • Oct 2014
        • 4

        #4
        How do I close this? How do I close this? How do I close this? (repeating to make minimum)

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          No need to close it. If you resolved your issue, please let us know how you resolved it.

          Comment

          • walkerpbus
            New Member
            • Oct 2014
            • 4

            #6
            I''m not sure, but I think all I needed to do was refresh the visual studio

            Comment

            Working...