News:

  • October 14, 2025, 05:48:03 AM

Login with username, password and session length

Author Topic: STRPRINT UDT data  (Read 1773 times)

Bolt

  • Hero Member
  • *****
  • Posts: 591
STRPRINT UDT data
« 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...

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: STRPRINT UDT data
« Reply #1 on: September 08, 2022, 04:26:26 PM »
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.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: STRPRINT UDT data
« Reply #2 on: September 08, 2022, 04:45:26 PM »
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
? ? ?

Bolt

  • Hero Member
  • *****
  • Posts: 591
Re: STRPRINT UDT data
« Reply #3 on: September 08, 2022, 06:39:26 PM »
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.