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" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Combobox value Date: Fri, 20 Feb 2015 14:47:02 +0100 Lines: 30 Message-ID: References: <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 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