Problemas con Valid en un TextBox

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jreduojeda
Posts: 45
Joined: Thu Feb 19, 2009 12:41 am
DBs Used: DBF, MySql
Location: Buenos Aires - Argentina
Contact:

Problemas con Valid en un TextBox

Post by jreduojeda »

Hola a todos...
Estoy usando el Valid en un TextBox, funciona bien. Pero tengo un problema al querer cerrar la ventana que contiene ese control.
Tengo por un lado el TextBox y por otro un boton que cierra la ventana. Lo que quiero hacer es que al presionar el boton que cierra la ventana no se ejecute el valid del TextBox, ya que el valid no me deja salir nunca. Creí que agregando el CANCEL a la definición del botón se solucionaría, pero no sólo no se soluciona sino que no se define la ventana y el programa se cierra sin dejar ningún rastro de error.
Si alguien sabe como solucionar este problema estaré agradecido.
Saludos, Esteban.

(Traducción de google)
Hello everyone ...
Valid I'm using a TextBox, it works well. But I have a problem to want to close the window containing this control.
I have one hand on another TextBox and a button that closes the window. What I do is that when you press the button that closes the window does not run the TextBox valid because the valid not let me out ever. I thought adding the CANCEL button definition to be solved, but not only not solved but does not define the window and the program closes without leaving any trace of error.
If anyone knows how to solve this problem I will be grateful.
Regards, Stephen.
Ojeda, Esteban Eduardo.
ooHg - Minigui - QAC
FiveWin - PellesC - Clipper
ADS Server - MySql - DBF/CDX
FastReport
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Problemas con Valid en un TextBox

Post by Rathinagiri »

One of the way out is to have an internal counter to set a reasonable number of tries (say 5) after which we can give a message to the user and validate the textbox.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply