Thread: Array element
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
P Daulton P Daulton is offline
external usenet poster
 
Posts: 8
Default Array element

if newarr(primat) = 15 then "delete element"
becomes
if newarr(primat) = 15 then newarr(primat) = 0
Pascal


"Andrea" wrote in message
...
hello,
Someone could tell me which is the instruction to delete
an Array element ? It could seems a silly question, but I
didn't find it inside the VB manual.
I submit a simply example to explain myself better:

For primat = 1 To 50
if newarr(primat) = 15 then "delete element"
Next primat

here I have a "newarr" Array and verifying its elements, I
want to delete all 15 values.
Many thanks.
Andrea.