Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it me, or...?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00106057
Message ID:
00106129
Views:
28
>I have a single column cursor which I am using to populate a combo box. The contents of the cursor change based on user input, and I would like to refresh the combo box to display the first item (record) each time the data in the cursor changes. The contents of the cursor are one or more numeric values which have been converted to character type and are sorted ascending.
>The problem I'm having is when the *difference* between the *current* value displayed in the combo box and the value of the first item (record) in updated cursor (which I'm trying to display) is greater than 3 my app crashes with "Record out of range". If the difference between the two is less-than or equal-to 3, it works great.
>All of this is especially strange since all the values I'm working with have been converted to character type.
>
>The key line of code is:
>THISFORM.cboIO.DISPLAYVALUE = curINOList.INO
>
>I've been all over the place on this, so I'll follow-up on *any* suggestions.
>
>TIA,
>Paul M.

I'm not sure if I fully understand the situation, but if you always want to display the first item in a combobox, you could do this;

THISFORM.cboIO.ListIndex = 1

That way, regardless of what the value is, it displays the first item.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform