PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → Como saber se registro foi alterado
Como saber se registro foi alterado
Started by Mister ANDRE MARTINI, Aug., 18 2016 8:06 PM - 4 replies
Registered member
205 messages
Popularité : +25 (25 votes)
Posted on August, 18 2016 - 8:06 PM
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
Registered member
205 messages
Popularité : +25 (25 votes)
Posted on August, 26 2016 - 10:16 PM
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
Registered member
205 messages
Popularité : +25 (25 votes)
Posted on August, 27 2016 - 12:25 AM
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
Registered member
3,657 messages
Popularité : +175 (223 votes)
Posted on September, 02 2016 - 1:23 AM
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/
Registered member
535 messages
Popularité : +14 (14 votes)
Posted on September, 28 2016 - 5:17 AM


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