From Xojo Documentation


WebDeviceLocation.Error(ErrorCode as Integer, ErrorMessage as String)

New in 2011r2

Supported for all project types and targets.

This event fires if you have requested the user’s location and either the user declined or an error occurred. ErrorCodes > 0 are sent directly from the browser and the corresponding message may be browser specific.


Display the error message:

MsgBox("The device could not be located: " + ErrorMessage)