Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-User Processing Woes
Message
De
19/05/1999 22:03:45
 
 
À
19/05/1999 11:56:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00220305
Message ID:
00220674
Vues:
22
Sylvain,
Nope, not gonna work. I've tried several variations on this theme and tried placing code in several different methods (When, InteractiveChange), but nothing seems to trap it accurately.

HELP! There's gotta be a way to do this! It's not a complicated task. Any other suggestions????

Bonnie

>How about a loop that goes through each control and compare the current value of the control to the value in the ControlSource? Something like (haven't tested it):
>
>
llDirty = .F.
>
>FOR EACH Controls IN THISFORM.Controls
>   IF Controls.Value <> (Controls.ControlSource)
>      llDirty = .T.
>      EXIT
>   ENDIF
>ENDFOR
>
>IF llDirty
>   *-- Record was modified. Maybe advise the user before doing a Refresh()
>ELSE
>   *-- Everything OK, start the edit mode
>ENDIF
>HTH
>
>>I know it might be confusing, that is why I was looking for some way to detect that the record had been changed so that I could notify the user of that prior to doing a refresh(). Any other ideas on how to trap for this?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform