6. Juni 2018 07:18
Beispieldatensatz:
Record 123:
Field1 -> 10
Field2 -> 10
PROCEDURE FunctionA();
VAR
RecordVariable : Record 123;
BEGIN
RecordVariable.GET;
FunctionB(RecordVariable);
FunctionC(RecordVariable);
END
PROCEDURE FunctionB(RecordVariable : Record 123);
BEGIN
RecordVariable.Field1 := 20;
RecordVariable.Modify;
END
PROCEDURE FunctionC(RecordVariable : Record 123);
BEGIN
RecordVariable.Field2 := 20;
RecordVariable.Modify;
END
6. Juni 2018 09:07
jkahnt hat geschrieben:Lösungsvorschlag B:
VAR anhaken bei dem Übergabeparameter von von FunctionB und C.
PROCEDURE FunctionA();
VAR
RecordVariable : Record 123;
BEGIN
RecordVariable.GET;
FunctionB(RecordVariable);
FunctionC(RecordVariable);
RecordVariable.MODIFY;
END
PROCEDURE FunctionB(VAR RecordVariable : Record 123);
BEGIN
RecordVariable.Field1 := 20;
END
PROCEDURE FunctionC(VAR RecordVariable : Record 123);
BEGIN
RecordVariable.Field2 := 20;
END
6. Juni 2018 12:22