Results 1 to 3 of 3

Thread: A quick question on variable String

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86

    A quick question on variable String

    Anyone know what is the maximum number of character that a string can hold. I am reading hugh ..... large chuck of data into a string variable. I do not want to have data lost due to insufficient space to hold data.

    It is due to the system memory capacity or does it has a fixed number of character that it can accept ?

    The number of words or lines I am inserting to the var is about a million plus ... or more ...

    please give me a quick feedback.
    thanks!

  2. #2
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447
    A million characters. Sounds more like a word processing app to me. i don`t have the answer to your question though! Hope somebody else can shed some light!
    SteadFast!

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    From MSDN:

    A variable-length string can contain up to approximately 2 billion (2^31) characters.


    A fixed-length string can contain 1 to approximately 64K (2^16) characters.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

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



Click Here to Expand Forum to Full Width