Select to view content in your preferred language

Script constant for form mode?

2292
4
05-12-2012 02:41 AM
SteveFitzgerald
Occasional Contributor
I'm sure I've seen somewhere a constant for Arcpad's EditForm modes - something like 'apModeEdit', etc...
I searched the documentation but couldn't find anything.
No matter how much scripting I do I can never remember reliably which mode is which and a constant would make code so much easier to read.
Any one?

Steve
Tags (3)
0 Kudos
4 Replies
KyleBelott
Regular Contributor
Take a look at the Customizing ArcPad Help file under the ArcPad programs folder, i.e. "C:\Program Files (x86)\ArcGIS\ArcPad10.0\Developer\Help\ArcPadStudio.chm".

In the contents tab, locate "ArcPad Object Model Reference", then "Form Object", and Mode property.

Is that what you're looking for?

Hope this helps,
Kyle
0 Kudos
SteveFitzgerald
Occasional Contributor
Kyle,
Thanks for taking the time.
I forgot to mention I'm still on Arcpad 8.
Your prompt did however lead me to double (make that triple) check the object model and the help files...
Tantalizingly, there is a help file entry called 'mode constants' but it relates to the File object not the Form.
Would you be able to cut 'n paste to the forum?

Regards,
Steve
0 Kudos
KyleBelott
Regular Contributor
Steve,
Here's the Mode property page from the customizing help in ArcPad 10.
[ATTACH=CONFIG]14292[/ATTACH]
0 Kudos
SteveFitzgerald
Occasional Contributor
Kyle,
Sorry - you misunderstood what I was after but thanks again for taking the time.

Instead of using "If Map.EditLayer.Forms("EditForm").mode = 2 then..." I would like to use
something like "if Map.EditLayer.Forms("EditForm").mode = apFormEdit then..."

I'm fairly sure there are constants for the form modes but maybe they are not documented.
Or, maybe I dreamt it.

Regards,
Steve
0 Kudos