d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Sports Coliseum > Football & Rugby > Watch Stuart Get Owned
Prev1456
Add Reply New Topic New Poll
Member
Posts: 5,727
Joined: Oct 25 2011
Gold: 0.00
Feb 19 2015 07:36pm
my sides lol
Member
Posts: 29,683
Joined: Sep 7 2006
Gold: 14,543.46
Feb 19 2015 07:56pm
Quote (Mangina @ Feb 19 2015 01:31pm)
Honestly not sure, like i said ive only just started using it with the arcgis sdk. Ill take a look when i get home. Can you explain why?


What i mean was more along the lines of definitionquery = "category = " & categoryCode where categoryCode was an int


This is the actual code I was trying to remember. No errors as of now without options strict

Code
Private Sub setDefinitionQuery(ByVal categoryCode As Integer)
Dim pSelectedLayer As ILayer = getLayerByName(cmbLayers.SelectedItem.ToString)
'this can give an error if pSelectedLayer is not a feature layer
Dim pFLayerDef As IFeatureLayerDefinition = pSelectedLayer
pFLayerDef.DefinitionExpression = "CATEGORY = " & categoryCode

Dim pMxDoc As IMxDocument = _application.Document
pMxDoc.UpdateContents()
pMxDoc.ActiveView.Refresh()
End Sub


This post was edited by Mangina on Feb 19 2015 07:57pm
Member
Posts: 52,835
Joined: Oct 9 2008
Gold: 250.00
Feb 19 2015 08:41pm
Quote (Crashnburn_819 @ Feb 19 2015 09:53am)
I wonder if you'll ever realize how hard you're getting trolled.


Well yea but tx9 is so dumb lol.
Go Back To Football & Rugby Topic List
Prev1456
Add Reply New Topic New Poll