Please support our VB.NET advertiser: Programming Forums
Views: 1330 | Replies: 3
![]() |
•
•
Join Date: May 2005
Posts: 55
Reputation:
Rep Power: 0
Solved Threads: 1
Have you tried this code:
You can get more info at http://www.experts-exchange.com/Prog..._21259781.html
:mrgreen: For more help, www.NeedProgrammingHelp.com
Dim strBinary As String = "11111111"
Dim intValue As Integer
Dim iPos As Integer
Dim iVal As Integer
For iPos = 0 To strBinary.Length - 1
iVal = strBinary.Substring(strBinary.Length - iPos - 1, 1)
intValue = intValue + iVal * 2 ^ iPos
Next:mrgreen: For more help, www.NeedProgrammingHelp.com
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode