dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2015
    Posts
    2

    Type-declaration character does not match declared data type error in ...

    I have Type-declaration character does not match declared data type error in O = C * (H^(1.5)) about H

    Sub routing()
    Dim A, B, C, DT, DH, HT, E, F, G, H, S, O As Double
    Dim i, j, K, N As Integer
    C = Cells(3, 6).Value 'ZARIB DEBI'
    A = Cells(4, 6).Value 'MASHATE AVALIYE'
    B = Cells(5, 6).Value 'AFZAYESHE MASAHAT'
    DT = Cells(6, 6).Value 'DELTAT'
    HT = Cells(7, 6).Value 'KOLE ERTEFAE DARN NAZA GEREFE SHODE'
    DH = Cells(8, 6).Value 'DELTAH'


    N = HT / DH
    For i = 1 To N
    H = i * DH
    Cells(2 + i, 10).Value = H
    O = C * (H^(1.5))
    Cells(2 + i, 11).Value = O
    S = 1000000 * (A * H + 0.5 * B * (H^(2)))
    Cells(2 + i, 12).Value = S
    G = S / DT + O / 2
    Cells(2 + i, 13).Value = G


    Next i
    End Sub

  2. #2
    Join Date
    Jun 2015
    Posts
    2
    what should i do?

Similar Threads

  1. Replies: 5
    Last Post: 01-25-2008, 08:23 AM
  2. Character data type
    By rathorek in forum C++
    Replies: 5
    Last Post: 08-23-2006, 07:37 AM
  3. Type mismatch error with declaration
    By Carol in forum VB Classic
    Replies: 2
    Last Post: 10-18-2001, 07:53 AM
  4. Type mismatch error with declaration
    By Carol in forum VB Classic
    Replies: 0
    Last Post: 10-17-2001, 10:17 PM
  5. Replies: 2
    Last Post: 07-11-2000, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center