Set up definition query with variable

المشرف العام

Administrator
طاقم الإدارة
I am writing a script which supposed to get a value for a field from user and use that value for a definition query.

If I write it without variable:my_Layer.definitionQuery = "IncidentName = 'Hospital Rd, Kurri Kurri'"it works.

If I try:AA = 'Hospital Rd, Kurri Kurri'my_Layer.definitionQuery = "IncidentName = AA"

It does not work. The definition query is set to string AA, and not the value set I assigned to it.

Any ideas?Thanks!



أكثر...
 
أعلى