Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3894

MBS SQLite Extension (for IOS)

$
0
0

I have been looking at the MBS SQLite Extension. It has some functions that might be very useful for me. Like distance, string differences, etc.

As far as I can see, this extensions library is not included in the Complete Plugins license.
But, I would like to know if this extension works with iOS.
(And maybe in the future for Android, once I convert some of my iOS apps to Android)

Also, i wonder if this extension works with InMemory databases. That way, some of these functions could be used without actually using a database, but purely return values with a SQL statement…
Something like this: (with coordinates from the MBS example)

// Coordinates for New York
Var lat1 As Double = 40.712778
Var long1 As Double = -74.005833

// Coordinates for Berlin
Var lat2 As Double = 52.518611
Var long2 As Double = 13.408333

// Call the GeoDistanceMBS function
Var rs As RowSet
rs = db.SelectSQL("Select GeoDistanceMBS(?, ?, ?, ?)", lat1, long1, lat2, long2)

// The first column holds the distance in kilometers (I think)
Var distanceKM As Double
distanceKM = rs.ColumnAt(0).DoubleValue

Does anybody have experience with this extension?

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3894

Trending Articles