The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Clearing Vectors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Nai

Canada
Posts

Posted - 05/27/2005 :  11:27:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: W2k
Is there a way to manually clear a vector through code?
I tried the usual vector.clear() but that did not seem to work.

Thanks

Mike Buess

USA
3037 Posts

Posted - 05/27/2005 :  11:52:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If want to set all elements of a numeric vector to zero you can use vector = 0. If you want to remove all elements use vector.RemoveAll()

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/27/2005 11:53:36 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000