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
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. max characters of the type String

max characters of the type String

Scheduled Pinned Locked Moved Managed C++/CLI
question
13 Posts 5 Posters 0 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.
  • T Trankil

    I every one, I want to know the maximum characters a String type can contain . 256 characters or more ? :)

    N Offline
    N Offline
    Nemanja Trifunovic
    wrote on last edited by
    #2

    Trankil wrote:

    256 characters or more ?

    More.


    My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

    T T 2 Replies Last reply
    0
    • N Nemanja Trifunovic

      Trankil wrote:

      256 characters or more ?

      More.


      My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #3

      Nemanja Trifunovic wrote:

      More

      :laugh: you couldn't answer more precisely on what the guy asked

      P 1 Reply Last reply
      0
      • T Trankil

        I every one, I want to know the maximum characters a String type can contain . 256 characters or more ? :)

        G Offline
        G Offline
        George L Jackson
        wrote on last edited by
        #4

        Since the String.Length property's type is Int32, it might be 2,147,483,647. Using large strings, can lead to a HEAP of trouble! -- modified at 17:58 Wednesday 15th March, 2006

        P 1 Reply Last reply
        0
        • T toxcct

          Nemanja Trifunovic wrote:

          More

          :laugh: you couldn't answer more precisely on what the guy asked

          P Offline
          P Offline
          prrusa
          wrote on last edited by
          #5

          as opposed to "your in the wrong group, your in the wrong group"

          G T T 3 Replies Last reply
          0
          • P prrusa

            as opposed to "your in the wrong group, your in the wrong group"

            G Offline
            G Offline
            George L Jackson
            wrote on last edited by
            #6

            I am feeling a little hate here! Nevertheless, the "prime directive" is to post your questions in the correct forum. However, we do need to use a little tact in informing someone of the "prime directive".

            P 1 Reply Last reply
            0
            • G George L Jackson

              I am feeling a little hate here! Nevertheless, the "prime directive" is to post your questions in the correct forum. However, we do need to use a little tact in informing someone of the "prime directive".

              P Offline
              P Offline
              prrusa
              wrote on last edited by
              #7

              No hate... And it wasn't directed at you, as your help is invaluable to me and to others I'm sure. Seems some just live to tell others they've posted in the wrong group. Group is quite, maybe we could just start posting the managed answer to whatever question was asked in addition to telling the OP the error of their ways. Cheers, Paul

              G 1 Reply Last reply
              0
              • P prrusa

                No hate... And it wasn't directed at you, as your help is invaluable to me and to others I'm sure. Seems some just live to tell others they've posted in the wrong group. Group is quite, maybe we could just start posting the managed answer to whatever question was asked in addition to telling the OP the error of their ways. Cheers, Paul

                G Offline
                G Offline
                George L Jackson
                wrote on last edited by
                #8

                I understand! I guess doing that is an easy way to increase your number of posts!

                1 Reply Last reply
                0
                • P prrusa

                  as opposed to "your in the wrong group, your in the wrong group"

                  T Offline
                  T Offline
                  Trankil
                  wrote on last edited by
                  #9

                  I sorry to post my messsage in a wrong group . But I don't know where is the accurate group for my message ? -- modified at 2:13 Thursday 16th March, 2006

                  1 Reply Last reply
                  0
                  • N Nemanja Trifunovic

                    Trankil wrote:

                    256 characters or more ?

                    More.


                    My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                    T Offline
                    T Offline
                    Trankil
                    wrote on last edited by
                    #10

                    Ok . It's more . But how much exactly ? can I set 4096 characters to a String ?

                    G 1 Reply Last reply
                    0
                    • P prrusa

                      as opposed to "your in the wrong group, your in the wrong group"

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #11

                      pardon ? what the problem ? i sincerely don't understand your intervention... what does that mean ? and how does it relates to me ?

                      1 Reply Last reply
                      0
                      • G George L Jackson

                        Since the String.Length property's type is Int32, it might be 2,147,483,647. Using large strings, can lead to a HEAP of trouble! -- modified at 17:58 Wednesday 15th March, 2006

                        P Offline
                        P Offline
                        prrusa
                        wrote on last edited by
                        #12

                        HEAP of trouble...;-)

                        1 Reply Last reply
                        0
                        • T Trankil

                          Ok . It's more . But how much exactly ? can I set 4096 characters to a String ?

                          G Offline
                          G Offline
                          George L Jackson
                          wrote on last edited by
                          #13

                          A 4096-character string wouldn't be a problem. You have a lot of room to work with? Just remember that the string-type does not mutate. Everytime you make a change, .NET creates a new instance with the change. There may be exceptions to this but a string is pretty much immutable. Of course, StringBuilder is mutable but it has its own overhead.

                          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