Removes the specified function key from the FunctionKeys collection.
Newlook Smartclient
Newlook Server
App.ActiveForm.FunctionKeys.Remove(Fnckey)
Fnckey – (Object, Required)
The function key to be removed. It is possible to reference a function key by either its name or its index in the collection.
Returns a Boolean indicating the success or failure of the action.
The Remove method cannot be used to remove function keys that are generated by the host application, only inserted function keys, created in Designer or via the Add method. If you wish to hide a function key on a form at runtime you will need to add logic that sets its Visible property to False and assign it to the OnReceive and OnRefresh events of the form.
The following example will remove an inserted function key called 'fncPrompt' from the form.
function RemoveFunctionKeyByName()
{
removeSuccess = App.ActiveForm.FunctionKeys.Remove(fncPrompt);
}
Sub RemovePromptKey
'Remove prompt function key from the form.
removeSucess = App.ActiveForm.FunctionKeys.Remove (FncPrompt)
End Sub
Add Method - Function Keys| Remove Method - Controls | Remove Method - Items | Remove Method - Nodes | Remove Method - Columns Headers
© 2004-2021 looksoftware. All rights reserved.