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

How can I retrieve the digital enum selection programatically?

I want to retrieve the digital number of the enum that a user selects on the front panel. I am using this number for configuration purposes later in the code. I need to know the number of the selection not the actual selection (text) itself. I have been looking all through the property nodes and cannot find a solution. I know there are other ways of doing this but I thought the property node would be the easiest and consume the least amount of code.
 
Thanks,
Troy
0 项奖励
1 条消息(共 3 条)
2,729 次查看
Just use the numeric conversion functions:


Message Edited by smercurio_fc on 10-05-2007 09:29 AM

0 项奖励
2 条消息(共 3 条)
2,728 次查看

OK great, that worked. I didn't even think to look at it like that.

 

Thanks,

Troy

0 项奖励
3 条消息(共 3 条)
2,721 次查看