944,047 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1668
  • VB.NET RSS
Sep 24th, 2005
0

I need a help, plz (first post)

Expand Post »
What is the code for converting from binary to decimal???????? :rolleyes:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kyakobi84 is offline Offline
14 posts
since Sep 2005
Sep 24th, 2005
0

Re: I need a help, plz (first post)

Have you tried this code:

VB.NET Syntax (Toggle Plain Text)
  1. Dim strBinary As String = "11111111"
  2. Dim intValue As Integer
  3. Dim iPos As Integer
  4. Dim iVal As Integer
  5.  
  6. For iPos = 0 To strBinary.Length - 1
  7. iVal = strBinary.Substring(strBinary.Length - iPos - 1, 1)
  8. intValue = intValue + iVal * 2 ^ iPos
  9. Next
You can get more info at http://www.experts-exchange.com/Prog..._21259781.html

:mrgreen: For more help, www.NeedProgrammingHelp.com
NPH
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
NPH is offline Offline
55 posts
since May 2005
Sep 24th, 2005
0

Re: I need a help, plz (first post)

Thx for replying me, i will try this code now
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kyakobi84 is offline Offline
14 posts
since Sep 2005
Sep 24th, 2005
0

Re: I need a help, plz (first post)

It worked , thaaanks alot :cheesy:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kyakobi84 is offline Offline
14 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Data Tier help
Next Thread in VB.NET Forum Timeline: Displaying datagrid on second form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC