Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

Keyboard

Keyboard(nKeybo,oObj)

Displays an on-screen keyboard in historical eADVPL.

KeyboardAdvPL
01 · OVERVIEW

Overview

Guide section 12.1 takes a keyboard type and target GET object. Its appendix identifies alphanumeric, numeric and symbol keyboards. Do not confuse this with simulated-keystroke commands in other languages. This subset neither confirms availability in current SmartClient nor assumes constant numeric values. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

Keyboard(nKeybo,oObj)

Parameters

nKeybo
NumericRequired

Keyboard type from the historical guide.

oObj
ObjectRequired

Existing target GET.

Return value

Entered string according to the historical guide.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed502()
    // Type and GET must come from a validated historical runtime.
    Local bKeyboard := {|nType,oGet| Keyboard(nType,oGet)}
    ConOut(ValType(bKeyboard))
Return Nil
Expected result

Prepares the block without opening a keyboard. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Confirm includes and GET binding; validate focus and input on the target device.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de Referência eADVPL (histórico). §12.1 e anexo 14.1. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha