LibreOffice logo
BASEDOCUMENTER
The software tool for documenting your LibreOffice Base applications
 
Database file/home/jean-pierre/Documents/BaseDocumenter/www/databases/LODoc/Example_jump_Cursor_Subform_Mainform.odb
File actual save date2018-06-27 12:27:45
Scanning done on2018-08-21 17:37:32
Documentation generated on2018-08-21 17:37:41
Table of contents
Example_jump_Cursor_Subform_Mainform
Procedures by module
Library Module name Procedure name Language Used by Number of code lines Procedure code
Standard Module1 JumpToMainform Basic class|SubForm|btnnext (Control)
class|SubForm|btnnew (Control)
25
Sub JumpToMainform(oEvent AS OBJECT)
DIM oField AS OBJECT
DIM oForm AS OBJECT
DIM oDoc AS OBJECT
DIM oController AS OBJECT
DIM oView AS OBJECT
DIM stShortcut AS STRING
oField = oEvent.Source.Model
stShortcut = Mid(oField.Label, InStr(oField.Label, "~") + 1, 1)
oForm = oField.Parent.Parent
SELECT CASE stShortcut
CASE "n"
oForm.MoveToInsertRow()
CASE "x"
IF oForm.isLast() THEN
oForm.MoveToInsertRow()
ELSE
oForm.Next()
END IF
END SELECT
oDoc = thisComponent
oController = oDoc.getCurrentController()
oView = oController.getControl(oForm.getByName(oField.Tag))
oView.setFocus
End Sub