Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: List Box Select Date: Wed, 2 Sep 2015 11:03:33 +0200 Lines: 38 Message-ID: References: <3334241f-e1bd-4c18-a155-e19333e0c898@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 A7sYQkmw+yGRM5TSh1pdXQ39BZ7ldsoTyZjdJaclnuAI92v2HL Cancel-Lock: sha1:UaBzQMcAiKhUWNfLq0m4OJW+KEY= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetId: 37303A2992966F67607363 X-EsetScannerBuild: 25560 Xref: csiph.com comp.lang.clipper.visual-objects:8389 Hi Rob, You call ListBoxSelect() and ask for cmbTrams. Is cmbTrams a ComboBox? Something wrong with controls? Try: METHOD ListBoxSelect(oControlEvent) CLASS TramsBrowser LOCAL oControl as Control oControl := iif(oControlEvent == null_object, null_object, oControlEvent:Control) SUPER:ListBoxSelect(oControlEvent) //Put your changes here ? oControl:NameSym // include Terminal Light Lib Regards Urs "Rob Smith" schrieb im Newsbeitrag news:3334241f-e1bd-4c18-a155-e19333e0c898@googlegroups.com... > Hi > > I have the following code, but when I look at oControl there is no > 'NameSym', it has always worked before but this is a new app, what am I > missing? > > METHOD ListBoxSelect(oControlEvent) CLASS TramsBrowser > LOCAL oControl as Control > oControl := iif(oControlEvent == null_object, null_object, > oControlEvent:Control) > SUPER:ListBoxSelect(oControlEvent) > //Put your changes here > IF oControl!=null_object > IF oControl:NameSym == #cmbTrams > > Any help would be welcome. > > Rob