Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it me, or...?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00106057
Message ID:
00106747
Vues:
23
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 is that occasionally I get a "Record is out of range" error. This is more consistent when the _current_ (old) value of the combo box is much greater (a difference of 3 or more) than the (new) value I'm trying to display.

The key line of code is:
THISFORM.cboIO.DISPLAYVALUE = curIOList.IO
I've been all over the place on this, so I'll follow-up on *any* suggestions.

>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.

I tried this (and had tried something similar prior to posting here) and got the same "Record is out of range" error.
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform