我需要1 2 3
用阿拉伯字母 显示数字
我在文本框中写下这个语句
=FormatNumber(Fields!Size.Value,1,-2,-2,-2)
但我不知道它的参数以及哪个参数可以显示阿拉伯格式的数字
非常感谢
我需要1 2 3
用阿拉伯字母 显示数字
我在文本框中写下这个语句
=FormatNumber(Fields!Size.Value,1,-2,-2,-2)
但我不知道它的参数以及哪个参数可以显示阿拉伯格式的数字
非常感谢
您可以在代码中编写函数并使用它
Public Shared Function farsi(input As String) As String
Dim result As String = input
result = result.Replace("1", "۱")
result = result.Replace("2", "۲")
result = result.Replace("3", "۳")
result = result.Replace("4", "۴")
result = result.Replace("5", "۵")
result = result.Replace("6", "۶")
result = result.Replace("7", "۷")
result = result.Replace("8", "۸")
result = result.Replace("9", "۹")
result = result.Replace("0", "۰")
Return result
End Function
用法:
=Code.farsi(1111.555)
Public Shared Function Arabic(input As String) As String
Dim result As String = input
result = result.Replace("1", "۱")
result = result.Replace("2", "۲")
result = result.Replace("3", "۳")
result = result.Replace("4", "٤")
result = result.Replace("5", "۵")
result = result.Replace("6", "٦")
result = result.Replace("7", "۷")
result = result.Replace("8", "۸")
result = result.Replace("9", "۹")
result = result.Replace("0", "۰")
Return result
End Function
将其用于阿拉伯数字 =Code.Arabic(Fields!OrderID.Value) =Code.Arabic(FieldName)