Select to view content in your preferred language

Unable to get value from field

774
1
12-03-2013 02:15 AM
JamesMitchell
Deactivated User
Hi,

I have a script that works in ArcPad 10 but does not work in ArcPad 10.2

I am unable to obtain a value from a field. I am using "objRS.Fields("TREENO").Value" where "TREENO" is the name of the field.

Set objRS = Application.map.layers("BatTree").records
objRS.Movefirst
MsgBox "The value is: " & CStr(objRS.Fields("TREENO").Value)
The messagebox is blank.

This worked fine in ArcPad 10.

Any help will be greatly appreciated.
Tags (3)
0 Kudos
1 Reply
HannahFerrier
Deactivated User
If you are using the RecordSet object (eg. MoveNext, MovePrevious) - can I suggest instead using DataSource.Execute and performing SQL Queries to navigate your dataset??

I would recommend this method to anyone who is having issues with the RecordSet object in their ArcPad Scripts in ArcPad 10.2

Hannah 🙂
0 Kudos