-
Notifications
You must be signed in to change notification settings - Fork 12
/
SHELLADVPL.prw
36 lines (25 loc) · 1.12 KB
/
SHELLADVPL.prw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Include 'Protheus.ch'
//====================================================================================================================\\
/*/{Protheus.doc}SHELLADVPL
====================================================================================================================
@description
Tela auxiliar para avaliação de expressões no Protheus
@author Thiago Mota
@author <mota.thiago@totvs.com.br>
@author <tgmspawn@gmail.com>
@version 1.0
@since 2 de mar de 2017
@return xRet, Padrão: Nulo
@sample U_SHELLADVPL()
/*/
//===================================================================================================================\\
User Function SHELLADVPL(${param}, ${param_type}, ${param_descr})
Local aAreaBkp:= {}
Local xRet := Nil
// Backup das áreas atuais
aEval({Areas}, { |area| aAdd(aAreaBkp, (area)->(GetArea()) ) } )
aAdd(aAreaBkp, GetArea())
aEval(aAreaBkp, {|area| RestArea(area)}) // Restaura as áreas anteriores
Return ( xRet )
// FIM da Funcao SHELLADVPL
//======================================================================================================================