Hi Jacques
With the 64 bit versions of MapInfo Pro we changed how MapInfo Pro works with grids. Grids are now "just" a raster and not a special type of raster. Unfortunately that also meant that the dedicated grid functions of the MapBasic language no longer will work.
Unless you of course have some existing grid files and open these into MapInfo Pro. That could be grids created with Vertical Mapper. In that case case, I think Pro will still see these as grid files.
I have attached a small source code example that shows the basics of reading a value from a grid for a specific coordinate. Please note that my example expects the coordinate to use the same coordinate system as the grid.
If you are working with grids as raster files, I'd recommend that you take a closer look at the Raster SDK that comes with MapInfo Pro Advanced. For example the GetPointCellValues method can be used to enrich a table of points with data from your grid(s).
public static void GetPointCellValues(
string inputTabFilePath,
string[] inputRasterFilePaths,
string outputTabFilePath,
FieldBandFilter[] fieldBandFilters = null,
IRasterProgressTracker progressTracker = null)
The Raster SDK is .NET based so it would be easier to write this logic using a .NET based language like C#.