Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox losing characters during interactivechange metho
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01556851
Message ID:
01556857
Vues:
40
J'aime (1)
OK, I figured it out. In the assign method for the form variable, I had an unnecessary refresh command for the button I was activating. I took this refresh out, the button enables immediately upon text insertion, and I can see everything typed. Solved.

>An interesting update: as soon as I leave the field, all the text shows up. The more interesting thing to me is, once I return to the field, the text displays as expected for any future edits. It's only the first time I enter a field that the characters are missing. Strange! (Windows 7 64 bit machines tested on, vfp 9)
>
>
>
>>I have a form setup where I want to activate the save button after information is changed on the form.
>>
>>The form instantiates with the save button disabled and in the textbox baseclass (although I've put it directly in the textbox control method as well with the same results) for the interactivechange method, I have the following code:
>>
>>
>>IF TYPE('thisform.textchanged') != "U"
>>	IF thisform.Textchanged = .f. then
>>		thisform.textchanged = .t.
>>	endif
>>endif
>>
>>
>>In the interactive change on this form, there is an assign method that activates the save button.
>>
>>The behavior of this is that in a textbox or editfield, I generally see the first letter typed, then spaces for most or all of the subsequent letters I type, until the field is exited. I recently added the check to only hit the assign_method if the form property needs changed, hoping the offending code was within there. Is there a better way to do this?
Steve Howie, owner
DaSH Technology
Denver, CO
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform