Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Nullifying an Array

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2008, 04:56 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
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, 05:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 09:54 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0