Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confused with InteractiveChange and BindEvents
Message
De
21/11/2013 03:39:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01588445
Vues:
85
Hi Naomi,

I could probably help with a clearer and more concise explanation, perhaps additional code excerpts could help understanding.

>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.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform