PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → Como saber se registro foi alterado
Como saber se registro foi alterado
Débuté par Mister ANDRE MARTINI, 18 aoû. 2016 20:06 - 4 réponses
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 18 août 2016 - 20:06
Pessoal,

eu coloquei nos formulário um botões para navegação entre os registros (primeiro, anterior, próximo e último), só que se o usuário alterar alguma informação do registro e usar os botões de navegação o sistema não grava as alterações, existe alguma forma/função de saber se o usuário alterou algo?

--
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
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 26 août 2016 - 22:16
encontrei a propriedade que indica se foi alterado algum valor de controle na janela
//.Modified is used to find out whether a control (or a group of controls) was modified by the user (with the keyboard or with the mouse.
MyWindow..Modified


http://help.windev.com/…

tem também o evento Whenever modified "Run when one of the window controls is modified (input performed by the user for example)."
http://help.windev.com/…

--
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
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 27 août 2016 - 00:25
assim ficou meu código nos botões de navegação

IF MyWindow..Modified THEN
IF Dialog("Deseja salvar as alterações?", ["Sim","Não"], 1, 2, dlgIconQuestion) = 1 THEN
ExecuteProcess(BTN_Salvar,trtClick)
END
END
HReadNext(Bancos,COMBO_Indice)
FileToScreen()


--
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
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 02 septembre 2016 - 01:23
Show!!!!!

:merci:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membre enregistré
535 messages
Popularité : +14 (14 votes)
Posté le 28 septembre 2016 - 05:17


http://windevdesenvolvimento.blogspot.com.br/2016/09/aula-924-windev-24-mywindowmodified.html

IF MyWindow..Modified THEN
Info("Tela Tem Modificaçao de Campos")
END