943,715 Members | Top Members by Rank

Ad:
Sep 13th, 2007
0

subtract arrays type mismatch please help

Expand Post »
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
Similar Threads
Reputation Points: 16
Solved Threads: 0
Light Poster
vbcielle is offline Offline
26 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: vb6 - RunTime error 1004 Invalid number of arguments
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Draw text on JPEG





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC