Definitition Query and Layer class - how to use?

Discussion created by jhchan69 on Dec 19, 2011
Latest reply on Dec 20, 2011 by jbarrette-esristaff
In the arcHelp there's a page under "Classes" that says that Layers have a property of Definition Query. How do I use that?

I want to be able to have the user input a value which will then be used as a query in a layer's definition query. And then I want to be able to zoom into that geographic extent.

does anyone have any examples of how I could do that?  The ArcHelp page mentions it but I don't know how it works