PreferDollars Property for French (Canada)
Gets or sets whether ambiguous spoken numbers are interpreted as whole dollars, or as dollars and cents. Read/write.
Usage
ASP.NET markup: | <speech:Currency PreferDollars="..." /> |
Get value: | Boolean = Currency.PreferDollars; |
Set value: | Currency.PreferDollars = Boolean; |
Data type: | System.Boolean |
Required: | No; Default: False |
Remarks
The PreferDollars property interprets ambiguous spoken currency values. For example, the utterance "twelve seventy-five" could mean twelve dollars and seventy-five cents, or it could mean twelve hundred seventy-five dollars. If PreferDollars is False, "twelve seventy-five" is interpreted as $12.75. If PreferDollars is True, "twelve seventy-five" is interpreted as $1275.00
A spoken currency value is considered ambiguous under the following conditions:
- The value does not contain the words "dollar" or "centime."
- The value does not contain the words "hundred" or "thousand."
- The value ends in a numeric phrase represented by two digits, such as "twenty" or "forty-nine."
- The ending phrase is preceded by a numeric phrase represented by one or two digits, such as "one" or "ninety-nine."
Example
<form id="Form1" method="post" runat="server">
...
<asp:textbox id="TextBox1" runat="server"></asp:textbox>
<speech:SemanticMap id="SemanticMap1" runat="server">
<speech:SemanticItem ID="siDollars" TargetElement="TextBox1" TargetAttribute="value"
BindOnChanged="True" runat="server">
</speech:SemanticItem>
</speech:SemanticMap>
<speech:Currency
id="Currency1"
SemanticItem="siDollars"
QuestionPrompt="quel est le montant en dollars?"
PreferDollars="True"
InitialTimeout="2500"
runat="server">
</speech:Currency>
...
</form>
See Also
Currency Class | Currency Constructor | Currency Members | Currency Properties | Currency Methods | Currency Events | Currency Remarks