Select to view content in your preferred language

Script Path Error for ArcPad Form

648
1
12-06-2012 04:23 AM
SuzanneRoussie
Emerging Contributor
I am running ArcPad version 10 and have a form collecting point data with a script that populates a form with information from the parcel layer beneath.  Currently, the parcel shape files all reside in the same directory as the shapefile that is collecting the form data. The parcel layer is a basemap layer and I normally keep all my basemap layers in directories separate from my active working data directories, for instance c:\gis\base_map\parcels\parcel.shp. If I change the Set objParcels to reflect this directory, Set objParcels = Application.Map.Layers("c:\gis\base_map\parcels\Parcels"), I cannot get my script to work.  The only way my script works is if I use Set objParcels = Application.Map.Layers("Parcels") and keep all my parcel shapefiles in the same working directory as my data being collected.

I am not a programmer so I could be doing something wrong, but is there a way to point back to my basemap directory or do I have to have my parcels in the same directory as the data I am collecting? This is going to cause a problem since my remote users are zipping up the directory to send over email and the parcels file is huge in size.

Thanks.
Tags (3)
0 Kudos
1 Reply
GarethWalters
Deactivated User
Hi Suzanne,

Great question. The layers can be in their own separate locations because once they are loaded in to the same map, ArcPad stores those details so you can stick with using Set objParcel = Map.Layers("Basemap").

If you have a quick look at the attachment you will see that I have data from two different locations and using the same line of code I can read the file path for both.

So I believe you are on the right track.

Let me know if you need anymore assistance

[ATTACH=CONFIG]19771[/ATTACH]

Cheers,

Gareth
0 Kudos