Display XInputController Responses

I have a simple VPL Diagram which consists of an XInputController Service and I want to display a dialog box to identify which Button was pushed. From the XInputController I'm linking to a Switch Activity and I can see the button types displayed. When I enter A=true I'm getting an error "!". If I enter value = A it doesn't show an error but the debugger doesn't step beyond the switch statement.

The online help doesn't seem to describe how this type of case statement should be formed.
[581 byte] By [SomeoneKnows] at [2008-2-22]
# 1

Switch is useful when you want to compare one value against a set of constants. In your case you should use an If block connect it to the XInputController and then simply have conditions like this

if

[A ]

[B ]

[X ]

[Y ]

Else

Hope this helps,

Andreas

AndreasUlbrich at 2007-10-2 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Visual Programming Language...

Microsoft Robotics Studio

Site Classified