Utah.govOnline ServicesAgency ListBusiness.Utah.gov

Registered User Menu

Register

User Login

Home arrow GIS Forum
Utah GIS Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to Post Code (1 viewing) (1) Guest
Go to bottom Post Reply
TOPIC: Re:How to Post Code
#16
Bert Granberg (Admin)
Admin
Posts: 11

Re:How to Post Code 3 Months ago  
Oops, the code tag doesn't look so hot in Internet Explorer 6...will work on that
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#15
Bert Granberg (Admin)
Admin
Posts: 11

How to Post Code 3 Months ago  
The Utah GIS Portal Forum uses standard BBCode style markup tags to allow users to format their posts. If you need to include a code sample (like the one below) in a post make sure that you surround it with begin and end code tags (from the Boardcode formatting buttons). This will preserve you formatting and indenting and will display the code using a fixed width font.

Note: the nice formatting will not appear in the preview window.

Code:

Public Sub SetNull() 'Set null values for selected features in specified field' Dim pDispTab As IDisplayTable Dim pMXD As IMxDocument Dim pTable As ITable Dim pCursor As ICursor Dim pRow As IRow Dim pMap As IMap Dim pFSel As IFeatureSelection Dim pSelSet As ISelectionSet Dim pFLayer As IFeatureLayer Set pMXD = ThisDocument Set pMap = pMXD.FocusMap Set pFSel = pMap.Layer(1) Set pSelSet = pFSel.SelectionSet Set pFLayer = pFSel pSelSet.Search Nothing, False, pCursor Set pRow = pCursor.NextRow Do While Not pRow Is Nothing 'enter the name of the field below' pRow.Value(pFLayer.FeatureClass.FindField("MYFIELD")) = Null pRow.Store Set pRow = pCursor.NextRow Loop End Sub
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/15 13:52 By Bert Granberg.
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

AGRC Contacts | UGIC Contacts

feed image feed image

Utah GIS Portal © 2008 AGRC

Optimized for