|
-
Oct 20th, 2011, 11:32 PM
#4
Re: How to remove Nothing elements from Array
 Originally Posted by Aerowinder
carArray(m) = ""
I've found that it is generally not a good idea for strings to have a null value. Empty string seems to be the better option in nearly every case.
I have to disagree there. Null references are quite valid regardless of the type. The only time you would have an issue is if you were accessing member without checking first, in which case you just have to make sure you check for nulls in cases where nulls are allowed.
As for the original question, why would Nothing be displayed as 0 unless the column contained numbers, in which case an empty string is obviously no help because it's not a number. It sounds to me like the user should be using a collection instead of an array, so that items can be genuinely removed and not just "cleared".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|