You are on page 1of 1

If(@dap1 = 1)

If(&nm_dap1 is null)
SetControl(&nm_dap1,0)
Else
SetControl(&nm_dap1,&nm_dap1+'0')
EndIf
If(&nm_dap1 > 999)
MsgBox("DAP1 maior que 999.","Atenção!",OK)
SetControl(&nm_dap1,SUBSTR(&nm_dap1,1,LENGTH(&nm_dap1)-1))
SetVar(@dap1,1)
SetVar(@dap2,0)
EndMacro
EndIf
EndIf
SetVar(@Gvar4,1)

You might also like