3
votes
1answer
2k views

Field Calculator VB Script Codeblock IF statement syntax is wrong

I can't figure out why the syntax is wrong in Field Calculator ArcMap 10. The complete codeblock is Dim CapitalDia As Number Dim TwagDia As Number Dim X As Number CapitalDia = [New_Pipe_S] TwagDia ...
2
votes
1answer
266 views

Extracting all field names of a featureclass using query filter programmatically

I want to get all field names present in a feature class using queryfilter programmatically.
1
vote
1answer
217 views

How can I transform layout page units to map units?

I am trying to build an add-in that will create a polygon from the current map extent. This is not a problem in Data View where I can easily get the envelope of an iMxDocument:iActiveView in data ...
3
votes
1answer
394 views

What is the code to execute a function when there is a mouse click on the map?

I am developing an add-in for ArcMap 10.0 where I need to execute code when there is a click on the map open. How do I do this? I am using VB in Visual Studio 2010. I also need to get the coordinates ...
1
vote
1answer
307 views

Use field names in combobox

I am currently stuck on a problem surrounding ArcGIS Explorer and comboboxes What I am trying to do is use 3 comboboxes to do the following: View all features contained within ArcExplorer's table ...
3
votes
2answers
4k views

Using conditional statements in Field Calculator

I have two fields, "P_Area" and "PC_Area", whose sizes I'd like to compare in a third field, "Areas_Equal". The "Areas_Equal" field should contain a "Yes" if the other two are equal and a "No" if they ...
1
vote
3answers
457 views

python: Replace Variable in VB-Expression-File (.cal) [ArcGis 9.3]

I'm trying to modify a VB-Expression saved in a cal-file: dim out if [D19830701]=-9999 then out= [D19830501] else out= [D19830701] end if __esri_field_calculator_splitter__ out with this ...