What is made difficult by use of ITEMIZE,PRE(I ) ?
The only thing I can think of is you were searching for the values associated with one of the equates. For example searching for the value of I:PlusOne from BoxSoft’s (Mikes) example above.
So when, your KSS search for I:PlusOne - filtered to declaration rows fails
You search again for PlusOne - easy peasy - same process when search for anything in clarion that might have a prefix (Files, Groups, Queues )
The real question is WHY you’d want to know the value of the ITEMIZE
My guess is you’re showing the value in a debugging statement.
So instead of showing the value, why not show a string interpretation
I just call the ToDescription( LONG xCode ),STRING method from the Enumeration class that I create for each ITEMIZE.
for example:
ctEnumRepeatSpacing CLASS(ctEnumBase),TYPE,MODULE('ctEnumHelpers.clw'),LINK('ctEnumHelpers.clw',_ABCLinkMode_),DLL(_ABCDllMode_)
ToDescription PROCEDURE(LONG xCode ,BYTE BlankOnError=FALSE),STRING,DERIVED
ToCode PROCEDURE(STRING xDescription),STRING,DERIVED !From Description to Code
PropFrom PROCEDURE(LONG xFlag=0 ),STRING,DERIVED
END
The PropFrom is used to for ?SomeList{PROP:From} = oEnumRepeatSpacing.PropFrom()
In truth since these classes have no properties, I should remove the ,TYPE and just call them as static classes.