VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic.
1
vote
2answers
96 views
How to convert field values from lower case to upper case in ArcGIS 10.1?
Using the Field Calculator in ArcGIS 10.1, I am able convert the first letter in a value from lower case to upper case. How do you convert the entire value to upper case, though? I can't seem to ...
0
votes
0answers
75 views
How can I get shape filename in attribute field using field calculator with VBA?
I want to store ths shapefile name in an attribute field using the field calculator and visual, but can't find the way to do it.
Can anyone help me, please?
Thanks!!!
1
vote
1answer
97 views
How do you calculate a column value based on the value of another column?
I am trying to select data based on whether it starts with certain characters and then update a field. For example if [Asbuilt] starts with "WL" then do something. Here are the two methods I have ...
1
vote
0answers
40 views
Picture fill symbol fails with a polygon graphic
The following code snippet successfully draws a graphic polygon and fills it with the specified picture fill symbol. When the x values for all of the points are made negative and a repeat call to the ...
0
votes
4answers
252 views
How to solve a run-time error in Thiessen polygons command line
Well I revise my post by giving more information for my problem hoping I may get some help please.
I call Procedure 2 from a loop that is within Procedure 1 (see below). The program stacks in the ...
3
votes
1answer
155 views
Convert ArcMap label expressions from VBScript to Javascript or Python
I have a large number of layers (hundreds) with label expressions written in VBScript.
I am using ArcMap 9.3.1, and I'm now starting to export the layers as MPKs for use in our ArcGIS Runtime (WPF) ...
1
vote
0answers
30 views
Script for populating field in ArcGIS 10 with consecutive numbers (where start numbers is decided by me) [duplicate]
Possible Duplicate:
How to add automate values to attribute field?
I need a script (for Arc GIS 10) by which I can populate a field against some selected polygons features.
For instance, i ...
11
votes
2answers
1k views
How can I create weighted Thiessen polygons?
I have a point shape file and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax:
CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy)
...
2
votes
1answer
166 views
field calculation in arcgis
i have a data which contain a code of area an value of area in shapefile, ex.:
area|value
1|33
1|43
1|31
2|12
2|43
3|66
3|76
the question is how to calculate total value per area with arcgis, i ...
1
vote
2answers
175 views
How to Add Values together using FindLabel (VBscript) function of ArcMap Label Expression?
I'm wanting to add together values from multiple fields in shp file and display the result as a the label here's what I'm looking at right now:
if ( [SwineGesBo] + [SwineSowLt] > 0) then output = ...
3
votes
1answer
630 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
2answers
447 views
ArcMap field calculator VBScript
I want to do some advanced level scripting with VBA in the field calculator. I have done a simple coding in the code block. Here is the codes.
dim X
if [Name]="University" then
X=101101
...
6
votes
2answers
149 views
How to parse serial date in ArcGIS?
I have imported a shapefile that contains a serial date number that looks like this: 41256.260799. I would like to create a new field that shows only the hour and second like this: 06:33. I've tried ...
1
vote
0answers
107 views
ArcPad get vbs script location
Within arcpad (edit form) I want to get the current location of the vbs script running. This simple vbs script outside of arcpad works fine.
wscript.echo " " + Wscript.ScriptFullName
However, when ...
3
votes
3answers
138 views
How to make Field Value constant size(length) by appending zeros towards the end?
I have been racking my brain, but I can't seem to find a solution to appending my field values in my .dbf to correspond with the values of my feature's attribute table. All I need to do is to append ...