WebDeviceLocation.Error

From Xojo Documentation

Event


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.


Example

Display the error message:

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