Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Path to folder and mxd

$
0
0
I'm trying to program my Map button. I have a dialog box that has them select a type of station and then select a district. So if they select a type of station that takes them to a certain folder and then from the type of district that was selected it opens an mxd in that folder. My program is written as such :
Private Sub cmdMap_Click()

Dim cboStations As String
If cboStations = "Annual" Then gotofolder "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012"
Else
gotofolder "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\Urban_Maps"

Dim districts As String
Dim cboDistrict As String
If cboDistrict = "Abilene" Then getmxd "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012\Abilene\Abilene_Base_Map.mxd"
Elif
cboDistrict = "Amarillo" then getmxd "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\2012\Amarillo"

Am I on the right track or not?????

Viewing all articles
Browse latest Browse all 1374

Trending Articles