Skip to content

Commit

Permalink
Merge pull request #241 from christianbraeunlich/feature/add-missing-rec
Browse files Browse the repository at this point in the history
updated tpageactivitieswaldo snippet
  • Loading branch information
waldo1001 committed May 23, 2022
2 parents da54628 + 73efb14 commit 8d1444c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snippets/DesignPatterns.json
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,10 @@
"\r",
"\ttrigger OnOpenPage()\r",
"\tbegin\r",
"\t\tReset();\r",
"\t\tIf not Get() then begin\r",
"\t\t\tInit();\r",
"\t\t\tInsert();\r",
"\t\tRec.Reset();\r",
"\t\tif not Rec.Get() then begin\r",
"\t\t\tRec.Init();\r",
"\t\t\tRec.Insert();\r",
"\t\tend;\r",
"\r",
"\tend;\r",
Expand All @@ -605,7 +605,7 @@
"\r",
"\tlocal procedure CalculateCueFieldValues()\r",
"\tbegin\r",
"\t\tif FIELDACTIVE(\"Normal field\") then\r",
"\t\tif FieldActive(\"Normal field\") then\r",
"\t\t\t\"Normal field\" := 2 + 1 //add some calculation here for normal fields;\r",
"\tend;\r",
"\r",
Expand Down

0 comments on commit 8d1444c

Please sign in to comment.