Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #2482

Re: Convert "string" describing define to define

From E®!k \\/!$$E® <nospam@nospam.url>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Convert "string" describing define to define
Date 2011-11-22 14:05 +0100
Message-ID <9j1l1dFqjgU1@mid.individual.net> (permalink)
References <ltilc7ljjs1a0tqki3b7a4ib02sg6h5ivm@4ax.com>

Show all headers | View raw


Dick,

The defines are 'searched and replaced' by the preprocessor, even before 
compilation. So there is define no way to get the name of the constant at 
runtime.
Look at how this is solved in the VO Definer. There are stringtables 
generated as well as arrays  with the names (as strings ) and the values of 
the constants.

Erik


"D.J.W. van Kooten"  schreef in bericht 
news:ltilc7ljjs1a0tqki3b7a4ib02sg6h5ivm@4ax.com...

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 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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