Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7758
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Combobox value |
| Date | 2015-02-20 14:47 +0100 |
| Message-ID | <ckosbnFu2boU1@mid.individual.net> (permalink) |
| References | <a08b9cf9-4b00-43bd-b2ff-aec7db90953c@googlegroups.com> <2vncead4j5utu05vpiv7acdnde3li13tfe@4ax.com> <37b9646a-e95e-4c3f-a626-df62afa1535b@googlegroups.com> |
Hi Lu,
The "problem" is that the ComboBox sources assume that you use unique named
items *only*. Anyway, try the inherited ComboBox class below, and let us
know if it fits your needs.
------------------------
CLASS mySpecialComboBox INHERIT ComboBox
ASSIGN VALUE ( uValue ) CLASS mySpecialComboBox
LOCAL dwPos AS DWORD
LOCAL uRet AS USUAL
uRet := SUPER:VALUE := uValue
IF ( dwPos := AScan( SELF:aRetValues, uValue ) ) > 0
SELF:CurrentItemNo := dwPos
ENDIF
RETURN uRet
-------------
Regards
Karl-Heinz
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Combobox value Lu <lu2k@hotmail.com> - 2015-02-19 08:12 -0800
Re: Combobox value D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-02-19 23:13 +0100
Re: Combobox value Lu <lu2k@hotmail.com> - 2015-02-19 23:57 -0800
Re: Combobox value D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-02-20 13:31 +0100
Re: Combobox value "Karl-Heinz" <invalid@invalid.invalid> - 2015-02-20 14:47 +0100
csiph-web