Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2513
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | E®!k \\/!$$E® <nospam@nospam.url> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Convert "string" describing define to define |
| Date | Sat, 26 Nov 2011 13:40:16 +0100 |
| Lines | 39 |
| Message-ID | <9jc51hFpkvU1@mid.individual.net> (permalink) |
| References | <ltilc7ljjs1a0tqki3b7a4ib02sg6h5ivm@4ax.com> <1321977371_2957@vo.lu> <vnpnc7hcq11hnf6gnjgdgruv6bbtkkcuco@4ax.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 4ZleHGWUMH/YqSSfO4GzhwjF1FLiy28hG+J2JeD1rdVy2pIil+ |
| Cancel-Lock | sha1:Tdyh8O0ExkMAtfnEO/rPL95pGIU= |
| In-Reply-To | <vnpnc7hcq11hnf6gnjgdgruv6bbtkkcuco@4ax.com> |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Importance | Normal |
| X-Newsreader | Microsoft Windows Live Mail 15.4.3538.513 |
| X-MimeOLE | Produced By Microsoft MimeOLE V15.4.3538.513 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:2513 |
Show key headers only | View raw
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