Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get to value_assign method?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00984822
Message ID:
00984856
Vues:
29
Since you are using VFP8, and you do not see an Assign method for this value, use BINDEVENT() to whatever property you want on that editbox and delegate it to a method of your own --

BINDEVENT(edtEditBoxObjectReference, EditBox_PropertyName, oYourObject, oYourObjectMethod)

>Mark,
>
>Thanks. I did it myself for my own classes, but this is a framework class, which I do not want to change. So, you're saying, that there is no way (or you're unaware) of doing it directly? Because I believe there should be a way, since the method must exist internally.
>
>BTW, we found that putting nodefault in editbox.refresh() method resolved our problems. From logical point of view I thought it would not work and advised against it. But since it works, may be we will just go for it.
>
>>I would bring that editbox clss up in the class browser to see if it has such an assign method. Assign methods have to be created, and I usually add them via the class browser. From the menu -- Class, Edit Property/Method. Then I scroll down to the property I am interested and check the Assign method box. If the property does not have an assign method, the box will not be checked.
>>
>>There may be code in the page Activate, like THIS.Refresh(), that would in turn fire a Refresh of your editbox.
>>
>>>Hi everybody,
>>>
>>>We have an editbox on the page, which we want to be at the end when we activate the page or change the value. We put the code in EditBox.refresh() method. However, something is going on behind the scene and it resets automatically to the beginning of the EditBox. We can try to figure out why the framework is doing that (looks like unneeded requery() of the biz object), but I think we need to put our code in the value_assign method of the editbox. However, I don't see a way to go to this method. Would you please tell me if it is possible and if yes, step by step instructions how to get to this method?
>>>
>>>Thanks a lot in advance.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform