Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2513
| From | E®!k \\/!$$E® <nospam@nospam.url> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Convert "string" describing define to define |
| Date | 2011-11-26 13:40 +0100 |
| Message-ID | <9jc51hFpkvU1@mid.individual.net> (permalink) |
| References | <ltilc7ljjs1a0tqki3b7a4ib02sg6h5ivm@4ax.com> <1321977371_2957@vo.lu> <vnpnc7hcq11hnf6gnjgdgruv6bbtkkcuco@4ax.com> |
There is a disadvantage to this approach. If you change the caption of the
menuitem, the name of the constant (and the corresponding symbol ) changes.
Erik
"D.J.W. van Kooten" schreef in bericht
news:vnpnc7hcq11hnf6gnjgdgruv6bbtkkcuco@4ax.com...
On Tue, 22 Nov 2011 16:48:22 +0100, Camille Kater <katercamXXX@pt.lu>
wrote:
Hello Camille,
>
>Maybe this function from Ivo Wessel can help:
>
>Function MenuGetID (oMenu, symEventName) As DWord
>// Ermittelt aus dem symbolischen EventName einer Option die numerische ID
>Local nPos, nID As DWord
>
>nPos := AScan (oMenu:Items, { | a | a [2]:nameSym == symEventName })
>
>IF nPos > 0
>nID := oMenu:Items [nPos,1]
>ENDIF
>
>Return nID
With addition of this access:
ACCESS Items CLASS Menu
RETURN SELF:aItem
and a little rewriting (pass the symbolic methods from the menu
instead of the ID-string), this is exactly what I was looking for!
Thanks,
Dick
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Convert "string" describing define to define D.J.W. van Kooten <public@ic2remove.this.com> - 2011-11-21 23:10 +0100
Re: Convert "string" describing define to define "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-11-22 09:51 +1100
Re: Convert "string" describing define to define D.J.W. van Kooten <public@ic2remove.this.com> - 2011-11-22 13:27 +0100
Re: Convert "string" describing define to define E®!k \\/!$$E® <nospam@nospam.url> - 2011-11-22 14:05 +0100
Re: Convert "string" describing define to define D.J.W. van Kooten <public@ic2remove.this.com> - 2011-11-22 18:09 +0100
Re: Convert "string" describing define to define Camille Kater <katercamXXX@pt.lu> - 2011-11-22 16:48 +0100
Re: Convert "string" describing define to define D.J.W. van Kooten <public@ic2remove.this.com> - 2011-11-22 19:17 +0100
Re: Convert "string" describing define to define "Marc Verkade [Marti]" <marcatm@rti.nl> - 2011-11-26 11:06 +0100
Re: Convert "string" describing define to define "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-11-26 03:12 -0800
Re: Convert "string" describing define to define E®!k \\/!$$E® <nospam@nospam.url> - 2011-11-26 13:40 +0100
csiph-web