Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confused with InteractiveChange and BindEvents
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Confused with InteractiveChange and BindEvents
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588409
Message ID:
01588409
Vues:
76
Hi everybody,

I have a complex form and in the Init of this form I bind InteractiveChange event of many objects to a new InfoChanged method of the form. This works great.

Now, I have an Edit Box for entering HTML and I have a Preview button on the form to show that HTML in the Browser. I want this prevew button to be enabled when something is entered in the HTML.

So, I have the following code in the refresh method of the button
this.Enabled = not eof() and not empty(HTML)
And in the InteractiveChange of the HTML editbox I try
this.parent.cmdPreview.Refresh()
However, nothing seems to happen, the code in InfoChanged method works, but my button remains disabled even after I typed a few keystrokes.

So, I am wondering what is the source of the problem - is it because the "binding" of the value in edtHTML to the table.HTML happens in the Valid event and therefore checking Alias.HTML doesn't help?

What do you think?

Thanks in advance.

UPDATE. Never mind this question, please. My suspicion was correct.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform