Indentation

Test Code (Debugging through messages)

While all program code should be nicely indented following it's block structure, test messages etc. are supposed to be aligned to the very left of the source code.

Example:

DatasetHelper:ThrowDatasetErrors (DATASET dsAuftragsart:HANDLE) . FIND FIRST eAuftragsart . BufferHelper:ShowBuffer (BUFFER eAuftragsart:HANDLE) . /* Mandant/Unternehmen should be assigned by HaufeDataAccess:CommitChanges */ FIND Auftragsart WHERE Auftragsart.MandantNr = oAppSession:Tenant:Mandant AND Auftragsart.Unternehmen = oAppSession:Tenant:Unternehmen AND Auftragsart.AuftragsartNr = iAuftragsArtNr NO-LOCK NO-ERROR .

This makes it more obvious that the code should be removed before finalizing the work.

 

When commiting your code review it for debug code that can be removed.

Check closley if statements on position 0 aren’t there by accident. If they are, correct you indentation.