02-07-2021 11:35 AM
Hey, everyone. I noticed fairly recently (I don't know, maybe a couple of years ago?) that, not only can you control the representation of a number by wiring a constant to the "other side" of the output, but you can also give the wire a name!
When did you find out? I feel kinda dumb.
02-07-2021 01:02 PM
It makes sense. But I didn't know it either.
02-07-2021 09:14 PM
I've known the data type trick for a very long time. I never tried naming the constant though. It makes sense and this gives me ideas for making it easier to debug that node.
02-07-2021 09:28 PM - edited 02-07-2021 09:29 PM
Since we are having fun with the Scan From String, did you know you can define a Boolean and an Enum with a string or a numeric?
02-07-2021 11:20 PM
I'm like Crossrulz -- I knew about wiring Inputs to get specific types of Outputs, but didn't know about naming the constants (though I've used Named Constants in other situations where I've needed to "name a constant" -- I don't remember the exact use now, after the Stupor Bowl). However, Bill's example is peculiar -- in order to get the Indicator wired to the output of Scan from String to take on the "name" of the Input Constant, you need to bring the output wire into a Frame Sequence (or maybe any other structure). Crossrulz' example illustrates this -- notice an input constant named "Enum String", while the output is named "Enum Strnig".
Here's Bill's example using a Case Structure instead of a Frame, and showing both types out Created Indicators:
Interesting. There are undoubtedly other "features" to be discovered ...
Bob Schor
02-08-2021 12:02 AM
@Bob_Schor wrote:
I'm like Crossrulz -- I knew about wiring Inputs to get specific types of Outputs, but didn't know about naming the constants (though I've used Named Constants in other situations where I've needed to "name a constant" -- I don't remember the exact use now, after the Stupor Bowl). However, Bill's example is peculiar -- in order to get the Indicator wired to the output of Scan from String to take on the "name" of the Input Constant, you need to bring the output wire into a Frame Sequence (or maybe any other structure). Crossrulz' example illustrates this -- notice an input constant named "Enum String", while the output is named "Enum Strnig".
Here's Bill's example using a Case Structure instead of a Frame, and showing both types out Created Indicators:
Interesting. There are undoubtedly other "features" to be discovered ...
Bob Schor
Hmmm, if you create an indicator directly from the output, you get "output 1" as the indicator label, but the wire is named "Test Value 1". But if the wire goes through a tunnel and you create the indicator from that, the label of the indicator takes the name of the wire...
02-08-2021 12:04 AM
@crossrulz wrote:
Since we are having fun with the Scan From String, did you know you can define a Boolean and an Enum with a string or a numeric?
Wow!
02-08-2021 12:06 AM
This whole topic came about because I saw a recent topic about "Format Into String" and it reminded me of "Scan From String".
02-08-2021 03:29 AM
The "Scan from String" (and the converse) enum as a string is something we use extensively in our software. It's a great feature.
02-08-2021 11:29 AM
Bill,
From Mark Twain, something like: "If a little knowledge is a dangerous thing, who has enough to be out of danger?"
This is an interesting topic, BTW.