SHARE
TWEET

Untitled

buenoleo-dev Aug 18th, 2019 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DEF VAR wopcao AS CHAR FORMAT "x(11)" EXTENT 5 INITIAL
  2.                                                 [" Inclusao ",
  3.                                                 " Alteracao ",
  4.                                                 " Exclusao ",
  5.                                                 " Consulta ",
  6.                                                 " Relatorio "].
  7. form wopcao[1] FORMAT "x(09)" SPACE(01)
  8.      wopcao[2] FORMAT "x(10)" SPACE(01)
  9.      wopcao[3] FORMAT "x(09)" SPACE(01)
  10.      wopcao[4] FORMAT "x(09)" SPACE(01)
  11.      wopcao[5] FORMAT "x(10)"
  12.      WITH FRAME f-opcoes NO-LABELS ROW 4 WIDTH 80.
  13.      
  14. REPEAT:
  15.     MESSAGE "Escolha a Opcao Desejada".
  16.     DISPLAY wopcao WITH FRAME f-opcoes.
  17.     CHOOSE FIELD wopcao AUTO-RETURN WITH FRAME f-opcoes.
  18.  
  19.     IF FRAME-INDEX = 1 then MESSAGE "Entrou na Opção de Inclusão".
  20.     IF FRAME-INDEX = 2 then MESSAGE "Entrou na Opção de Alteração".
  21.     IF FRAME-INDEX = 3 then MESSAGE "Entrou na Opção de Exclusão".
  22.     IF FRAME-INDEX = 4 then MESSAGE "Entrou na Opção de Consulta".
  23.     IF FRAME-INDEX = 5 then MESSAGE "Entrou na Opção de Relatório".
  24. END.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top