Subject: Re: Convert "string" describing define to define From: Camille Kater Date: Tue, 22 Nov 2011 16:48:22 +0100 Message-ID: <1321977371_2957@vo.lu> References: Lines: 50 NNTP-Posting-Host: 78.141.159.238 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1321977371 78.141.159.238 (22 Nov 2011 16:56:11 0100) User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:2485 Hi Dick, 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 Camille On 21/11/2011 23:10, D.J.W. van Kooten wrote: > I must be missing something obvious.... > > I have lines like this: > > DEFINE > IDM_iConnectFinEmptyShellMenu_MN_BESTAND_Temporary_operations_Import_specifications_ID > := 23718 > > And I need to retrieve the value (now 23718 but changing as soon as I > change someting in the menu). > > Something like : > > nValue:=string2Define(IDM_iConnectFinEmptyShellMenu_MN_BESTAND_Temporary_operations_Import_specifications_ID) > > (so I can do something like SELF:DisableItem(nValue) > > How can I achieve this? > > Dick