![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Jan 27, 2008 9:44 pm
[2.18] PE String List display 255 byte limit corrupts variable |
The display control for string lists, and presumably records, has a 255 byte limit. When displaying a list with a larger item size then making any changes it causes the items to be come truncated at this limit.
Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Enter at the command line
Code: |
#VAR a {%concat(%repeat("a",500),"|",%repeat("b",500))};#SHOW %len(@a) |
4. Open Package Editor (CTRL-G)
5. Change the type of the variable 'a' to string literal
You will immediately see the contents of the variable is quite a bit smaller then it should be.
6. Click Save changes
7. Enter at the command line
Size will display as 511, 255 per item * 2 items + 1 pipe
You may select a different type in step 5 to receive the same results. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
![](templates/Classic/images/spacer.gif) |
Tech GURU
![](images/avatars/172896370346230b24779a1.gif)
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Jan 30, 2008 5:35 am |
Confirmed. This occurs even if you switch to literal, switch back to AutoType and save. So it would seem that it's the switch String literal that's causing the truncation.
|
|
_________________ Asati di tempari! |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|