Sep 11, 2003 #1 Mehyar Well-known member Joined Jun 9, 2003 Messages 371 Location Lebanon Guys, What is the maximum number of characters a string variable can hold ??? Thx in advance
Sep 11, 2003 #2 dynamic_sysop Well-known member Joined Oct 1, 2002 Messages 1,039 Location Ashby, Leicestershire. isnt it around 2gig, i know its a very large figure going from memory.
Sep 11, 2003 #3 Mehyar Well-known member Joined Jun 9, 2003 Messages 371 Location Lebanon Well, I dont know about the size... I was looking for how many characters it can handle
Sep 11, 2003 #4 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* If its 2G of memory then its half as many characters.
Sep 11, 2003 #5 Mehyar Well-known member Joined Jun 9, 2003 Messages 371 Location Lebanon Ok i am a little bit confused about this.... So you are saying that i can have 1 Gigabyte of characters And a character is 2 bytes so a string may hold 10^9 / 2 which is 500 million characters.. So i can put up to 500 million characters in a string is that right??
Ok i am a little bit confused about this.... So you are saying that i can have 1 Gigabyte of characters And a character is 2 bytes so a string may hold 10^9 / 2 which is 500 million characters.. So i can put up to 500 million characters in a string is that right??
Sep 11, 2003 #6 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* Sounds about right. Probably not the most memory efficient way of doing things though
Sep 11, 2003 #7 Mehyar Well-known member Joined Jun 9, 2003 Messages 371 Location Lebanon Thx a million...