subtract arrays type mismatch please help

Reply

Join Date: Sep 2006
Posts: 26
Reputation: vbcielle is an unknown quantity at this point 
Solved Threads: 0
vbcielle vbcielle is offline Offline
Light Poster

subtract arrays type mismatch please help

 
0
  #1
Sep 13th, 2007
i have three arrays below
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1.  
  2. l = 0
  3. For k = LBound(Tstk) To UBound(Tstk)
  4. Tstk(k) = stk(l)
  5. l = l + 1
  6. Next k
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1.  
  2. z = 0
  3. For x = LBound(qty) To UBound(qty)
  4. qty(x) = Text5(z).Text
  5. z = z + 1
  6. 'Tstk(x) = stk(z) - Text5(z).Text
  7. 'Print qty(x)
  8. Next x
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1.  
  2. m = 0
  3. For t = LBound(stk2) To UBound(stk2)
  4. stk2(t) = Tstk(m) - qty(m)
  5. m = m + 1
  6. Print stk2(t)
  7. Next t


how can i subtract the result of the 1st array Tstk(m) to the second array qty(m)
i always get runtime error 13 type mismatch please help
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC