Macro?

I have a list of constants which, ofcourse, represent a value, ID001=“Orange”, ID099=“Banana”, ID101=“Cherry” etc. How can I search in these values when i.e. I user keyes in the ID, ‘101’? Can I use a macro operator like:
if keyedinID = ID&&str(101) then etc.? How do you solve those things in Xojo?

That sounds like a dictionary to me: http://documentation.xojo.com/index.php/Dictionary

Pixe

Crap! Forgot it again! Sure…

Thanks