取消
显示结果 
搜索替代 
您的意思是: 

Enumerated Type control

Is there a way to retrieve the string from a wire coming from an
Enumerated Type control? Case statements do this, but how do I pull out
the string?

I'd like to avoid using the control's Strings [] attribute node with an
Index Array to get the string. Any way to do this?

Chris
0 项奖励
1 条消息(共 2 条)
3,357 次查看
> Is there a way to retrieve the string from a wire coming from an
> Enumerated Type control? Case statements do this, but how do I pull out
> the string?
>
> I'd like to avoid using the control's Strings [] attribute node with an
> Index Array to get the string. Any way to do this?

There are three ways to get the strings. The first way is to use
the attribute node like you mention. A second way is to use the
Format into String node with the %s specifier. This will do one
value of the enum at a time. The third way is to flatten the
enum into a string and parse the type information that comes out
of that node. I'd definitely recommend the first or second methods.

Greg McKaskle
2 条消息(共 2 条)
3,357 次查看