globalvision
Posts: 12
Joined: Wed Sep 21, 2005 6:55 pm
Location: Slovenia

Gps Tools Bug Spoted

Wed Jun 02, 2010 3:57 pm

Hi,

we use Gps Tools in .NET and in CF .NET
We have spoted an issue in CF
Version 2.3.1

Code
Dim ObjPos As New Position
ObjPos.Grid = 1
<font color="red">ObjPos.Zone = Z</font id="red"> 'rasises an error- FormatException (Z is string, e.g. 33T)

ObjPos.Easting = EX
ObjPos.Northing = NY
ObjPos.Datum = 1 ' WGS84
' RESULT:
OutX = ObjPos.Longitude
OutY = ObjPos.Latitude

Same code works fine in .NET
Any idea ?

User avatar
johan
GpsGate
Posts: 14380
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Gps Tools Bug Spoted

Wed Jun 02, 2010 4:20 pm

Please follow the PAI specifications and it will work:
http://franson.com/gpstools/reference_manual.asp?comp=tools&class=Position&item=Zone&platform=net

Regards,
Johan

Franson Support

globalvision
Posts: 12
Joined: Wed Sep 21, 2005 6:55 pm
Location: Slovenia

RE: Gps Tools Bug Spoted

Thu Jun 03, 2010 3:48 am

Sorry but we could not figure out what is a problem in CF. [8)]

It works in "normal" .NET
The thing is that
setting Property in CF environment

ObjPos.Zone = <font color="red">"33T"</font id="red"> 'rasises an error- FormatException

It works fine in "normal" .NET

Any idea ?

globalvision
Posts: 12
Joined: Wed Sep 21, 2005 6:55 pm
Location: Slovenia

RE: Gps Tools Bug Spoted

Sun Jun 06, 2010 12:47 am

Hi Jonathan,

any idea to sort this out.

regards
Dusan

Return to “GpsTools”