Jim Hurley
New Member
At the last PUG Exchange, Tom Bergman gave a great lecture with examples about how to use .NET classes in the ABL programming environment. I was able to download the archive of his examples, but I am not able to get the ones I am most interested in to compile.
The error I get is sort of consistent over several pieces of code. Here is one example:
**********************************************
This code is giving me the following error:
Invalid datatype specified: GeoCoordinateWatcher. Specify a datatype such as 'character' or the name of a class. (5638)
** Could not understand line 17. (196)
**********************************************
I feel like there is something simple missing or perhaps not installed, but other examples do compile and run.
I am running this in an 11.3.2 version of Progress.
Thanks in advance,
Jim Hurley
The error I get is sort of consistent over several pieces of code. Here is one example:
Code:
/*------------------------------------------------------------------------
File : DeviceLocation.p
Purpose :
Syntax :
Description :
Author(s) :
Created : Wed May 11 08:33:30 EDT 2016
Notes :
----------------------------------------------------------------------*/
USING System.*.
USING System.Device.Location.*.
DEF VAR Watcher AS GeoCoordinateWatcher.
DEF VAR coord AS GeoCoordinate.
Watcher = NEW GeoCoordinateWatcher().
Watcher:TryStart(FALSE, TimeSpan:FromMilliseconds(1000)).
coord = Watcher:Position:Location.
IF NOT coord:IsUnknown THEN
DO:
MESSAGE coord:Latitude "x" coord:Longitude
VIEW-AS ALERT-BOX.
END.
MESSAGE "done"
VIEW-AS ALERT-BOX.
This code is giving me the following error:
Invalid datatype specified: GeoCoordinateWatcher. Specify a datatype such as 'character' or the name of a class. (5638)
** Could not understand line 17. (196)
**********************************************
I feel like there is something simple missing or perhaps not installed, but other examples do compile and run.
I am running this in an 11.3.2 version of Progress.
Thanks in advance,
Jim Hurley
Last edited by a moderator: