Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid or whatever, revisited
Message
De
14/04/1998 17:19:33
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00091590
Message ID:
00091941
Vues:
20
>an indicator property of IAmChanged on every control, and set it to .t. from .InteractiveChange and .ProgrammaticChange, and fire the validation when this property is set to .t., else just return .t. from the .valid event? I'll try both tonight, but in the meantime, if anyone has something better than these two, I'm very curious to know. TIA
>
>Dragan,
>
>I'm fairly new to VFP, so I may be way off, but one of the things it sounds like you're looking for is a way of letting a method know if it was called by moving off of the object, or called from a navigation button (save). You could do this with a parameter that is only passed from the navigation button. It would then always be FALSE except when you are calling from the navigation button. I'm under the assumption that you are somehow calling the .LostFocus of each object on the screen when the save button is clicked. By adding a Parameter statement to the top of it like PARAMETER tlNavButton each .LostFocus would know that it is being called by a navigation button if tlNavButton = .t.

No, I call .LocalValid in both cases - but the trouble is that there are occasions when Valid (or LostFocus) should just pass control further by just doing nothing, and it fires far before nav button gets any chance of doing anything. If you study the event log I supplied you'll see why this approach wouldn't work - .lostFocus fires by itself before it could get called from a nav button's event. In the meantime I'm making some progress with the .Changed custom property on each control - it's set in .interactivechange and .programmaticchange, and seems to work so far.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform