|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error 6 Overflow when multiplyWhen i'm multiply the values 1024 * 12000 i get the error Overflow
I take the same error even in Immediate window Any ideas? *** Sent via Developersdex http://www.developersdex.com *** On 8 Mar, 08:46, Goerge Tikakis <nos***@devdex.com> wrote:
or 1024& * 12000 Save one char, they will be a shortage... eventually, nah, just joking - its like oil: there is enough to go around as long as we dont use it. Why dont dim the variable to a single or double or if only integer, a long... ehh like Sub x() ' Wont work : Dim x_ As Integer Dim x_ As Long ' Dim x_ As Single ' gets 1,2288E+07 ' Works : Dim x_ As Double ' got 12288000 x_ = 1024 * clng(12000) Debug.Print x_ End Sub or something... //CY
http://vbnet.mvps.org/code/faq/faqqa.htm
look near the bottom for 'Why do I get an Overflow Error when multiplying?' Show quoteHide quote "Goerge Tikakis" <nospam@devdex.com> wrote in message news:er%23FQE8nJHA.5468@TK2MSFTNGP04.phx.gbl... > > > When i'm multiply the values 1024 * 12000 i get the error Overflow > I take the same error even in Immediate window > Any ideas? > > *** Sent via Developersdex http://www.developersdex.com ***
Wrap a Long String
Determining Available Paper Sizes on Printer Number Puzzle vb6 closes with erro after I installed msdn oct 2001 Subclassing a la Caton Error #429 and compactdatabase in VB6 ListBox bug? Excel Library in VB 2008 on 64-bit OS installation Using VBPRNDLG.DLLl Instead of Print Common Dialog Boxes VSM Wants Your Feedback |
|||||||||||||||||||||||