I need a help, plz (first post)

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

I need a help, plz (first post)

 
0
  #1
Sep 24th, 2005
What is the code for converting from binary to decimal???????? :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 55
Reputation: NPH is an unknown quantity at this point 
Solved Threads: 1
NPH NPH is offline Offline
Junior Poster in Training

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

 
0
  #2
Sep 24th, 2005
Have you tried this code:

  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
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

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

 
0
  #3
Sep 24th, 2005
Thx for replying me, i will try this code now
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 14
Reputation: kyakobi84 is an unknown quantity at this point 
Solved Threads: 0
kyakobi84 kyakobi84 is offline Offline
Newbie Poster

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

 
0
  #4
Sep 24th, 2005
It worked , thaaanks alot :cheesy:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC