Slightly more concise...
Code:String sValue = "0"; // or "1"; Boolean bValue = sValue.Equals("1");
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Convert string to boolThreaded View
|
Click Here to Expand Forum to Full Width |