Using PROP:From w/ Value in a SPIN

I understand the docs to say a value from a SPIN control can be selected by using a FROM string like: ‘Fall|#1|Spring|#2|Summer|#3’

However, in my testing, I am unable to find any code that will get those values into a variable.
My first assumption was something like USE(MyValue,?SPIN) would work. I also tried various code using CHOICE or PROP:Selected. So far nothing. Anyone know what I am missing?

Drop list box does that. I’m not aware of c7-11 doing it with a spin control.

Edit.

http://clarion.help/doku.php?id=spin_box_control_properties.htm

Seems like a new one on me but it needs a queue.

From:
“ You may also wish to provide the user with strings formatted as Spin Box choices when the choices are a natural progression such as the days of the week or the months of the year. Specify a QUEUE in the From field. This and Range are mutually exclusive”

So it needs a queue not the drop down format for a list of values.

I don’t have Clarion on this machine, but maybe your USE() parameters are hindering your research?

The fix for correct work of alternative values in SPINs and COMBOs was sent to SV on March 19th.

1 Like

Thank you. Do you know if the fix included another previously discussed SPIN bug whereby the SPIN control remains highlighted even though focus has moved to a LIST (ie the list becomes scrollable)?

That fix included nothing else.

I don’t know about such issue. The SPIN and COMBO control kinds are derived from ENTRY. That is why there was the problem with alternative values - the code was implemented for LISTs. Though sources of values are common for LISTs, SPINs and COMBOs, ENTRY and its derived have quite specific communication between displayed text and actual value in its USE variable.

Regarding focus, the code for SPINs just sets focus to the control if Up or Down buttons are clicked. All the other focus handling is in the code for ENTRYs. If there are no problems with highlighting of the text in ENTRYs, I do not expect them for SPINs. If there is an example demonstrating some issue, please send it to me.

Here you go. Change spin value, click list. Both are then highlighted.
SpinTest.zip (794.8 KB)

The fix is sent to SV.

NB: the ACCEPT loop in the test program forces passing the focus from SPIN to LIST after single click to either of SPIN’s buttons. The SPIN must lose highlighting without explicit clicking to LIST.