OnLocale

The OnLocale event occurs after OnConnect (only when a client application makes a connection) and passes in the locale number based on the client device’s location. In the case of the United States, number 1033 is returned. Based on this value you may set global values or default login forms (See App.ChangeLoginForm)

Group:   Events

Applies to: Application, Prompts, and RFgen.bas

Syntax:   OnLocale(nDeviceLocale)

nDeviceLocale        (Long) is the value of the client device’s locale.

Example:

Public Sub RFgen_OnLocale(ByVal nDeviceLocale As Long)

  On Error Resume Next

  Select Case nDeviceLocale

    Case 1033

      App.ChangeLoginForm("RFLoginEnglish")

    Case Else

      App.ChangeLoginForm("RFLogin")

  End Select

End Sub