Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7758
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Karl-Heinz" <invalid@invalid.invalid> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Combobox value |
| Date | Fri, 20 Feb 2015 14:47:02 +0100 |
| Lines | 30 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net YRHKP63ec2iyUFf8LTrlkA17Xa7UukwLIh8UhU5m3tfq/RGOw= |
| Cancel-Lock | sha1:soSSh6gB69cflEPkJ8BGWGY1VEE= |
| In-Reply-To | <37b9646a-e95e-4c3f-a626-df62afa1535b@googlegroups.com> |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Importance | Normal |
| X-Newsreader | Microsoft Windows Live Mail 16.4.3528.331 |
| X-MimeOLE | Produced By Microsoft MimeOLE V16.4.3528.331 |
| Xref | csiph.com comp.lang.clipper.visual-objects:7758 |
Show key headers only | View raw
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