18. Dezember 2005 23:28
Form - OnAfterGetCurrRecord()
CurrentRecord := Rec;
Form - OnTimer() // TimerInterval = 100
IF CurrForm.ACTIVE THEN
IF NOT IsEqual(CurrentRecord2,Rec) THEN BEGIN
CurrForm.UPDATE(FALSE);
CurrentRecord2 := Rec;
END;
Description - OnFormat(VAR Text : Text[1024];)
CurrForm.Description.UPDATEFONTBOLD(IsEqual(CurrentRecord,Rec));
// Wenn auch eine farbliche Hervorhebung gewünscht ist, bitte folgenden Code aktivieren:
//
//IF IsEqual(CurrentRecord,Rec) THEN
// CurrForm.Description.UPDATEFORECOLOR(255)
//ELSE
// CurrForm.Description.UPDATEFORECOLOR(0);
IsEqual(Rec : Record "<Tabelle>";Rec2 : Record "<Tabelle>") : Boolean
EXIT(
(Rec."Primary Key Field 1" = Rec2."Primary Key Field 1") AND
(Rec."Primary Key Field 2" = Rec2."Primary Key Field 2") AND
(Rec."Primary Key Field 3" = Rec2."Primary Key Field 3") AND
(Rec."Primary Key Field 4" = Rec2."Primary Key Field 4"));
26. September 2006 18:55
Globals
CurrentRecRef : RecordRef;
LastRecRef : RecordRef;
Form - OnOpenForm()
LastRecRef.GETTABLE(Rec);
Form - OnAfterGetCurrRecord()
CurrentRecRef.GETTABLE(Rec);
Form - OnBeforePutRecord()
LastRecRef.GETTABLE(Rec);
CurrForm.UPDATE(FALSE);
IsCurrent(CheckRecRef : RecordRef) : Boolean
RecRef.GETTABLE(Rec);
EXIT(FORMAT(CheckRecRef.RECORDID) = FORMAT(RecRef.RECORDID));
Description - OnFormat(VAR Text : Text[1024];)
CurrForm.Description.UPDATEFONTBOLD(NOT IsCurrent(LastRecRef));
CurrForm.Description.UPDATEFONTBOLD(IsCurrent(CurrentRecRef));
15. November 2007 20:14
16. November 2007 10:25
20. November 2007 12:56
SilverX hat geschrieben:
Für Feedback (z.B. 3.70) wäre ich dankbar:
[/code]
20. November 2007 14:29
30. April 2012 14:31