# Weird PROP:From behavior, last '|#Value' truncated - CW 11

**URL:** <https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091>\
**Category:** questions\
**Tags:** c11\
**Created:** [May 6, 2026, 5:32pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091 "2026-05-06T17:32:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 6, 2026, 5:32pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/1 "2026-05-06T17:32:18Z")

</div>

I have a drop list associated with a STRING(15) variable.  
in the window IDE I have  
‘Printer|Visa|Master Card|Amex|Discover|Checking|Savings|Email|No Print’  
and that works fine.  
My client wanted the last value to show ‘Self Print’ but store ‘No Print’ Easy right?  
‘Printer|Visa|Master Card|Amex|Discover|Checking|Savings|Email| **Self Print|#No Print** ’  
The drop list shows correctly, but the value stored is  
‘No Pri’  
I have tried adding extra values at the end, but it still cuts off at same place, i have rearranged the items but the last choices are cut off  
any ideas?  
i have also tried assigning in the code using PROP:FROM but no change.

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [May 6, 2026, 5:43pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/2 "2026-05-06T17:43:09Z")

</div>

Is it any different without the #? (e.g., a # is special in a FROM string)

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 6, 2026, 6:14pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/3 "2026-05-06T18:14:45Z")

</div>

So I took the # out which then of course make ‘Self Print’ and ‘No Print’ 2 individual choices, but the dropdown items list is truncated - ‘Self Print’ stores, but i get ‘No Prin’ and not ‘No Print’

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/8/84537f10e4e84c8a4acf55fbad8017e6be71990a.png)

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [May 6, 2026, 6:39pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/4 "2026-05-06T18:39:14Z")

</div>

oic. Was missing out on your usage requirement, sorry about that.

This seems to work OK. Maybe something is replacing your PROP:From, but it is truncating it? or your USE() variable is too small?

```clarion

 PROGRAM

  MAP
  END
  
MyField STRING(20)  
  
Window WINDOW('Caption'),AT(,,395,224),GRAY,FONT('Microsoft Sans Serif',8)
        LIST,AT(25,91),USE(MyField),DROP(10),FROM('Printer|Visa|Master Card|Amex|Discover|Checking|Savings|Email|Self Print|#No Print')
    END
  CODE
  
  OPEN(Window)
  ACCEPT
    CASE ACCEPTED()
    OF ?MyField
      MESSAGE(MyField)
    END
  END
  

```

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 6, 2026, 6:44pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/5 "2026-05-06T18:44:53Z")

</div>

i have all that - my use variable is string(15), i have drop 10 - everything looks like it should work. just a head scratcher

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [May 6, 2026, 6:52pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/6 "2026-05-06T18:52:19Z")

</div>

Have you changed your dictionary?

If so, have you compiled all DLLs to match?

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 6, 2026, 7:00pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/7 "2026-05-06T19:00:12Z")

</div>

yes, i have checked all the obvious. i will keep at it 🙃

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [May 6, 2026, 7:44pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/8 "2026-05-06T19:44:54Z")

</div>

> [@KevinErskine](#):
>
> `‘Printer|Visa|Master Card|Amex|Discover|Checking|Savings|Email|Self Print|#No Print’`  
> The drop list shows correctly,  
> but the value stored is `‘No Pri’`

> [@KevinErskine](#):
>
> So I took the # out which then of course make `‘Self Print’` and `‘No Print’` 2 individual choices, but the dropdown items list is truncated -  
> `‘Self Print’` stores, but i get `‘No Prin’`

So you took out 1 character the “#” and now the value you get is 1 character longer i.e. the “n” ?

That makes me think some code is changing Prop:From but using a variable that is 2 bytes too short to hold the full value. Or maybe there is some other bug in code changing that From string.

Show the full code of that LIST control not just the FROM string. Is it a COMBO?

Also the Event Accepted code. Also any code that changes that ?ListFeq

If in Designer you open a Window Preview does your From `#No Print` work? The Preview is a true running Clarion program for your Window, but without any of your code, so would better prove if the RTL had a flaw.

---

<div class="post-metadata">

**Author:** ![seanh](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@seanh](https://clarionhub.com/u/seanh)\
**Post date:** [May 6, 2026, 11:35pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/9 "2026-05-06T23:35:42Z")

</div>

I’m wondering if the size available for the last element is determined by the size of the first one?

In your case ‘Printer’ = String 7 ; ‘#No Pri’ = String 7  
Just a thought bubble

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [May 6, 2026, 11:55pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/10 "2026-05-06T23:55:44Z")

</div>

Kevin, I tested Jeff’s solution with both Clarion 10.0.11897 and 11.1.13845 and it worked fine.  
There must be something else going on in your program.  
What version of C11 are you using?

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [May 7, 2026, 12:18am UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/11 "2026-05-07T00:18:34Z")

</div>

The thing I keep going back to is 1 or more DLLs that dont have a matching record buffer. Or a 3rd party class/template that massages the FROM()

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 7, 2026, 12:37am UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/12 "2026-05-07T00:37:14Z")

</div>

This app/window have been in production for a couple of years. This was a change they wanted today. All I was trying to do was add a different option to the drop-down. I will try to do a simple app tomorrow and post with results if I can reproduce it.

Kevin

C-415.819.1415  
_Communication is the key to a successful relationship._

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [May 7, 2026, 4:13am UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/13 "2026-05-07T04:13:32Z")

</div>

In Designer can you open a Window Preview? Does your From #No Print work in that?

IMO Window Previewer is a wonderful thing in C8+ and a must have.

I have a [Previewer thing on GitHub](https://github.com/CarlTBarnes/WindowPreview) you simply drop in LibSrc to enhance it. There is also a [thread here to fix Previewer not working](https://clarionhub.com/t/how-to-solve-the-window-previewer-could-not-display-the-window/3545).

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [May 7, 2026, 5:44am UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/14 "2026-05-07T05:44:21Z")

</div>

You’re seeing your USE() truncated, which you are Not going see in the Previewer…

In Event Accepted show the From string and I think you’ll see it truncated by 2 bytes:

```clarion
Message('From="' & ?{PROP:From} & '"' )

```

If so there’s some bad code changing the From

* * *

In my Preview tool you can see all the PROP’s of a Control and see the Prop:Value truncated. Probably also see the From truncated.

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [May 7, 2026, 10:26am UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/15 "2026-05-07T10:26:09Z")

</div>

Works in C6. Note the extra hash symbol `Self Print|#|#No Print'`

```clarion
Loc:TestString STRING(20)

```

```clarion
LIST,AT(159,15,116,10),USE(Loc:TestString),DROP(10),FROM('Printer|Visa|Master Card|Amex|Discover|Checking|Savings|Email|Self Print|#|#No Print')

```

 ![Screenshot 2026-05-07 112043](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/8/8cba8c62b2ee5d7ecd7d62eec3cecf9fc8457052.png)

---

<div class="post-metadata">

**Author:** ![KevinErskine](https://clarionhub.com/user_avatar/clarionhub.com/kevinerskine/32/711_2.png) [@KevinErskine](https://clarionhub.com/u/KevinErskine)\
**Post date:** [May 7, 2026, 2:35pm UTC](https://clarionhub.com/t/weird-prop-from-behavior-last-value-truncated-cw-11/9091/16 "2026-05-07T14:35:16Z")

</div>

OK - WOW - Did not expect this much interaction on this post. I figured it was just a weird bug. After sleeping on it and reading everyone’s post (Thank you all) I went back and looked at the code - this is a legacy app that I inherited 13yrs ago and rarely make changes to this procedure. It seems there was an in-house function that manipulated the fields one way or another and the 'hold" variable for the values was too short. I changed the code to use StringTheory and everything worked fine. Now i do not have to worry about this type of thing again. the values is stored as ‘No Print’ which is what is needed.  
Now it works - again thank you all very inquisitive minds for spending brain power on this ! \<3

 ![image](https://clarionhub-uploads.s3.dualstack.eu-north-1.amazonaws.com/original/2X/0/046b346a9cbdb4d07f6d354b66416b93d5d9794e.png)
