I have something like that:
But I have an error:Code:Regex reg = new Regex(@"^\d+(\.\d\d)?$"); if (!reg.IsMatch(book.price)) { }
Error 4 Argument 1: cannot convert from 'decimal' to 'string'
What should I do ?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |