Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
(Visual Basic for Applications) A subset of Visual Basic that provides a common language for customizing Microsoft applications.
1
vote
2
answers
853
views
VBA ArcGIS 9.3 Field Calculator: 'countif' across several fields
nr_of_species
1 123 234 0 ......... 2
2 456 0 0 ......... 1
3 0 0 0 ......... 0
Is there a way to do this with VBA and … I have no experience with VBA, so i might need a complete dummy-guide.
thanks! …
1
vote
Accepted
VBA ArcGIS 9.3 Field Calculator: 'countif' across several fields
UPDATE: I solved it with writing really ugly code:
Dim counter as integer
counter = 0
if [type1] > 0 then
counter = counter + 1
endif
if [type2] > 0 then
counter = counter + 1
endif
etc et …