Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-User Processing Woes
Message
From
19/05/1999 22:03:45
 
 
To
19/05/1999 11:56:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220305
Message ID:
00220674
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform