GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 25
→
Função semelhante Exit Sub (VB6)
Função semelhante Exit Sub (VB6)
Iniciado por ANDRE MARTINI / IS2, mar., 16 2016 1:22 PM - 3 respostas
Conecte-se…
ANDRE MARTINI / IS2
#1
Membro registado
212 mensagems
Popularité : +25 (25 votes)
Publicado em março, 16 2016 - 1:22 PM
Olá pessoal,
tem uma função no vb6 que uso bastante chamada Exit Sub, existe algo semelhante no windev?
PRIVATE
Sub Cta_0003F9
(
)
IF
Not Atualizar_saldos
THEN
MsgBox
"Não é necessário atualizar saldos desta conta!"
,
vbExclamation
,
"Aviso"
Exit Sub
END IF
...
eu gosto de usar esta função pois posso colocar alguns IFs de validação no início da procedure e sair dela dentro destes IFs, eu não gostaria de colocar toda a rotina dentro do ELSE.
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Denunciar
0
0
Willian Fernando
#2
Membro registado
123 mensagems
Popularité : +46 (46 votes)
Publicado em março, 16 2016 - 1:40 PM
Aqui esta todas as opções disponíveis par ao IF do Windev
http://help.windev.com/en-US/…
--
Atte. Willian Fernando
Denunciar
0
0
ANDRE MARTINI / IS2
#3
Membro registado
212 mensagems
Popularité : +25 (25 votes)
Publicado em março, 16 2016 - 1:58 PM
não é o IF o problema, eu quero saber se existe algo semelhante a função Exit Sub do VB6 no windev?
Exemplo, se eu tenho uma procedure e quero sair da execução da procedure sem executar o restante a partir de um determinado ponto da procedure, como fazer isso?
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Denunciar
0
0
ANDRE MARTINI / IS2
#4
Membro registado
212 mensagems
Popularité : +25 (25 votes)
Publicado em março, 16 2016 - 2:06 PM
Encontrei. RETURN
IF
CBOX_
Atualizar_saldos
=
False
THEN
Warning
(
"Não é necessário atualizar saldos desta conta!"
+
CR
+
CR
+
"Campo [Atualizar Saldos] está desmarcado."
)
RETURN
END
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Denunciar
0
0
→ Voltar para WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto