RFBUTTON.PadStore

boolean PadStore(BSTR pszFileName)

Function PadStore(pszFileName As String) As Boolean

Stores the current local Button Pad in the client.

Return value
True=the function was successful, false=error, check by RFGetLastError().

Parameters

pszFileName 
    The name of the Button pad file (up to 8 characters).

Remarks
The name must contain legal characters for MS-DOS filenames. Do not include dots (.) and other special characters (* , $ \ : etc).
Use the pad with the input functions (RFIO.GetEvent, RFIO.GetEventEx, RFIO.RFInput, RFMENU.DoMenuRFERROR.Display).
You may overwrite the default Pad files for each function, to modify the default behavior.

Function Default Pad name Other user- defined Pads
 RFIO.GetEvent()  _Event  No
 RFIO.GetEventEx()  _Event  Yes, mandatory, in the name
 RFIO.RFInput()  _Input  Yes, optional with the barcode configuration
 RFMENU.DoMenu()  _Menu  Yes, optional if it has the same name as the menu
 ERROR.Display()  _Error  No

Example

' 2 Columns, 1 row (2 buttons in the pad tops), 1 pixel border
wsRfButton.PadCreate 2, 1, 1
wsRfButton.AddButton 0, 0, "013", "ENTER", 0
wsRfButton.AddButton 1, 0, "027", "CLR", 0
wsRfButton.PadStore "EntClr"

See also    RFBUTTON, PadCreate, AddButton