FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 25
→
Dica: erro ao fechar tela vision no X
Dica: erro ao fechar tela vision no X
Iniciado por ANDRE MARTINI / IS2, 13,abr. 2016 20:32 - 3 respuestas
Conéctese…
ANDRE MARTINI / IS2
#1
Miembro registrado
212 mensajes
Popularité : +25 (25 votes)
Publicado el 13,abril 2016 - 20:32
Olá pessoal,
verifiquei que por padrão se o usuário fechar a janela de uma vision no botão X ocorre um erro no sistema porque a propriedade MyWindow..ReturnedValue retorna um valor NULL para a chamada nCodigoGrupo is int = Open(WIN_Grupo_De_Produtos_Vision)
para resolver isso fiz o seguinte:
closing
WIN_
Grupo_de_Produtos_Vision
IF MyWindow
..
ReturnedValue
=
Null
THEN
MyWindow
..
ReturnedValue
=
0
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
Informar
0
0
adrianoboller
#2
Miembro registrado
3.659 mensajes
Popularité : +175 (223 votes)
Publicado el 21,abril 2016 - 12:56
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Informar
0
0
Leonardo
#3
Publicado el 21,abril 2016 - 15:09
Acredito que faltou setar um valor para MyWindow..ReturnedValue por isso retorna NULL,
se colocar no load do Vision MyWindow..ReturnedValue = 0 deve resolver
Informar
0
0
ANDRE MARTINI / IS2
#4
Miembro registrado
212 mensajes
Popularité : +25 (25 votes)
Publicado el 22,abril 2016 - 19:59
no final da inicialização do form vision o valor é setado
// Default return value
MyWindow
..
ReturnedValue
=
0
mas se abrir o form vision e clicar direto no botão X para fechar dá um erro. Colocando o código abaixo no fechamento do form o erro não acontece
IF MyWindow
..
ReturnedValue
=
Null
THEN
MyWindow
..
ReturnedValue
=
0
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
Informar
0
0
→ Volver a WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto