Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8388 > unrolled thread
| Started by | Rob Smith <rasmithhalifax@gmail.com> |
|---|---|
| First post | 2015-09-02 01:28 -0700 |
| Last post | 2015-09-02 03:18 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
List Box Select Rob Smith <rasmithhalifax@gmail.com> - 2015-09-02 01:28 -0700
Re: List Box Select "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-09-02 11:03 +0200
Re: List Box Select Rob Smith <rasmithhalifax@gmail.com> - 2015-09-02 02:47 -0700
Re: List Box Select "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-09-02 12:04 +0200
Re: List Box Select Rob Smith <rasmithhalifax@gmail.com> - 2015-09-02 03:18 -0700
| From | Rob Smith <rasmithhalifax@gmail.com> |
|---|---|
| Date | 2015-09-02 01:28 -0700 |
| Subject | List Box Select |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2015-09-02 11:03 +0200 |
| Message-ID | <d4nstpFcbc1U1@mid.individual.net> |
| In reply to | #8388 |
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" <rasmithhalifax@gmail.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Rob Smith <rasmithhalifax@gmail.com> |
|---|---|
| Date | 2015-09-02 02:47 -0700 |
| Message-ID | <b81f0420-524c-45a5-ba1b-a18df0d68374@googlegroups.com> |
| In reply to | #8388 |
On Wednesday, September 2, 2015 at 9:28:13 AM UTC+1, Rob Smith wrote: > 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 Yes it's a ComboBox - DropDownList, I included Terminal Lite but still doesn't work!
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2015-09-02 12:04 +0200 |
| Message-ID | <d4nvtlFd2ouU1@mid.individual.net> |
| In reply to | #8388 |
Hi Rob, your control has a name? If you are constructing controls dynamically and you don't add the hyperlabel to the control, the control will have no name. Wolfgang > 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 --
[toc] | [prev] | [next] | [standalone]
| From | Rob Smith <rasmithhalifax@gmail.com> |
|---|---|
| Date | 2015-09-02 03:18 -0700 |
| Message-ID | <3f5fb9e4-06f6-40b7-b26a-4cf5d8c5a470@googlegroups.com> |
| In reply to | #8391 |
On Wednesday, September 2, 2015 at 11:04:39 AM UTC+1, Wolfgang Riedmann wrote: > Hi Rob, > > your control has a name? If you are constructing controls dynamically > and you don't add the hyperlabel to the control, the control will have > no name. > > Wolfgang > > > 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 > > > > -- Got it, not sure what was wrong, but now it works!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web