By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

string getting cut off, why???

100+
P: 175
I have some code that I'm reusing, so nothing has changed EXCEPT that the length of a string has increased a bit...maybe by a few hundred characters.

i have a string assignment statement, for example:

dim x as string
x = "............"

and x isn't getting everything, it's cut off. So, I figured maybe an array would help, but I'm not real familiar with variant's in VB. How can I fix this problem?
Apr 11 '07 #1
Share this Question
Share on Google+
3 Replies


Denburt
Expert 100+
P: 1,356
Strange... I am not sure why this could be happening.

http://msdn2.microsoft.com/en-us/lib...36(VS.80).aspx
String Data Type (Visual Basic)

Holds sequences of unsigned 16-bit (2-byte) code points ranging in value from 0 through 65535. Each code point, or character code, represents a single Unicode character. A string can contain from 0 to approximately 2 billion (2 ^ 31) Unicode characters.
You can assign a fixed length if you wanted to but it does not look like you have established a fixed length.

http://msdn2.microsoft.com/en-us/lib...y4(VS.80).aspx
Apr 11 '07 #2

100+
P: 175
I literally just found the problem. That string length ( the string * x ), that might help for something else I have. ...but, I realised the problem was a typo in my code...though it still doesn't make sense why the string kept cutting off way before the typo. Anyway, I appreciate the help, thank you.
Apr 11 '07 #3

Denburt
Expert 100+
P: 1,356
Glad you were able to find it let us know if you need anything else. :)
Apr 11 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.