Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on September 08, 2022, 04:05:59 PM
-
Is there a way to dump all of a UDT's data into a STRPRINT, EMAIL, etc? Similar in appearance to going to a DataView and just typing MyUDT0. Or do I need to add all the UDT's fields to the PRINT individually? Trying to avoid that, of course...
-
Sorry, no.
We could possibly add a helper to do that in the STRPRINT instruction editor.
We have a structure helper in the JSONBUILD editor.
-
Are you just wanting spaces in between or commas? and/or field name string literals or field name with equal signs as string literals?
Please provide how you would want $Now STRPRINT output to be formatted (fields are .Year, .Minute, etc.)
2022,12,31,23,59,59
or
Year=2022 Month=12 Day=31 Hour=23 Minute=59 Second=59
or
? ? ?
-
We have a structure helper in the JSONBUILD editor.
Not sure why I didn't think about that. JSON works just fine for what I need it to do today!
Are you just wanting spaces in between or commas? and/or field name string literals or field name with equal signs as string literals?
Please provide how you would want $Now STRPRINT output to be formatted (fields are .Year, .Minute, etc.)
2022,12,31,23,59,59
or
Year=2022 Month=12 Day=31 Hour=23 Minute=59 Second=59
or
? ? ?
Yes, I would prefer something like Year=2022, Month=12,... or Year: 2022, Month: 12,.... Maybe definable separators/delimiters?
Like I said, JSON is more than enough for my simple debugging needs today, but would welcome the addition in the future.