-
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
Similar Threads
-
By Vidhi in forum VB Classic
Replies: 5
Last Post: 01-25-2008, 08:23 AM
-
Replies: 5
Last Post: 08-23-2006, 07:37 AM
-
By Carol in forum VB Classic
Replies: 2
Last Post: 10-18-2001, 07:53 AM
-
By Carol in forum VB Classic
Replies: 0
Last Post: 10-17-2001, 10:17 PM
-
By becky in forum Database
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|