I've got back into Python after a long break. I'm creating a simple data validation script at the moment. I am just trying to return the field type of a field input by the user. I'm using arcpy.AddMessage to validate my steps as I go along. I've tried googling and looking at multiple questions on here and have found nothing that works. Here is my code:
#VARIABLES gulyShp = arcpy.GetParameterAsText (0) #GULLY SHAPEFILE sDep = arcpy.GetParameterAsText (1) arcpy.AddMessage(sDep) sDTy = arcpy.Field(sDep.Type) arcpy.AddMessage(sDTy)
All I want is the type of the field sDep is assigned to be stored in a variable.