Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrong value from a ComboBox's Rowsource
Message
De
05/01/1999 14:42:18
 
 
À
05/01/1999 14:39:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00172889
Message ID:
00172890
Vues:
27
>I’ have a combobox in a form with the next properties:
>
>BoundColumn: 2
>ControlSource: repvesp.iIDArea
>RowSource: area.Nombre, iID
>RowSourceType: 6
>
>Since the data is to be displayed in alphabetical order by name (nombre), the table “area” is ordered by the first column “Nombre” (tag Nombre) which is a field of type character, by setting the “order” property to NOMBRE into the form’s dataenvironment.
>
>Problem: Instead of replacing iID into repvesp.iIDArea, the value being replaced is its position as shown by the combobox (First element shown replaces 1, second 2, etc., though their iID’s are other values).
>
>I’ve tried a local view with no tags involved and the same thing happens.
>
>This does not happening when there is no order selected for the table.
>
>Please, if anybody knows a way around this let me know.
>
>Regards

If repvesp.iIDArea is integer, then you should reset Combo.BoundTo property.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform