4D v16.3Current form name |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Current form name
|
Current form name -> Resultado | ||||||||
Parâmetro | Tipo | Descrição | ||||||
Resultado | Texto |
![]() |
Name of current project form or current table form in the process | |||||
The Current form name command returns the name of the current form defined for the process. The current form can be a project form or a table form.
By default, if you have not called the FORM LOAD command in the current process, the current form is the one being displayed or printed. If you have called the FORM LOAD command in the process, the current form is the one set by this command and it remains so until you call FORM UNLOAD (or CLOSE PRINTING JOB).
If there is no current form defined for the process, the command returns an empty string.
Em um formulário de entrada, ponha o código abaixo em um botão:
C_TEXT($FormName)
$win:=Open form window([Members];"Input";Plain form window)
DIALOG([Members];"Input")
$FormName:=Current form name
// $FormName = "Input"
FORM LOAD([Members];"Drag")
$FormName:=Current form name
// $FormName = "Drag"
//...
Se quiser obter o formulário atual se este for um formulário projeto:
$PointerTable:=Current form table
If(Nil($PointerTable)) // este é um formulário projeto
$FormName:=Current form name
... // processamento
End if
Produto: 4D
Tema: Formulários
Número
1298
Criado por: 4D v14
Manual de linguagem 4D ( 4D v16)
Manual de linguagem 4D ( 4D v16.1)
Manual de linguagem 4D ( 4D v16.2)
Manual de linguagem 4D ( 4D v16.3)