Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Nullifying an Array


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2008, 05:56 PM
Junior Member
 
Join Date: May 2008
Posts: 24
Default Nullifying an Array

The help for keyword "Array" says: "However the size of the array can be set to 0 as the Array keyword will reinitialize the array."

I think that this really means that the array can be declared to have a size of zero since the size can be altered dynamically, for instance and not excusively by use of the Array keyword. There is nothing special about zero size in this context.

But I would like to set the size dynamically to zero and I cannot find a way of doing this. It seems I am not allowed to use "Array()" to do this.

Regards, Mike.
Reply With Quote
  #2 (permalink)  
Old 06-20-2008, 06:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

You can always redim the array and set its size to 0 (not just in Globals sub):
Code:
Dim SomeArray(0)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling an array or structure. enonod Questions & Help Needed 5 05-02-2008 12:56 PM
How to redimension an array of structures HARRY Code Samples & Tips 3 02-20-2008 12:53 PM
Array but not array Cableguy Questions & Help Needed 1 09-22-2007 09:09 PM
Array of Array possibility? Stellaferox Basic4ppc Wishlist 0 09-18-2007 01:16 PM
More Dimensional Array Xardas Questions & Help Needed 4 07-01-2007 03:11 PM


All times are GMT. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0