Skip to content

Commit

Permalink
Improved the output of the <HARMONYCORE_PARAMETER_SAMPLE_DATA> token …
Browse files Browse the repository at this point in the history
…for date and boolean fields.
  • Loading branch information
SteveIves committed Jul 19, 2023
1 parent 2d92bb6 commit 2a32cec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file modified Documentation/CodeGen.chm
Binary file not shown.
Binary file modified Documentation/CodeGen.hsmx
Binary file not shown.
11 changes: 10 additions & 1 deletion HarmonyCoreExtensions/ParameterSampleData.dbl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,16 @@ namespace HarmonyCoreExtensions
end
(ParameterType.Decimal),
begin
mreturn '1'
using param.CoerceType select
(CoerceType.Boolean),
mreturn "true"
(CoerceType.DateTime),
mreturn "new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day)"
(CoerceType.DateTimeNullable),
mreturn "new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day)"
(),
mreturn '1'
endusing
end
(ParameterType.ImpliedDecimal),
begin
Expand Down

0 comments on commit 2a32cec

Please sign in to comment.