The full-width number

If the bot display a menu to user, when the user input “1”, the first option will be actived. But if “1” is full-width , the bot couldn't identify. That means it is works in English Input , but was broken in Chinese Input. This may make the users in confusion. Is there a postern to avoid it?
[364 byte] By [CECILIA1123] at [2008-2-15]
# 1

Try defining a subpattern using the "use-for=enumeration" property. This subpattern defines what a user can type to select an entry from an enumerated list or menu. The return value should be a number expressed as an integer. For example:

Code Snippet

subpattern ChineseNumbersForMenus {use-for=enumeration}

+ (1|2|3|4|5) // your numbers in "full-width"

Hope that helps,

Carina

CarinaKoo-MSFT at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 2

Hi Carina,

It works! thx

CECILIA1123 at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...

Windows Live Developer Forums

Site Classified