Select to view content in your preferred language

Custom command on ArcPad

803
2
07-16-2012 05:43 AM
geogeekgeogeek
Occasional Contributor
i want to trigger a function before closing the Arcpad application , i haven't found any before close event , so i think to make a custom command which will execute a function before closing and close the app. this command will be called from a menu item in Arcpad.apx .


i would like to know if this possible and how to do it , if not is there any possibility to trigger function before closing Arcpad app.
Tags (3)
0 Kudos
2 Replies
RolfBroch
Frequent Contributor
Would the OnShutDown event for the Application object do what you want?

Rolf
0 Kudos
geogeekgeogeek
Occasional Contributor
Would the OnShutDown event for the Application object do what you want?

Rolf


i tried the event Application-> OnShutDown and Map->OnClose, but both are executed when the Arcpad began closing , because i need to have access to Datasource to insert a row in database.

that's why i thought the simulating the "Exit" command would be a good idea.
0 Kudos