Last modified January 19, 2010
Print all topics in : "Properties and Methods"
This topic was updated for 9.3.1.
Checks to see if the requested license is available. There are five possible return values for CheckProduct: AlreadyInitialized, Available, Unavailable, NotLicensed, and Failed.
|object||The instantiated geoprocessing object|
|checkProduct||Product code for the product being checked (ArcView, ArcEditor, ArcInfo, Engine, EngineGeoDB, ArcServer)|
import arcgisscripting gp = arcgisscripting.create(9.3) if gp.CheckProduct("ArcView") == "Available": gp.SetProduct("ArcView")